$product = {"id":7769765707875,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-8-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:01:24+08:00","created_at":"2025-04-15T20:22:07+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":43303875215459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197397373027,"product_id":7769765707875,"position":7,"created_at":"2025-07-16T15:05:19+08:00","updated_at":"2025-07-16T15:05:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521","variant_ids":[43303875215459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Peek A Paw - 躲貓貓 - 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-XF48","featured_media":{"alt":null,"id":25829876039779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c1efbeae1986b5d52d919c1a89aa4fe426805f.webp?v=1744719734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b90213b89010629cb49d4ac1a8e167f952cbad_79f7b865-9b1d-4748-9a4d-032d69259e3c.webp?v=1752649518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646418e3620e8cc7dd0a1eee2775ae061ab9eb95_78b9ae1a-4bbc-4fbf-a567-38dc626a1102.webp?v=1752649519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9eff4da65c5a1dd9b35e005de82c7493bbaa86_703e9876-5547-4654-bc7a-6258951bacb8.webp?v=1752649519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c844d636290526e8f58ad06c6b30f2c2cb789b2_1260ff93-1407-4be4-98f7-f0a93c22f065.webp?v=1752649520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4688c9a14d5800cca6002ca654fac9d8735c4dbc_8a88d794-a0eb-4015-8f4b-cb0c6d6987c8.webp?v=1752649520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853b91ec26ef5d48d98a19a442db9ab91357d935_fe0f552b-8f60-4d3f-a5b9-a4fcd2458c03.webp?v=1752649521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a77c1e755007fc6a329938cfda6fca3654feb7_89c4e368-cf5c-4d34-83ab-a8feda97e80f.webp?v=1752649521"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c1efbeae1986b5d52d919c1a89aa4fe426805f.webp?v=1744719734","options":["color"],"media":[{"alt":null,"id":25496256151651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c1efbeae1986b5d52d919c1a89aa4fe426805f.webp?v=1744719734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2c1efbeae1986b5d52d919c1a89aa4fe426805f.webp?v=1744719734","width":2000},{"alt":null,"id":25829875187811,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b90213b89010629cb49d4ac1a8e167f952cbad_79f7b865-9b1d-4748-9a4d-032d69259e3c.webp?v=1752649518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5b90213b89010629cb49d4ac1a8e167f952cbad_79f7b865-9b1d-4748-9a4d-032d69259e3c.webp?v=1752649518","width":2000},{"alt":null,"id":25829875384419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646418e3620e8cc7dd0a1eee2775ae061ab9eb95_78b9ae1a-4bbc-4fbf-a567-38dc626a1102.webp?v=1752649519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/646418e3620e8cc7dd0a1eee2775ae061ab9eb95_78b9ae1a-4bbc-4fbf-a567-38dc626a1102.webp?v=1752649519","width":2000},{"alt":null,"id":25829875548259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9eff4da65c5a1dd9b35e005de82c7493bbaa86_703e9876-5547-4654-bc7a-6258951bacb8.webp?v=1752649519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e9eff4da65c5a1dd9b35e005de82c7493bbaa86_703e9876-5547-4654-bc7a-6258951bacb8.webp?v=1752649519","width":2000},{"alt":null,"id":25829875712099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c844d636290526e8f58ad06c6b30f2c2cb789b2_1260ff93-1407-4be4-98f7-f0a93c22f065.webp?v=1752649520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c844d636290526e8f58ad06c6b30f2c2cb789b2_1260ff93-1407-4be4-98f7-f0a93c22f065.webp?v=1752649520","width":2000},{"alt":null,"id":25829875875939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4688c9a14d5800cca6002ca654fac9d8735c4dbc_8a88d794-a0eb-4015-8f4b-cb0c6d6987c8.webp?v=1752649520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4688c9a14d5800cca6002ca654fac9d8735c4dbc_8a88d794-a0eb-4015-8f4b-cb0c6d6987c8.webp?v=1752649520","width":2000},{"alt":null,"id":25829876039779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521","width":2000},{"alt":null,"id":25829876203619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853b91ec26ef5d48d98a19a442db9ab91357d935_fe0f552b-8f60-4d3f-a5b9-a4fcd2458c03.webp?v=1752649521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/853b91ec26ef5d48d98a19a442db9ab91357d935_fe0f552b-8f60-4d3f-a5b9-a4fcd2458c03.webp?v=1752649521","width":2000},{"alt":null,"id":25829876432995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a77c1e755007fc6a329938cfda6fca3654feb7_89c4e368-cf5c-4d34-83ab-a8feda97e80f.webp?v=1752649521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a77c1e755007fc6a329938cfda6fca3654feb7_89c4e368-cf5c-4d34-83ab-a8feda97e80f.webp?v=1752649521","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303875215459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197397373027,"product_id":7769765707875,"position":7,"created_at":"2025-07-16T15:05:19+08:00","updated_at":"2025-07-16T15:05:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521","variant_ids":[43303875215459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Peek A Paw - 躲貓貓 - 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-XF48","featured_media":{"alt":null,"id":25829876039779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303875215459,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197397373027,"product_id":7769765707875,"position":7,"created_at":"2025-07-16T15:05:19+08:00","updated_at":"2025-07-16T15:05:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521","variant_ids":[43303875215459]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Peek A Paw - 躲貓貓 - 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-XF48","featured_media":{"alt":null,"id":25829876039779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e76f236193d427ef03df5a3c359ddefb1bc5f674_e9257706-e2be-4163-bf7b-a4fb846105a3.webp?v=1752649521"}},"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: "停產" }