$product = {"id":7903427788899,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 變種吉娃娃 Godgwawa 炸吉排","handle":"iphone-14-plus-mod-nx-magsafe-printable-it35","description":null,"published_at":"2025-10-20T09:43:30+08:00","created_at":"2025-10-20T09:27:05+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":43786612015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT35","requires_shipping":true,"taxable":true,"featured_image":{"id":34672914759779,"product_id":7903427788899,"position":5,"created_at":"2025-10-20T09:27:11+08:00","updated_at":"2025-10-20T09:27:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633","variant_ids":[43786612015203]},"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-IT35","featured_media":{"alt":null,"id":26242173698147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf03becbc4051d62f028b89a0aa3cc201d2a18a5.webp?v=1760923631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388e0d00559e319720bf6484db1e9ce9ff18c9d5.webp?v=1760923631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6be68cc316aaf784a04497cd5b86231838f24.webp?v=1760923632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624c8ccb68dac6cd82a7417fb90812493c5d24ea.webp?v=1760923633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a03a8d9202ccf709ae8d583109c8f8b036c7e11d.webp?v=1760923634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3220ee7d6e94f40ac1542c9e640256719058a7ed.webp?v=1760923635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6aa17729ce01fc5d9492c016efd625c7d5279d8.webp?v=1760923635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f4e9be495aeb68682cecbf86ffb3c099bd5712.webp?v=1760923636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6578c2c83707b384d80c0bd9e6c9d3f34c7ac90b.webp?v=1760923637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50826d62c5a5887ae7cebff57387ff6c33073c7.webp?v=1760923637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999e9951efcbbe6edfbc4bd9b57cebac04d04399.webp?v=1760923638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0b639d6ef5ef78ed8196e3dd67e0be3b85e304.webp?v=1760923639"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf03becbc4051d62f028b89a0aa3cc201d2a18a5.webp?v=1760923631","options":["color"],"media":[{"alt":null,"id":26242173010019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf03becbc4051d62f028b89a0aa3cc201d2a18a5.webp?v=1760923631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf03becbc4051d62f028b89a0aa3cc201d2a18a5.webp?v=1760923631","width":2000},{"alt":null,"id":26242173239395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388e0d00559e319720bf6484db1e9ce9ff18c9d5.webp?v=1760923631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/388e0d00559e319720bf6484db1e9ce9ff18c9d5.webp?v=1760923631","width":2000},{"alt":null,"id":26242173370467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6be68cc316aaf784a04497cd5b86231838f24.webp?v=1760923632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac6be68cc316aaf784a04497cd5b86231838f24.webp?v=1760923632","width":2000},{"alt":null,"id":26242173567075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624c8ccb68dac6cd82a7417fb90812493c5d24ea.webp?v=1760923633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/624c8ccb68dac6cd82a7417fb90812493c5d24ea.webp?v=1760923633","width":2000},{"alt":null,"id":26242173698147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633","width":2000},{"alt":null,"id":26242173927523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a03a8d9202ccf709ae8d583109c8f8b036c7e11d.webp?v=1760923634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a03a8d9202ccf709ae8d583109c8f8b036c7e11d.webp?v=1760923634","width":2000},{"alt":null,"id":26242174025827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3220ee7d6e94f40ac1542c9e640256719058a7ed.webp?v=1760923635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3220ee7d6e94f40ac1542c9e640256719058a7ed.webp?v=1760923635","width":2000},{"alt":null,"id":26242174255203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6aa17729ce01fc5d9492c016efd625c7d5279d8.webp?v=1760923635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6aa17729ce01fc5d9492c016efd625c7d5279d8.webp?v=1760923635","width":2000},{"alt":null,"id":26242174353507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f4e9be495aeb68682cecbf86ffb3c099bd5712.webp?v=1760923636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25f4e9be495aeb68682cecbf86ffb3c099bd5712.webp?v=1760923636","width":2000},{"alt":null,"id":26242174484579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6578c2c83707b384d80c0bd9e6c9d3f34c7ac90b.webp?v=1760923637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6578c2c83707b384d80c0bd9e6c9d3f34c7ac90b.webp?v=1760923637","width":2000},{"alt":null,"id":26242174681187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50826d62c5a5887ae7cebff57387ff6c33073c7.webp?v=1760923637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b50826d62c5a5887ae7cebff57387ff6c33073c7.webp?v=1760923637","width":2000},{"alt":null,"id":26242174746723,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999e9951efcbbe6edfbc4bd9b57cebac04d04399.webp?v=1760923638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999e9951efcbbe6edfbc4bd9b57cebac04d04399.webp?v=1760923638","width":2000},{"alt":null,"id":26242174779491,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0b639d6ef5ef78ed8196e3dd67e0be3b85e304.webp?v=1760923639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa0b639d6ef5ef78ed8196e3dd67e0be3b85e304.webp?v=1760923639","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43786612015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT35","requires_shipping":true,"taxable":true,"featured_image":{"id":34672914759779,"product_id":7903427788899,"position":5,"created_at":"2025-10-20T09:27:11+08:00","updated_at":"2025-10-20T09:27:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633","variant_ids":[43786612015203]},"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-IT35","featured_media":{"alt":null,"id":26242173698147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43786612015203,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-IT35","requires_shipping":true,"taxable":true,"featured_image":{"id":34672914759779,"product_id":7903427788899,"position":5,"created_at":"2025-10-20T09:27:11+08:00","updated_at":"2025-10-20T09:27:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633","variant_ids":[43786612015203]},"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-IT35","featured_media":{"alt":null,"id":26242173698147,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf62dc6d3ba7f49b5aab182770922141394b5f3.webp?v=1760923633"}},"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: "停產" }