$product = {"id":7903437226083,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域","handle":"iphone-14-plus-mod-nx-magsafe-printable-it38","description":null,"published_at":"2025-10-20T09:41:49+08:00","created_at":"2025-10-20T09:29:01+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":110000,"price_min":110000,"price_max":110000,"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":43786646356067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672950968419,"product_id":7903437226083,"position":7,"created_at":"2025-10-20T09:29:06+08:00","updated_at":"2025-10-20T09:29:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748","variant_ids":[43786646356067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IT38","featured_media":{"alt":null,"id":26242209906787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49764037ba16af488b419c7d7482814078e57655.webp?v=1760923744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b2abafb1a03a0a9cef9b779f85be4886281d3a.webp?v=1760923745","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd063558fd7c70490a247c7f7ddf8ddddc36cc9e.webp?v=1760923746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39273627120c6a1468b8a6d3e1d73ba9a3b6f33f.webp?v=1760923746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f17dfdcb75530c93b8b301bdab7c83d233e5fd.webp?v=1760923747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2848f81e9cb4aa6fadf25f866071da02473b0b8c.webp?v=1760923748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a01f14d2d6a2df72360e823286c816e904ce871.webp?v=1760923749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b78e74dfb2655cf487891dfe65d59392a89ab1.webp?v=1760923750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41cd061499e2525c6c04675abe5fdf867630164a.webp?v=1760923750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7f804ea20d9157cfc4f64f883bf7b1a004a9b1.webp?v=1760923751","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f809a5c12706d5d1d2bc1d3bb90127c87bf740e.webp?v=1760923752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc589429b8f0bb58d81deee36d9635d1bf7ee7a9.webp?v=1760923753"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49764037ba16af488b419c7d7482814078e57655.webp?v=1760923744","options":["color"],"media":[{"alt":null,"id":26242208628835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49764037ba16af488b419c7d7482814078e57655.webp?v=1760923744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49764037ba16af488b419c7d7482814078e57655.webp?v=1760923744","width":2000},{"alt":null,"id":26242208727139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b2abafb1a03a0a9cef9b779f85be4886281d3a.webp?v=1760923745"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55b2abafb1a03a0a9cef9b779f85be4886281d3a.webp?v=1760923745","width":2000},{"alt":null,"id":26242208923747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd063558fd7c70490a247c7f7ddf8ddddc36cc9e.webp?v=1760923746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd063558fd7c70490a247c7f7ddf8ddddc36cc9e.webp?v=1760923746","width":2000},{"alt":null,"id":26242209087587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39273627120c6a1468b8a6d3e1d73ba9a3b6f33f.webp?v=1760923746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39273627120c6a1468b8a6d3e1d73ba9a3b6f33f.webp?v=1760923746","width":2000},{"alt":null,"id":26242209284195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f17dfdcb75530c93b8b301bdab7c83d233e5fd.webp?v=1760923747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f17dfdcb75530c93b8b301bdab7c83d233e5fd.webp?v=1760923747","width":2000},{"alt":null,"id":26242209579107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2848f81e9cb4aa6fadf25f866071da02473b0b8c.webp?v=1760923748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2848f81e9cb4aa6fadf25f866071da02473b0b8c.webp?v=1760923748","width":2000},{"alt":null,"id":26242209906787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748","width":2000},{"alt":null,"id":26242210267235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a01f14d2d6a2df72360e823286c816e904ce871.webp?v=1760923749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a01f14d2d6a2df72360e823286c816e904ce871.webp?v=1760923749","width":2000},{"alt":null,"id":26242210562147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b78e74dfb2655cf487891dfe65d59392a89ab1.webp?v=1760923750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52b78e74dfb2655cf487891dfe65d59392a89ab1.webp?v=1760923750","width":2000},{"alt":null,"id":26242210857059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41cd061499e2525c6c04675abe5fdf867630164a.webp?v=1760923750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41cd061499e2525c6c04675abe5fdf867630164a.webp?v=1760923750","width":2000},{"alt":null,"id":26242211250275,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7f804ea20d9157cfc4f64f883bf7b1a004a9b1.webp?v=1760923751"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a7f804ea20d9157cfc4f64f883bf7b1a004a9b1.webp?v=1760923751","width":2000},{"alt":null,"id":26242211610723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f809a5c12706d5d1d2bc1d3bb90127c87bf740e.webp?v=1760923752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f809a5c12706d5d1d2bc1d3bb90127c87bf740e.webp?v=1760923752","width":2000},{"alt":null,"id":26242211971171,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc589429b8f0bb58d81deee36d9635d1bf7ee7a9.webp?v=1760923753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc589429b8f0bb58d81deee36d9635d1bf7ee7a9.webp?v=1760923753","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786646356067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672950968419,"product_id":7903437226083,"position":7,"created_at":"2025-10-20T09:29:06+08:00","updated_at":"2025-10-20T09:29:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748","variant_ids":[43786646356067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IT38","featured_media":{"alt":null,"id":26242209906787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786646356067,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT38","requires_shipping":true,"taxable":true,"featured_image":{"id":34672950968419,"product_id":7903437226083,"position":7,"created_at":"2025-10-20T09:29:06+08:00","updated_at":"2025-10-20T09:29:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748","variant_ids":[43786646356067]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 吉藍海域 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IT38","featured_media":{"alt":null,"id":26242209906787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab12c7add854c7dcb37186c773edc415fb5314ef.webp?v=1760923748"}},"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: "停產" }