$product = {"id":7769707905123,"title":"iPhone 14 Plus Mod NX ilovedoodle Peek A Paw - 躲貓貓","handle":"iphone-14-plus-mod-nx-printable-xf48","description":null,"published_at":"2025-07-16T17:06:44+08:00","created_at":"2025-04-15T19:46: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 14 Plus","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":43303633846371,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346123875,"product_id":7769707905123,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447","variant_ids":[43303633846371]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-XF48","featured_media":{"alt":null,"id":25829848481891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3cd0cbb2a43e0931ac34cb9388d34194904b10_de86ee07-cfc1-4a89-8bf8-289eb4671d13.webp?v=1744717574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7509ae48dd78d25b4ec2d02b8d5dda2bac6acf24_4c67b1b9-dac5-4bed-8960-31de1440c3b0.webp?v=1752649446","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6a30c9212f750220e2c6f657c31db4ab25548a_8ad0672d-2b55-4c30-b158-b817e04158ae.webp?v=1752649447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b9ca1713baa3221efb22d1048a8f5fa7f73f18_d750c907-fc31-4789-a0df-9f54933c1727.webp?v=1752649448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d39176cfe1a6a65ca9ef5abd612e2f731c6383_cf28d296-9b2b-4c16-8ca7-92ada8654f3f.webp?v=1752649448","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff95ad4ef2d292dc1068b20488db6bbbb098f97_c93df058-2134-44ad-ad38-b6cb929fe4ee.webp?v=1752649449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b935482650707dd73bbe0dc1839ca1cfccc76b_1e263ec4-e408-4d71-a3fd-cb91c81d761c.webp?v=1752649450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5705f1513e6bb6387939c18baccd23df545ff62e_2098fdf7-f264-4947-9e3f-4e7ad8e8ae2a.webp?v=1752649450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e22f01526ed29e55202da0a34dc5f70d98ed0c_38c920fa-1d48-4018-8e44-a586c1673429.webp?v=1752649450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e08929f0e1d0fd91c6ddbb6d29f5fcd9dded60_565eb4dc-8f99-48bf-a0ba-7aa1de31cc48.webp?v=1752649451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580346b3035823144ba0dd9b1cef65abf5cdd597_dcb68715-0b62-467c-9661-cb252fbe96ce.webp?v=1752649452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e24486d2e0c0cd8c0ea69b4736857b61ae6238_e1fa4207-211f-4bdf-8fb2-fac1e9c9e781.webp?v=1752649452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e6c7d7271cfa2fe71c152e820f620cf095434e_48842e93-1cc1-4ff3-9d6c-60f7cd20d116.webp?v=1752649453"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3cd0cbb2a43e0931ac34cb9388d34194904b10_de86ee07-cfc1-4a89-8bf8-289eb4671d13.webp?v=1744717574","options":["color"],"media":[{"alt":null,"id":25496155914339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3cd0cbb2a43e0931ac34cb9388d34194904b10_de86ee07-cfc1-4a89-8bf8-289eb4671d13.webp?v=1744717574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df3cd0cbb2a43e0931ac34cb9388d34194904b10_de86ee07-cfc1-4a89-8bf8-289eb4671d13.webp?v=1744717574","width":2000},{"alt":null,"id":25829848252515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7509ae48dd78d25b4ec2d02b8d5dda2bac6acf24_4c67b1b9-dac5-4bed-8960-31de1440c3b0.webp?v=1752649446"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7509ae48dd78d25b4ec2d02b8d5dda2bac6acf24_4c67b1b9-dac5-4bed-8960-31de1440c3b0.webp?v=1752649446","width":2000},{"alt":null,"id":25829848481891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447","width":2000},{"alt":null,"id":25829848645731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6a30c9212f750220e2c6f657c31db4ab25548a_8ad0672d-2b55-4c30-b158-b817e04158ae.webp?v=1752649447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc6a30c9212f750220e2c6f657c31db4ab25548a_8ad0672d-2b55-4c30-b158-b817e04158ae.webp?v=1752649447","width":2000},{"alt":null,"id":25829848842339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b9ca1713baa3221efb22d1048a8f5fa7f73f18_d750c907-fc31-4789-a0df-9f54933c1727.webp?v=1752649448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54b9ca1713baa3221efb22d1048a8f5fa7f73f18_d750c907-fc31-4789-a0df-9f54933c1727.webp?v=1752649448","width":2000},{"alt":null,"id":25829848940643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d39176cfe1a6a65ca9ef5abd612e2f731c6383_cf28d296-9b2b-4c16-8ca7-92ada8654f3f.webp?v=1752649448"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d39176cfe1a6a65ca9ef5abd612e2f731c6383_cf28d296-9b2b-4c16-8ca7-92ada8654f3f.webp?v=1752649448","width":2000},{"alt":null,"id":25829849170019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff95ad4ef2d292dc1068b20488db6bbbb098f97_c93df058-2134-44ad-ad38-b6cb929fe4ee.webp?v=1752649449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff95ad4ef2d292dc1068b20488db6bbbb098f97_c93df058-2134-44ad-ad38-b6cb929fe4ee.webp?v=1752649449","width":2000},{"alt":null,"id":25829849399395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b935482650707dd73bbe0dc1839ca1cfccc76b_1e263ec4-e408-4d71-a3fd-cb91c81d761c.webp?v=1752649450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b935482650707dd73bbe0dc1839ca1cfccc76b_1e263ec4-e408-4d71-a3fd-cb91c81d761c.webp?v=1752649450","width":2000},{"alt":null,"id":25829849628771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5705f1513e6bb6387939c18baccd23df545ff62e_2098fdf7-f264-4947-9e3f-4e7ad8e8ae2a.webp?v=1752649450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5705f1513e6bb6387939c18baccd23df545ff62e_2098fdf7-f264-4947-9e3f-4e7ad8e8ae2a.webp?v=1752649450","width":2000},{"alt":null,"id":25829849825379,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e22f01526ed29e55202da0a34dc5f70d98ed0c_38c920fa-1d48-4018-8e44-a586c1673429.webp?v=1752649450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e22f01526ed29e55202da0a34dc5f70d98ed0c_38c920fa-1d48-4018-8e44-a586c1673429.webp?v=1752649450","width":2000},{"alt":null,"id":25829850021987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e08929f0e1d0fd91c6ddbb6d29f5fcd9dded60_565eb4dc-8f99-48bf-a0ba-7aa1de31cc48.webp?v=1752649451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e08929f0e1d0fd91c6ddbb6d29f5fcd9dded60_565eb4dc-8f99-48bf-a0ba-7aa1de31cc48.webp?v=1752649451","width":2000},{"alt":null,"id":25829850349667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580346b3035823144ba0dd9b1cef65abf5cdd597_dcb68715-0b62-467c-9661-cb252fbe96ce.webp?v=1752649452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/580346b3035823144ba0dd9b1cef65abf5cdd597_dcb68715-0b62-467c-9661-cb252fbe96ce.webp?v=1752649452","width":2000},{"alt":null,"id":25829850611811,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e24486d2e0c0cd8c0ea69b4736857b61ae6238_e1fa4207-211f-4bdf-8fb2-fac1e9c9e781.webp?v=1752649452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e24486d2e0c0cd8c0ea69b4736857b61ae6238_e1fa4207-211f-4bdf-8fb2-fac1e9c9e781.webp?v=1752649452","width":2000},{"alt":null,"id":25829850873955,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e6c7d7271cfa2fe71c152e820f620cf095434e_48842e93-1cc1-4ff3-9d6c-60f7cd20d116.webp?v=1752649453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e6c7d7271cfa2fe71c152e820f620cf095434e_48842e93-1cc1-4ff3-9d6c-60f7cd20d116.webp?v=1752649453","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43303633846371,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346123875,"product_id":7769707905123,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447","variant_ids":[43303633846371]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-XF48","featured_media":{"alt":null,"id":25829848481891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43303633846371,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF48","requires_shipping":true,"taxable":true,"featured_image":{"id":34197346123875,"product_id":7769707905123,"position":3,"created_at":"2025-07-16T15:04:05+08:00","updated_at":"2025-07-16T15:04:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447","variant_ids":[43303633846371]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-XF48","featured_media":{"alt":null,"id":25829848481891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d3e1f53088188ad451eab2e4f73e706a50c4cfa_54cffe09-56f7-456f-a309-67882b7016b4.webp?v=1752649447"}},"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: "停產" }