$product = {"id":7769564610659,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓","handle":"iphone-8-mod-nx-printable-xf50","description":null,"published_at":"2025-07-16T17:23:16+08:00","created_at":"2025-04-15T17:48:55+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":43302950699107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196426915939,"product_id":7769564610659,"position":9,"created_at":"2025-07-16T14:43:03+08:00","updated_at":"2025-07-16T14:43:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185","variant_ids":[43302950699107]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829348704355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dedab076ff26bbe3bdbcbfaaa774efe455d0bb7.webp?v=1744710542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906aecf7b6ec9901f92c071be9ebf0bb3ec496fe_f107f4b0-cac7-4652-bfe7-52f5d2c374fd.webp?v=1752648182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c5e912aa449079543be72af5f7988a5819bec_5596d6ee-6dcf-44db-b2f4-3315606d0da8.webp?v=1752648183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d552f1b08ae9528bfa08c8820db6e9fd6d8c59c4_ab0c4d62-1544-40e1-b809-a135122e2961.webp?v=1752648183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3143cfd74b55f470a2542fa5601e0a602baa410b_f28a97c1-4a0f-4bff-90fb-42c057d39309.webp?v=1752648183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f7b4a9e2fe158f078b4e6ddc3e6f757d229d1d_1e49ed4e-78ad-4c65-84cc-2f0d615dd689.webp?v=1752648184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ba1e6f18f664dfef7fa57375a77a737181e8a7_9784e196-d026-4bf9-8973-7cfd6dd18193.webp?v=1752648184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cee6205c2195137161eb929fb84044ad852501_0ef2fb45-7f0e-4296-9b67-07f851f95a94.webp?v=1752648185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dedab076ff26bbe3bdbcbfaaa774efe455d0bb7.webp?v=1744710542","options":["color"],"media":[{"alt":null,"id":25495821877347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dedab076ff26bbe3bdbcbfaaa774efe455d0bb7.webp?v=1744710542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dedab076ff26bbe3bdbcbfaaa774efe455d0bb7.webp?v=1744710542","width":2000},{"alt":null,"id":25829347754083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906aecf7b6ec9901f92c071be9ebf0bb3ec496fe_f107f4b0-cac7-4652-bfe7-52f5d2c374fd.webp?v=1752648182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/906aecf7b6ec9901f92c071be9ebf0bb3ec496fe_f107f4b0-cac7-4652-bfe7-52f5d2c374fd.webp?v=1752648182","width":2000},{"alt":null,"id":25829347885155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c5e912aa449079543be72af5f7988a5819bec_5596d6ee-6dcf-44db-b2f4-3315606d0da8.webp?v=1752648183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f5c5e912aa449079543be72af5f7988a5819bec_5596d6ee-6dcf-44db-b2f4-3315606d0da8.webp?v=1752648183","width":2000},{"alt":null,"id":25829348081763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d552f1b08ae9528bfa08c8820db6e9fd6d8c59c4_ab0c4d62-1544-40e1-b809-a135122e2961.webp?v=1752648183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d552f1b08ae9528bfa08c8820db6e9fd6d8c59c4_ab0c4d62-1544-40e1-b809-a135122e2961.webp?v=1752648183","width":2000},{"alt":null,"id":25829348212835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3143cfd74b55f470a2542fa5601e0a602baa410b_f28a97c1-4a0f-4bff-90fb-42c057d39309.webp?v=1752648183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3143cfd74b55f470a2542fa5601e0a602baa410b_f28a97c1-4a0f-4bff-90fb-42c057d39309.webp?v=1752648183","width":2000},{"alt":null,"id":25829348409443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f7b4a9e2fe158f078b4e6ddc3e6f757d229d1d_1e49ed4e-78ad-4c65-84cc-2f0d615dd689.webp?v=1752648184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70f7b4a9e2fe158f078b4e6ddc3e6f757d229d1d_1e49ed4e-78ad-4c65-84cc-2f0d615dd689.webp?v=1752648184","width":2000},{"alt":null,"id":25829348507747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ba1e6f18f664dfef7fa57375a77a737181e8a7_9784e196-d026-4bf9-8973-7cfd6dd18193.webp?v=1752648184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12ba1e6f18f664dfef7fa57375a77a737181e8a7_9784e196-d026-4bf9-8973-7cfd6dd18193.webp?v=1752648184","width":2000},{"alt":null,"id":25829348606051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cee6205c2195137161eb929fb84044ad852501_0ef2fb45-7f0e-4296-9b67-07f851f95a94.webp?v=1752648185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08cee6205c2195137161eb929fb84044ad852501_0ef2fb45-7f0e-4296-9b67-07f851f95a94.webp?v=1752648185","width":2000},{"alt":null,"id":25829348704355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43302950699107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196426915939,"product_id":7769564610659,"position":9,"created_at":"2025-07-16T14:43:03+08:00","updated_at":"2025-07-16T14:43:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185","variant_ids":[43302950699107]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829348704355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43302950699107,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF50","requires_shipping":true,"taxable":true,"featured_image":{"id":34196426915939,"product_id":7769564610659,"position":9,"created_at":"2025-07-16T14:43:03+08:00","updated_at":"2025-07-16T14:43:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185","variant_ids":[43302950699107]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Meowing Glory - 貓咪藤蔓 - 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-XF50","featured_media":{"alt":null,"id":25829348704355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d80a98c4d7966920503e8a142f663f321395c99_2eea10e1-a349-4f4d-ac0b-f2aebda64ab4.webp?v=1752648185"}},"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: "停產" }