$product = {"id":7903431819363,"title":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 五星吉海底餐廳","handle":"iphone-14-plus-mod-nx-printable-it37","description":null,"published_at":"2025-10-20T09:42:48+08:00","created_at":"2025-10-20T09:27:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 14 Plus","merge","reseller-godgwawa"],"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":43786625646691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":34672927211619,"product_id":7903431819363,"position":2,"created_at":"2025-10-20T09:27:55+08:00","updated_at":"2025-10-20T09:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677","variant_ids":[43786625646691]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 五星吉海底餐廳 - 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-IT37","featured_media":{"alt":null,"id":26242186149987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36645f5bdff00f816733f3439de6763a3b1556.webp?v=1760923677","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204ef70affbc0e53a6b06158ec3895e1103fa483.webp?v=1760923678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b529a2b3bd2f96a98337d8b2e8e81163b7003bc.webp?v=1760923679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932e2dc72463ada20e3d5bf63377a1f1d50d3555.webp?v=1760923680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ece7f1152b4adce9c6a01766f90c355b603450e.webp?v=1760923680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f30cee04c40384fb701eb92e78726f1a7e665843.webp?v=1760923681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/958c4f68e8cca6b8ad56e641e6642a4e985b468b.webp?v=1760923682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f199dd2685c83a36440860adf33e88b4d8f524b2.webp?v=1760923682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ade7ff7d661b1317871db37879d3870ac33e94a.webp?v=1760923683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6e8ec8bfc85dd79a41ad0d7f0c05661a264c49.webp?v=1760923683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca7ed45f59c725f2141ff80564d3e571d07fb33.webp?v=1760923684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4799c00bb8dc975a1c642a5b823309ccfdcc0a39.webp?v=1760923685"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36645f5bdff00f816733f3439de6763a3b1556.webp?v=1760923677","options":["color"],"media":[{"alt":null,"id":26242185887843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36645f5bdff00f816733f3439de6763a3b1556.webp?v=1760923677"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36645f5bdff00f816733f3439de6763a3b1556.webp?v=1760923677","width":2000},{"alt":null,"id":26242186149987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677","width":2000},{"alt":null,"id":26242186346595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204ef70affbc0e53a6b06158ec3895e1103fa483.webp?v=1760923678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/204ef70affbc0e53a6b06158ec3895e1103fa483.webp?v=1760923678","width":2000},{"alt":null,"id":26242186608739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b529a2b3bd2f96a98337d8b2e8e81163b7003bc.webp?v=1760923679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b529a2b3bd2f96a98337d8b2e8e81163b7003bc.webp?v=1760923679","width":2000},{"alt":null,"id":26242186936419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932e2dc72463ada20e3d5bf63377a1f1d50d3555.webp?v=1760923680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932e2dc72463ada20e3d5bf63377a1f1d50d3555.webp?v=1760923680","width":2000},{"alt":null,"id":26242187231331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ece7f1152b4adce9c6a01766f90c355b603450e.webp?v=1760923680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ece7f1152b4adce9c6a01766f90c355b603450e.webp?v=1760923680","width":2000},{"alt":null,"id":26242187559011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f30cee04c40384fb701eb92e78726f1a7e665843.webp?v=1760923681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f30cee04c40384fb701eb92e78726f1a7e665843.webp?v=1760923681","width":2000},{"alt":null,"id":26242187821155,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/958c4f68e8cca6b8ad56e641e6642a4e985b468b.webp?v=1760923682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/958c4f68e8cca6b8ad56e641e6642a4e985b468b.webp?v=1760923682","width":2000},{"alt":null,"id":26242188083299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f199dd2685c83a36440860adf33e88b4d8f524b2.webp?v=1760923682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f199dd2685c83a36440860adf33e88b4d8f524b2.webp?v=1760923682","width":2000},{"alt":null,"id":26242188542051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ade7ff7d661b1317871db37879d3870ac33e94a.webp?v=1760923683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ade7ff7d661b1317871db37879d3870ac33e94a.webp?v=1760923683","width":2000},{"alt":null,"id":26242188738659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6e8ec8bfc85dd79a41ad0d7f0c05661a264c49.webp?v=1760923683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d6e8ec8bfc85dd79a41ad0d7f0c05661a264c49.webp?v=1760923683","width":2000},{"alt":null,"id":26242189000803,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca7ed45f59c725f2141ff80564d3e571d07fb33.webp?v=1760923684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ca7ed45f59c725f2141ff80564d3e571d07fb33.webp?v=1760923684","width":2000},{"alt":null,"id":26242189197411,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4799c00bb8dc975a1c642a5b823309ccfdcc0a39.webp?v=1760923685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4799c00bb8dc975a1c642a5b823309ccfdcc0a39.webp?v=1760923685","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43786625646691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":34672927211619,"product_id":7903431819363,"position":2,"created_at":"2025-10-20T09:27:55+08:00","updated_at":"2025-10-20T09:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677","variant_ids":[43786625646691]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 五星吉海底餐廳 - 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-IT37","featured_media":{"alt":null,"id":26242186149987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786625646691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-IT37","requires_shipping":true,"taxable":true,"featured_image":{"id":34672927211619,"product_id":7903431819363,"position":2,"created_at":"2025-10-20T09:27:55+08:00","updated_at":"2025-10-20T09:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677","variant_ids":[43786625646691]},"available":true,"name":"iPhone 14 Plus Mod NX 變種吉娃娃 Godgwawa 五星吉海底餐廳 - 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-IT37","featured_media":{"alt":null,"id":26242186149987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e9fdc6aa8999360a5cf1ec9106e046d77e80ba.webp?v=1760923677"}},"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: "停產" }