$product = {"id":7411086884963,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗","handle":"iphone-15-plus-mod-nx-magsafe-printable-hq02","description":null,"published_at":"2024-06-11T17:35:57+08:00","created_at":"2024-05-04T22:40:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41894831226979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476256867,"product_id":7411086884963,"position":2,"created_at":"2024-05-04T22:40:27+08:00","updated_at":"2024-05-04T22:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627","variant_ids":[41894831226979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ02","featured_media":{"alt":null,"id":23884723814499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894831358051,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479477174371,"product_id":7411086884963,"position":4,"created_at":"2024-05-04T22:40:31+08:00","updated_at":"2024-05-04T22:40:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631","variant_ids":[41894831358051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-HQ02","featured_media":{"alt":null,"id":23884724764771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd47f4d71aeeee6231f356cd702f4dba7f3e542_64bf58a8-879d-467e-a2cd-60b29c6970bd.webp?v=1714833625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4b8849a5d199eb94073fe2b62106b50269b46f_c400d678-03a9-408a-a90a-ee457e84a029.webp?v=1714833629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2648ecb8e72871c8af246d10be8370a9b9de888_2615df31-bfcf-4ca7-9718-67b0932f4249.webp?v=1714833634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b250012cdfe56fc12cce2e62711a35cb5d8b520_b7eb2ff3-298b-415f-8162-9f084628b8a1.webp?v=1714833636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5d92b0d02ab52681ff825f8c8aa6432bb8290_31549f5d-7bd6-4883-942f-5b7096b4b791.webp?v=1714833638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2198cd070a759ea32ddeb96b728a5fdd917e4b0c_268d4b4a-cbdb-472f-a79c-18a14a13b9a4.webp?v=1714833641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d433831be63e1fdcdd7351703a617863e79844_eaf9fef0-034b-4108-a008-7c5a1b007189.webp?v=1714833643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f403dae6851baabef9517a52da6d51979f6dc0b6_55b75e90-ebee-423c-9bac-2afb9cb37d9f.webp?v=1714833645"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd47f4d71aeeee6231f356cd702f4dba7f3e542_64bf58a8-879d-467e-a2cd-60b29c6970bd.webp?v=1714833625","options":["color"],"media":[{"alt":null,"id":23884723126371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd47f4d71aeeee6231f356cd702f4dba7f3e542_64bf58a8-879d-467e-a2cd-60b29c6970bd.webp?v=1714833625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebd47f4d71aeeee6231f356cd702f4dba7f3e542_64bf58a8-879d-467e-a2cd-60b29c6970bd.webp?v=1714833625","width":2000},{"alt":null,"id":23884723814499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627","width":2000},{"alt":null,"id":23884724240483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4b8849a5d199eb94073fe2b62106b50269b46f_c400d678-03a9-408a-a90a-ee457e84a029.webp?v=1714833629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a4b8849a5d199eb94073fe2b62106b50269b46f_c400d678-03a9-408a-a90a-ee457e84a029.webp?v=1714833629","width":2000},{"alt":null,"id":23884724764771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631","width":2000},{"alt":null,"id":23884725321827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2648ecb8e72871c8af246d10be8370a9b9de888_2615df31-bfcf-4ca7-9718-67b0932f4249.webp?v=1714833634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2648ecb8e72871c8af246d10be8370a9b9de888_2615df31-bfcf-4ca7-9718-67b0932f4249.webp?v=1714833634","width":2000},{"alt":null,"id":23884725846115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b250012cdfe56fc12cce2e62711a35cb5d8b520_b7eb2ff3-298b-415f-8162-9f084628b8a1.webp?v=1714833636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b250012cdfe56fc12cce2e62711a35cb5d8b520_b7eb2ff3-298b-415f-8162-9f084628b8a1.webp?v=1714833636","width":2000},{"alt":null,"id":23884726272099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5d92b0d02ab52681ff825f8c8aa6432bb8290_31549f5d-7bd6-4883-942f-5b7096b4b791.webp?v=1714833638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46c5d92b0d02ab52681ff825f8c8aa6432bb8290_31549f5d-7bd6-4883-942f-5b7096b4b791.webp?v=1714833638","width":2000},{"alt":null,"id":23884726861923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2198cd070a759ea32ddeb96b728a5fdd917e4b0c_268d4b4a-cbdb-472f-a79c-18a14a13b9a4.webp?v=1714833641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2198cd070a759ea32ddeb96b728a5fdd917e4b0c_268d4b4a-cbdb-472f-a79c-18a14a13b9a4.webp?v=1714833641","width":2000},{"alt":null,"id":23884727418979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d433831be63e1fdcdd7351703a617863e79844_eaf9fef0-034b-4108-a008-7c5a1b007189.webp?v=1714833643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40d433831be63e1fdcdd7351703a617863e79844_eaf9fef0-034b-4108-a008-7c5a1b007189.webp?v=1714833643","width":2000},{"alt":null,"id":23884727943267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f403dae6851baabef9517a52da6d51979f6dc0b6_55b75e90-ebee-423c-9bac-2afb9cb37d9f.webp?v=1714833645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f403dae6851baabef9517a52da6d51979f6dc0b6_55b75e90-ebee-423c-9bac-2afb9cb37d9f.webp?v=1714833645","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894831226979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476256867,"product_id":7411086884963,"position":2,"created_at":"2024-05-04T22:40:27+08:00","updated_at":"2024-05-04T22:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627","variant_ids":[41894831226979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ02","featured_media":{"alt":null,"id":23884723814499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894831358051,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479477174371,"product_id":7411086884963,"position":4,"created_at":"2024-05-04T22:40:31+08:00","updated_at":"2024-05-04T22:40:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631","variant_ids":[41894831358051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-HQ02","featured_media":{"alt":null,"id":23884724764771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be0db56a6e6faca5cc1ca6f882fd71db2c02d6e0_89e93ea3-4b44-4799-8aca-dfa21c2430e7.webp?v=1714833631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894831226979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ02","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476256867,"product_id":7411086884963,"position":2,"created_at":"2024-05-04T22:40:27+08:00","updated_at":"2024-05-04T22:40:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627","variant_ids":[41894831226979]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭狗狗 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ02","featured_media":{"alt":null,"id":23884723814499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bcead46186ff42daf5c936cb483c1f6f9888aea_0db67027-ab5c-46ce-ab91-c5b492fcd133.webp?v=1714833627"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }