$product = {"id":7911196328035,"title":"iPhone 14 Plus Mod NX PosterLad 正常很無聊","handle":"iphone-14-plus-mod-nx-printable-pos04","description":null,"published_at":"2025-11-05T10:47:25+08:00","created_at":"2025-11-04T10:34:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-posterlad","device-iPhone 14 Plus","merge","reseller-posterlad"],"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":43811955671139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729084846179,"product_id":7911196328035,"position":5,"created_at":"2025-11-04T10:34:58+08:00","updated_at":"2025-11-04T10:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700","variant_ids":[43811955671139]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 正常很無聊 - 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-POS04","featured_media":{"alt":null,"id":26296953241699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548ff399146b29fb46c89dd40f55133e54d5a93a.webp?v=1762223697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a92638e53536a41bfc5a2b8fc919720f33e683.webp?v=1762223698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b0459488849c7273a9900415ea6b3b871f6cf.webp?v=1762223698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ccdacfb4db47ddafc8490cdf898f1f9208509d.webp?v=1762223699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/453bdcea88be5733b1f6778bafbaa9b4fda7c058.webp?v=1762223701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45057a5251e59be34739bb3e2c6ac54a52279a06.webp?v=1762223702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c183bc33cbdd15f2ad81aa32b08136f0ef3b5230.webp?v=1762223702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5061d43936e9e7ac379bc1e38e80aba6e6a124ca.webp?v=1762223704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12c5bf099a181002a2bb3dbf10fa43c2cb926e2.webp?v=1762223704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b06e09bbea6519381438a0e37b9f7eea2cc409.webp?v=1762223705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7104af33cf963b5a74f3e4cdeeeda4b80c952036.webp?v=1762223705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efe74285a2eaae2035328566e2e1653d6863dec.webp?v=1762223706"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548ff399146b29fb46c89dd40f55133e54d5a93a.webp?v=1762223697","options":["color"],"media":[{"alt":null,"id":26296952029283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548ff399146b29fb46c89dd40f55133e54d5a93a.webp?v=1762223697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548ff399146b29fb46c89dd40f55133e54d5a93a.webp?v=1762223697","width":2000},{"alt":null,"id":26296952389731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a92638e53536a41bfc5a2b8fc919720f33e683.webp?v=1762223698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10a92638e53536a41bfc5a2b8fc919720f33e683.webp?v=1762223698","width":2000},{"alt":null,"id":26296952619107,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b0459488849c7273a9900415ea6b3b871f6cf.webp?v=1762223698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b0459488849c7273a9900415ea6b3b871f6cf.webp?v=1762223698","width":2000},{"alt":null,"id":26296952881251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ccdacfb4db47ddafc8490cdf898f1f9208509d.webp?v=1762223699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63ccdacfb4db47ddafc8490cdf898f1f9208509d.webp?v=1762223699","width":2000},{"alt":null,"id":26296953241699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700","width":2000},{"alt":null,"id":26296953471075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/453bdcea88be5733b1f6778bafbaa9b4fda7c058.webp?v=1762223701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/453bdcea88be5733b1f6778bafbaa9b4fda7c058.webp?v=1762223701","width":2000},{"alt":null,"id":26296953798755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45057a5251e59be34739bb3e2c6ac54a52279a06.webp?v=1762223702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45057a5251e59be34739bb3e2c6ac54a52279a06.webp?v=1762223702","width":2000},{"alt":null,"id":26296954126435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c183bc33cbdd15f2ad81aa32b08136f0ef3b5230.webp?v=1762223702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c183bc33cbdd15f2ad81aa32b08136f0ef3b5230.webp?v=1762223702","width":2000},{"alt":null,"id":26296954355811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5061d43936e9e7ac379bc1e38e80aba6e6a124ca.webp?v=1762223704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5061d43936e9e7ac379bc1e38e80aba6e6a124ca.webp?v=1762223704","width":2000},{"alt":null,"id":26296954617955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12c5bf099a181002a2bb3dbf10fa43c2cb926e2.webp?v=1762223704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f12c5bf099a181002a2bb3dbf10fa43c2cb926e2.webp?v=1762223704","width":2000},{"alt":null,"id":26296954781795,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b06e09bbea6519381438a0e37b9f7eea2cc409.webp?v=1762223705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3b06e09bbea6519381438a0e37b9f7eea2cc409.webp?v=1762223705","width":2000},{"alt":null,"id":26296954912867,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7104af33cf963b5a74f3e4cdeeeda4b80c952036.webp?v=1762223705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7104af33cf963b5a74f3e4cdeeeda4b80c952036.webp?v=1762223705","width":2000},{"alt":null,"id":26296955043939,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efe74285a2eaae2035328566e2e1653d6863dec.webp?v=1762223706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1efe74285a2eaae2035328566e2e1653d6863dec.webp?v=1762223706","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43811955671139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729084846179,"product_id":7911196328035,"position":5,"created_at":"2025-11-04T10:34:58+08:00","updated_at":"2025-11-04T10:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700","variant_ids":[43811955671139]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 正常很無聊 - 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-POS04","featured_media":{"alt":null,"id":26296953241699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43811955671139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-POS04","requires_shipping":true,"taxable":true,"featured_image":{"id":34729084846179,"product_id":7911196328035,"position":5,"created_at":"2025-11-04T10:34:58+08:00","updated_at":"2025-11-04T10:35:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700","variant_ids":[43811955671139]},"available":true,"name":"iPhone 14 Plus Mod NX PosterLad 正常很無聊 - 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-POS04","featured_media":{"alt":null,"id":26296953241699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d2a397c97502b834364fa8b45a4e801c8ce4d1a.webp?v=1762223700"}},"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: "停產" }