$product = {"id":7769892847715,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Stay Curious - 保持好奇心","handle":"iphone-8-mod-nx-printable-xf57","description":null,"published_at":"2025-04-16T13:43:52+08:00","created_at":"2025-04-15T21:47:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 8","merge","reseller-ilovedoodle"],"price":90000,"price_min":90000,"price_max":90000,"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":43304460091491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34196867186787,"product_id":7769892847715,"position":4,"created_at":"2025-07-16T14:53:05+08:00","updated_at":"2025-07-16T14:53:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787","variant_ids":[43304460091491]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF57","featured_media":{"alt":null,"id":25829588172899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3fe3656dcb9ba968c0315640d1a7f50ceb3a16.webp?v=1744724842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfc888646589a39c3856b4ee3264f740c0ddaf0_5094e46c-bc93-4d59-9485-f3ea920010a3.webp?v=1752648786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a496612946b212db9cbb91746caffefebf796653_dcf11b26-0ca5-45c5-9b05-dc6285f259dc.webp?v=1752648786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156a3d5aa7efacaafa905aa44aa43df6803804c_f69d2f1c-4295-46ec-8185-243e29e9a118.webp?v=1752648788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bb6d08ac5b214d87f5b1004af31f82bb2f688b_d3df07c8-308f-4ae4-8dd3-a522b381854d.webp?v=1752648788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a085f360e55dabb12cb637cfef8b4db5a4d8f7_07102718-2d62-41b3-a524-5b4558f92590.webp?v=1752648789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a0a2ea314673ef744626cae9c9e912edfa6f9e5_61027fb9-6e45-4c1c-8b3b-c4454809597d.webp?v=1752648790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163445a7369eccd213752563e03c5eb573ed2863_774c2483-dfcf-4200-9121-7d73dc3f1f59.webp?v=1752648790"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3fe3656dcb9ba968c0315640d1a7f50ceb3a16.webp?v=1744724842","options":["color"],"media":[{"alt":null,"id":25496448696419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3fe3656dcb9ba968c0315640d1a7f50ceb3a16.webp?v=1744724842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa3fe3656dcb9ba968c0315640d1a7f50ceb3a16.webp?v=1744724842","width":2000},{"alt":null,"id":25829587746915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfc888646589a39c3856b4ee3264f740c0ddaf0_5094e46c-bc93-4d59-9485-f3ea920010a3.webp?v=1752648786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cfc888646589a39c3856b4ee3264f740c0ddaf0_5094e46c-bc93-4d59-9485-f3ea920010a3.webp?v=1752648786","width":2000},{"alt":null,"id":25829588041827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a496612946b212db9cbb91746caffefebf796653_dcf11b26-0ca5-45c5-9b05-dc6285f259dc.webp?v=1752648786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a496612946b212db9cbb91746caffefebf796653_dcf11b26-0ca5-45c5-9b05-dc6285f259dc.webp?v=1752648786","width":2000},{"alt":null,"id":25829588172899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787","width":2000},{"alt":null,"id":25829588271203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156a3d5aa7efacaafa905aa44aa43df6803804c_f69d2f1c-4295-46ec-8185-243e29e9a118.webp?v=1752648788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156a3d5aa7efacaafa905aa44aa43df6803804c_f69d2f1c-4295-46ec-8185-243e29e9a118.webp?v=1752648788","width":2000},{"alt":null,"id":25829588697187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bb6d08ac5b214d87f5b1004af31f82bb2f688b_d3df07c8-308f-4ae4-8dd3-a522b381854d.webp?v=1752648788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bb6d08ac5b214d87f5b1004af31f82bb2f688b_d3df07c8-308f-4ae4-8dd3-a522b381854d.webp?v=1752648788","width":2000},{"alt":null,"id":25829588762723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a085f360e55dabb12cb637cfef8b4db5a4d8f7_07102718-2d62-41b3-a524-5b4558f92590.webp?v=1752648789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4a085f360e55dabb12cb637cfef8b4db5a4d8f7_07102718-2d62-41b3-a524-5b4558f92590.webp?v=1752648789","width":2000},{"alt":null,"id":25829588992099,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a0a2ea314673ef744626cae9c9e912edfa6f9e5_61027fb9-6e45-4c1c-8b3b-c4454809597d.webp?v=1752648790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a0a2ea314673ef744626cae9c9e912edfa6f9e5_61027fb9-6e45-4c1c-8b3b-c4454809597d.webp?v=1752648790","width":2000},{"alt":null,"id":25829589254243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163445a7369eccd213752563e03c5eb573ed2863_774c2483-dfcf-4200-9121-7d73dc3f1f59.webp?v=1752648790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/163445a7369eccd213752563e03c5eb573ed2863_774c2483-dfcf-4200-9121-7d73dc3f1f59.webp?v=1752648790","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304460091491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34196867186787,"product_id":7769892847715,"position":4,"created_at":"2025-07-16T14:53:05+08:00","updated_at":"2025-07-16T14:53:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787","variant_ids":[43304460091491]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF57","featured_media":{"alt":null,"id":25829588172899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304460091491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF57","requires_shipping":true,"taxable":true,"featured_image":{"id":34196867186787,"product_id":7769892847715,"position":4,"created_at":"2025-07-16T14:53:05+08:00","updated_at":"2025-07-16T14:53:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787","variant_ids":[43304460091491]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Stay Curious - 保持好奇心 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF57","featured_media":{"alt":null,"id":25829588172899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b7f89d03e6c083502d904e2c53fccc8432950ee_77adcd3b-c732-4499-87fb-59913192aabd.webp?v=1752648787"}},"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: "停產" }