$product = {"id":7903379226723,"title":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池","handle":"iphone-14-pro-mod-nx-printable-it31","description":null,"published_at":"2025-10-20T09:51:51+08:00","created_at":"2025-10-20T09:15:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-godgwawa","device-iPhone 14 Pro","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":43786446241891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672627875939,"product_id":7903379226723,"position":11,"created_at":"2025-10-20T09:15:52+08:00","updated_at":"2025-10-20T09:15:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954","variant_ids":[43786446241891]},"available":true,"name":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-IT31","featured_media":{"alt":null,"id":26241886748771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786446274659,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672626794595,"product_id":7903379226723,"position":9,"created_at":"2025-10-20T09:15:50+08:00","updated_at":"2025-10-20T09:15:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952","variant_ids":[43786446274659]},"available":true,"name":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-IT31","featured_media":{"alt":null,"id":26241885732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786446307427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672622501987,"product_id":7903379226723,"position":2,"created_at":"2025-10-20T09:15:45+08:00","updated_at":"2025-10-20T09:15:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947","variant_ids":[43786446307427]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-IT31","featured_media":{"alt":null,"id":26241881276515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bc50ffc525c19d3f4c74e7cc2bb081a1fae749.webp?v=1760922947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7554be70b56bbd74b764320b0547934025ed880e.webp?v=1760922948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaaaff85393b7e8c487699a875261ba4cf2b533.webp?v=1760922949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959159d8487628368652bf59f25da55fdc65e209.webp?v=1760922950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392549f59f498427e8ef7655ff4ce4ee30e33355.webp?v=1760922950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb468da5952679e323b35b4ad8e934a8ef2062f.webp?v=1760922951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f2eb0c5690e6b57de935ca9d21ac53501ddbb1.webp?v=1760922952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba3ab1e55345dde13dfffe2abef7b7e08c7dd4b.webp?v=1760922953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2eca3dd63688754de06e5bfe7940966066ba24c.webp?v=1760922955"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bc50ffc525c19d3f4c74e7cc2bb081a1fae749.webp?v=1760922947","options":["color"],"media":[{"alt":null,"id":26241880588387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bc50ffc525c19d3f4c74e7cc2bb081a1fae749.webp?v=1760922947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67bc50ffc525c19d3f4c74e7cc2bb081a1fae749.webp?v=1760922947","width":2000},{"alt":null,"id":26241881276515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947","width":2000},{"alt":null,"id":26241882226787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7554be70b56bbd74b764320b0547934025ed880e.webp?v=1760922948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7554be70b56bbd74b764320b0547934025ed880e.webp?v=1760922948","width":2000},{"alt":null,"id":26241883045987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaaaff85393b7e8c487699a875261ba4cf2b533.webp?v=1760922949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caaaaff85393b7e8c487699a875261ba4cf2b533.webp?v=1760922949","width":2000},{"alt":null,"id":26241883471971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959159d8487628368652bf59f25da55fdc65e209.webp?v=1760922950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/959159d8487628368652bf59f25da55fdc65e209.webp?v=1760922950","width":2000},{"alt":null,"id":26241883963491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392549f59f498427e8ef7655ff4ce4ee30e33355.webp?v=1760922950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/392549f59f498427e8ef7655ff4ce4ee30e33355.webp?v=1760922950","width":2000},{"alt":null,"id":26241884651619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb468da5952679e323b35b4ad8e934a8ef2062f.webp?v=1760922951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcb468da5952679e323b35b4ad8e934a8ef2062f.webp?v=1760922951","width":2000},{"alt":null,"id":26241885241443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f2eb0c5690e6b57de935ca9d21ac53501ddbb1.webp?v=1760922952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f2eb0c5690e6b57de935ca9d21ac53501ddbb1.webp?v=1760922952","width":2000},{"alt":null,"id":26241885732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952","width":2000},{"alt":null,"id":26241886191715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba3ab1e55345dde13dfffe2abef7b7e08c7dd4b.webp?v=1760922953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba3ab1e55345dde13dfffe2abef7b7e08c7dd4b.webp?v=1760922953","width":2000},{"alt":null,"id":26241886748771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954","width":2000},{"alt":null,"id":26241887207523,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2eca3dd63688754de06e5bfe7940966066ba24c.webp?v=1760922955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2eca3dd63688754de06e5bfe7940966066ba24c.webp?v=1760922955","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786446241891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672627875939,"product_id":7903379226723,"position":11,"created_at":"2025-10-20T09:15:52+08:00","updated_at":"2025-10-20T09:15:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954","variant_ids":[43786446241891]},"available":true,"name":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-IT31","featured_media":{"alt":null,"id":26241886748771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786446274659,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672626794595,"product_id":7903379226723,"position":9,"created_at":"2025-10-20T09:15:50+08:00","updated_at":"2025-10-20T09:15:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952","variant_ids":[43786446274659]},"available":true,"name":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-IT31","featured_media":{"alt":null,"id":26241885732963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05e7232081ffce7ecc81237c872f052cb1833c27.webp?v=1760922952"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43786446307427,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672622501987,"product_id":7903379226723,"position":2,"created_at":"2025-10-20T09:15:45+08:00","updated_at":"2025-10-20T09:15:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947","variant_ids":[43786446307427]},"available":true,"name":"iPhone 14 Pro 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":"NPB0126224-IT31","featured_media":{"alt":null,"id":26241881276515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181ea8b4312585a634b6380fe0de4bb111c2bd2a.webp?v=1760922947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786446241891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IT31","requires_shipping":true,"taxable":true,"featured_image":{"id":34672627875939,"product_id":7903379226723,"position":11,"created_at":"2025-10-20T09:15:52+08:00","updated_at":"2025-10-20T09:15:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954","variant_ids":[43786446241891]},"available":true,"name":"iPhone 14 Pro Mod NX 變種吉娃娃 Godgwawa 吉樂泳池 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-IT31","featured_media":{"alt":null,"id":26241886748771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/742b98092fa4e038d6a951c833481affb737904a.webp?v=1760922954"}},"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: "停產" }