$product = {"id":7903387713635,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 普遍吉","handle":"iphone-14-plus-mod-nx-magsafe-printable-it32","description":null,"published_at":"2025-10-20T09:50:23+08:00","created_at":"2025-10-20T09:17:47+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":43786474225763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672699801699,"product_id":7903387713635,"position":10,"created_at":"2025-10-20T09:18:00+08:00","updated_at":"2025-10-20T09:18:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081","variant_ids":[43786474225763]},"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-IT32","featured_media":{"alt":null,"id":26241958477923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a6bc9bbeca234a0b7638fdc855279fb38f166.webp?v=1760923076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88adfe6790f793f9261bd3dd149c51da4c5853e.webp?v=1760923076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9fd370d1ed1f31999fe1926b8e807e1b191107.webp?v=1760923077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5002f9a9afcda045336829441049405b5da65b2.webp?v=1760923078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4c8126e0fd0fe548cc72fd195540d0cf4407f5.webp?v=1760923078","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df443cbcabcd29605e179163d8f1b8efb515d4ac.webp?v=1760923079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2dbc698d95359a3c8f612395af5aa88c0d637.webp?v=1760923079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181daa3390ae405650d441bafb68b67a6a5e3a44.webp?v=1760923080","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c9ec00ffce3d938b10145ac326d0d4fbf8d8306.webp?v=1760923081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38205de227eca7fde69286b353645b14e31c546f.webp?v=1760923082","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9274499939b7d93e9d1f9e1cf5eb58a57ee9936.webp?v=1760923083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab9b0c1cadeae8185c056e0ed46b9e42d938ec00.webp?v=1760923083"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a6bc9bbeca234a0b7638fdc855279fb38f166.webp?v=1760923076","options":["color"],"media":[{"alt":null,"id":26241955561571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a6bc9bbeca234a0b7638fdc855279fb38f166.webp?v=1760923076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2a6bc9bbeca234a0b7638fdc855279fb38f166.webp?v=1760923076","width":2000},{"alt":null,"id":26241956118627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88adfe6790f793f9261bd3dd149c51da4c5853e.webp?v=1760923076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f88adfe6790f793f9261bd3dd149c51da4c5853e.webp?v=1760923076","width":2000},{"alt":null,"id":26241956380771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9fd370d1ed1f31999fe1926b8e807e1b191107.webp?v=1760923077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9fd370d1ed1f31999fe1926b8e807e1b191107.webp?v=1760923077","width":2000},{"alt":null,"id":26241956741219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5002f9a9afcda045336829441049405b5da65b2.webp?v=1760923078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5002f9a9afcda045336829441049405b5da65b2.webp?v=1760923078","width":2000},{"alt":null,"id":26241957101667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4c8126e0fd0fe548cc72fd195540d0cf4407f5.webp?v=1760923078"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c4c8126e0fd0fe548cc72fd195540d0cf4407f5.webp?v=1760923078","width":2000},{"alt":null,"id":26241957658723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df443cbcabcd29605e179163d8f1b8efb515d4ac.webp?v=1760923079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df443cbcabcd29605e179163d8f1b8efb515d4ac.webp?v=1760923079","width":2000},{"alt":null,"id":26241957789795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2dbc698d95359a3c8f612395af5aa88c0d637.webp?v=1760923079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ab2dbc698d95359a3c8f612395af5aa88c0d637.webp?v=1760923079","width":2000},{"alt":null,"id":26241958215779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181daa3390ae405650d441bafb68b67a6a5e3a44.webp?v=1760923080"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/181daa3390ae405650d441bafb68b67a6a5e3a44.webp?v=1760923080","width":2000},{"alt":null,"id":26241958314083,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c9ec00ffce3d938b10145ac326d0d4fbf8d8306.webp?v=1760923081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c9ec00ffce3d938b10145ac326d0d4fbf8d8306.webp?v=1760923081","width":2000},{"alt":null,"id":26241958477923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081","width":2000},{"alt":null,"id":26241958903907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38205de227eca7fde69286b353645b14e31c546f.webp?v=1760923082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38205de227eca7fde69286b353645b14e31c546f.webp?v=1760923082","width":2000},{"alt":null,"id":26241959198819,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9274499939b7d93e9d1f9e1cf5eb58a57ee9936.webp?v=1760923083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9274499939b7d93e9d1f9e1cf5eb58a57ee9936.webp?v=1760923083","width":2000},{"alt":null,"id":26241959362659,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab9b0c1cadeae8185c056e0ed46b9e42d938ec00.webp?v=1760923083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab9b0c1cadeae8185c056e0ed46b9e42d938ec00.webp?v=1760923083","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43786474225763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672699801699,"product_id":7903387713635,"position":10,"created_at":"2025-10-20T09:18:00+08:00","updated_at":"2025-10-20T09:18:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081","variant_ids":[43786474225763]},"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-IT32","featured_media":{"alt":null,"id":26241958477923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786474225763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT32","requires_shipping":true,"taxable":true,"featured_image":{"id":34672699801699,"product_id":7903387713635,"position":10,"created_at":"2025-10-20T09:18:00+08:00","updated_at":"2025-10-20T09:18:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081","variant_ids":[43786474225763]},"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-IT32","featured_media":{"alt":null,"id":26241958477923,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02dff82ff60f857a8f32a6cca9338601be7ea08c.webp?v=1760923081"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }