$product = {"id":7728420094051,"title":"iPhone X Mod NX 小高潮色計事務所 Chill high high","handle":"iphone-x-mod-nx-printable-iku05","description":null,"published_at":"2025-02-05T17:13:51+08:00","created_at":"2025-02-05T11:33:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-小高潮色計事務所 ikuiku studio","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ikuiku-studio","device-iPhone X","merge","reseller-ikuiku-studio"],"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":43155651166307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-IKU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515481493603,"product_id":7728420094051,"position":7,"created_at":"2025-09-22T16:36:47+08:00","updated_at":"2025-09-22T16:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210","variant_ids":[43155651166307]},"available":true,"name":"iPhone X Mod NX 小高潮色計事務所 Chill high high - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-IKU05","featured_media":{"alt":null,"id":26085919162467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ed18b12f73fc8dd0e8266f5d842aec89a092d9.webp?v=1738726444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef41ff5480e6eaf691c474d9ff829165548b534.webp?v=1758530207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d901e15fa398f985eaa9f301daac7448001aaa5.webp?v=1758530208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da4aa71d8864a062c27eba5e3893948e465a7748.webp?v=1758530208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6449365e1fbecb6f7510ebe68e72e0329405dfc.webp?v=1758530209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abe58765c1a02d161776a4038d92a35788c4e95.webp?v=1758530209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608f16fb3477a665b634ed1b559f51a41b88753.webp?v=1758530210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fef8b705677ad8338f77ce5d47c74d7ea808d22.webp?v=1758530210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b5bde3b484a83560befc9b2950c9519e62414f.webp?v=1758530211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da37ebc3752d72cd41f57c1a57208971c8715220.webp?v=1758530211"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ed18b12f73fc8dd0e8266f5d842aec89a092d9.webp?v=1738726444","options":["color"],"media":[{"alt":null,"id":25254942900323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ed18b12f73fc8dd0e8266f5d842aec89a092d9.webp?v=1738726444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9ed18b12f73fc8dd0e8266f5d842aec89a092d9.webp?v=1738726444","width":2000},{"alt":null,"id":26085917130851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef41ff5480e6eaf691c474d9ff829165548b534.webp?v=1758530207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ef41ff5480e6eaf691c474d9ff829165548b534.webp?v=1758530207","width":2000},{"alt":null,"id":26085917392995,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d901e15fa398f985eaa9f301daac7448001aaa5.webp?v=1758530208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d901e15fa398f985eaa9f301daac7448001aaa5.webp?v=1758530208","width":2000},{"alt":null,"id":26085918048355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da4aa71d8864a062c27eba5e3893948e465a7748.webp?v=1758530208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da4aa71d8864a062c27eba5e3893948e465a7748.webp?v=1758530208","width":2000},{"alt":null,"id":26085918441571,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6449365e1fbecb6f7510ebe68e72e0329405dfc.webp?v=1758530209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6449365e1fbecb6f7510ebe68e72e0329405dfc.webp?v=1758530209","width":2000},{"alt":null,"id":26085918867555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abe58765c1a02d161776a4038d92a35788c4e95.webp?v=1758530209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9abe58765c1a02d161776a4038d92a35788c4e95.webp?v=1758530209","width":2000},{"alt":null,"id":26085919162467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210","width":2000},{"alt":null,"id":26085919490147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608f16fb3477a665b634ed1b559f51a41b88753.webp?v=1758530210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2608f16fb3477a665b634ed1b559f51a41b88753.webp?v=1758530210","width":2000},{"alt":null,"id":26085919850595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fef8b705677ad8338f77ce5d47c74d7ea808d22.webp?v=1758530210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fef8b705677ad8338f77ce5d47c74d7ea808d22.webp?v=1758530210","width":2000},{"alt":null,"id":26085920145507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b5bde3b484a83560befc9b2950c9519e62414f.webp?v=1758530211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2b5bde3b484a83560befc9b2950c9519e62414f.webp?v=1758530211","width":2000},{"alt":null,"id":26085920440419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da37ebc3752d72cd41f57c1a57208971c8715220.webp?v=1758530211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da37ebc3752d72cd41f57c1a57208971c8715220.webp?v=1758530211","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43155651166307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-IKU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515481493603,"product_id":7728420094051,"position":7,"created_at":"2025-09-22T16:36:47+08:00","updated_at":"2025-09-22T16:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210","variant_ids":[43155651166307]},"available":true,"name":"iPhone X Mod NX 小高潮色計事務所 Chill high high - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-IKU05","featured_media":{"alt":null,"id":26085919162467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43155651166307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0106424-IKU05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515481493603,"product_id":7728420094051,"position":7,"created_at":"2025-09-22T16:36:47+08:00","updated_at":"2025-09-22T16:36:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210","variant_ids":[43155651166307]},"available":true,"name":"iPhone X Mod NX 小高潮色計事務所 Chill high high - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0106424-IKU05","featured_media":{"alt":null,"id":26085919162467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8091ae32fcbacf73f50f231c97dfa9a51de82486.webp?v=1758530210"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(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: "停產" }