$product = {"id":7815647527011,"title":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍","handle":"iphone-16-jellytint-magsafe-bumper-with-capture-button-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:15:52+08:00","created_at":"2025-06-11T14:30:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 16","merge","reseller-littlepopcorn"],"price":148000,"price_min":148000,"price_max":148000,"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":43444941455459,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012030337123,"product_id":7815647527011,"position":16,"created_at":"2025-06-12T10:05:28+08:00","updated_at":"2025-06-12T10:05:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930","variant_ids":[43444941455459]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-EG10","featured_media":{"alt":null,"id":25692734718051,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1.webp?v=1749623453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549.webp?v=1749623454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b.webp?v=1749623455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79.webp?v=1749623455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_a55c48a1-79a3-46e4-ba54-fea9bcacf007.webp?v=1749624704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_1e754aca-4a47-4344-95c8-a2d4f58e0cb2.webp?v=1749624705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_2c72eb8b-303f-4b5c-af52-1847e6a1b3ff.webp?v=1749624705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_12536026-da49-410f-9ab1-347846ca05b3.webp?v=1749624706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_bff4879a-6f83-4987-8a08-5f9d826bfc3e.webp?v=1749625498","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_5d53b00f-299c-4ca4-8ca0-cf959a90ddc5.webp?v=1749625499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_90850144-9807-4d77-869b-8a1574b34dbb.webp?v=1749625500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_ed5914b5-f7be-408e-8462-7a61a17161c8.webp?v=1749625500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_c88bfd1a-3a7d-4c5f-9f76-d295534dcb71.webp?v=1749693928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_6e4205a0-dd3f-4ac3-a475-1652d490595b.webp?v=1749693929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_116adde5-a865-4a44-a93f-41adc3c7c86c.webp?v=1749693929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1.webp?v=1749623453","options":["color"],"media":[{"alt":null,"id":25689610911843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1.webp?v=1749623453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1.webp?v=1749623453","width":2000},{"alt":null,"id":25689611173987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549.webp?v=1749623454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549.webp?v=1749623454","width":2000},{"alt":null,"id":25689611501667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b.webp?v=1749623455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b.webp?v=1749623455","width":2000},{"alt":null,"id":25689611796579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79.webp?v=1749623455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79.webp?v=1749623455","width":2000},{"alt":null,"id":25689819873379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_a55c48a1-79a3-46e4-ba54-fea9bcacf007.webp?v=1749624704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_a55c48a1-79a3-46e4-ba54-fea9bcacf007.webp?v=1749624704","width":2000},{"alt":null,"id":25689820102755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_1e754aca-4a47-4344-95c8-a2d4f58e0cb2.webp?v=1749624705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_1e754aca-4a47-4344-95c8-a2d4f58e0cb2.webp?v=1749624705","width":2000},{"alt":null,"id":25689820332131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_2c72eb8b-303f-4b5c-af52-1847e6a1b3ff.webp?v=1749624705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_2c72eb8b-303f-4b5c-af52-1847e6a1b3ff.webp?v=1749624705","width":2000},{"alt":null,"id":25689820627043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_12536026-da49-410f-9ab1-347846ca05b3.webp?v=1749624706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_12536026-da49-410f-9ab1-347846ca05b3.webp?v=1749624706","width":2000},{"alt":null,"id":25690003144803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_bff4879a-6f83-4987-8a08-5f9d826bfc3e.webp?v=1749625498"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_bff4879a-6f83-4987-8a08-5f9d826bfc3e.webp?v=1749625498","width":2000},{"alt":null,"id":25690003406947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_5d53b00f-299c-4ca4-8ca0-cf959a90ddc5.webp?v=1749625499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_5d53b00f-299c-4ca4-8ca0-cf959a90ddc5.webp?v=1749625499","width":2000},{"alt":null,"id":25690003570787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_90850144-9807-4d77-869b-8a1574b34dbb.webp?v=1749625500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_90850144-9807-4d77-869b-8a1574b34dbb.webp?v=1749625500","width":2000},{"alt":null,"id":25690003734627,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_ed5914b5-f7be-408e-8462-7a61a17161c8.webp?v=1749625500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_ed5914b5-f7be-408e-8462-7a61a17161c8.webp?v=1749625500","width":2000},{"alt":null,"id":25692733472867,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_c88bfd1a-3a7d-4c5f-9f76-d295534dcb71.webp?v=1749693928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af892d955aca9ba8f6145ddfdd19d1b8866549_c88bfd1a-3a7d-4c5f-9f76-d295534dcb71.webp?v=1749693928","width":2000},{"alt":null,"id":25692733964387,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_6e4205a0-dd3f-4ac3-a475-1652d490595b.webp?v=1749693929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331440dde812424dea2fc955295a416594814af1_6e4205a0-dd3f-4ac3-a475-1652d490595b.webp?v=1749693929","width":2000},{"alt":null,"id":25692734259299,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_116adde5-a865-4a44-a93f-41adc3c7c86c.webp?v=1749693929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b65a3b4356a1d27d63429bffda53861486d5f79_116adde5-a865-4a44-a93f-41adc3c7c86c.webp?v=1749693929","width":2000},{"alt":null,"id":25692734718051,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444941455459,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012030337123,"product_id":7815647527011,"position":16,"created_at":"2025-06-12T10:05:28+08:00","updated_at":"2025-06-12T10:05:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930","variant_ids":[43444941455459]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-EG10","featured_media":{"alt":null,"id":25692734718051,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444941455459,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MJB013250G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012030337123,"product_id":7815647527011,"position":16,"created_at":"2025-06-12T10:05:28+08:00","updated_at":"2025-06-12T10:05:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930","variant_ids":[43444941455459]},"available":true,"name":"iPhone 16 Clear(MagSafe 兼容 \u0026 相機按鈕) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013250G-EG10","featured_media":{"alt":null,"id":25692734718051,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5eb258853a70555898d09de6a4188997a3762b_0e6a03e6-2ebe-43b9-80bb-668fdf3b12ff.webp?v=1749693930"}},"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: "停產" }