$product = {"id":7769921421411,"title":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬","handle":"iphone-14-jellytint-xf08","description":null,"published_at":"2025-04-16T13:31:07+08:00","created_at":"2025-04-15T22:08:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 14","merge","reseller-ilovedoodle"],"price":128000,"price_min":128000,"price_max":128000,"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":43304605778019,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581517037667,"product_id":7769921421411,"position":9,"created_at":"2026-04-02T14:44:46+08:00","updated_at":"2026-04-02T14:44:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288","variant_ids":[43304605778019]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF08","featured_media":{"alt":null,"id":27114137124963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304609906787,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581516873827,"product_id":7769921421411,"position":8,"created_at":"2026-04-02T14:44:46+08:00","updated_at":"2026-04-02T14:44:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288","variant_ids":[43304609906787]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF08","featured_media":{"alt":null,"id":27114136993891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304609939555,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581516611683,"product_id":7769921421411,"position":7,"created_at":"2026-04-02T14:44:45+08:00","updated_at":"2026-04-02T14:44:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287","variant_ids":[43304609939555]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF08","featured_media":{"alt":null,"id":27114136731747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2039efee0d7fa4f621d79b1bb2e0b90e75655681_797d3675-8a9c-4f6c-a4f6-7d2c3ed4c423.webp?v=1744726125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_865c1250-69dc-4d9c-a592-0d3277225453.webp?v=1774940110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_4789f964-00b6-4df9-87ff-16a4c972acb6.webp?v=1774940111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_c2093aaf-075d-4488-a90e-7e12962d0a21.webp?v=1774940112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_93532c7f-48cb-425a-84a7-1210ce1c3641.webp?v=1774940112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_fdbef7c9-e509-4425-b054-2ce2d8f2c347.webp?v=1775112287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2039efee0d7fa4f621d79b1bb2e0b90e75655681_797d3675-8a9c-4f6c-a4f6-7d2c3ed4c423.webp?v=1744726125","options":["color"],"media":[{"alt":null,"id":25496517345379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2039efee0d7fa4f621d79b1bb2e0b90e75655681_797d3675-8a9c-4f6c-a4f6-7d2c3ed4c423.webp?v=1744726125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2039efee0d7fa4f621d79b1bb2e0b90e75655681_797d3675-8a9c-4f6c-a4f6-7d2c3ed4c423.webp?v=1744726125","width":2000},{"alt":null,"id":27102460575843,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_865c1250-69dc-4d9c-a592-0d3277225453.webp?v=1774940110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_865c1250-69dc-4d9c-a592-0d3277225453.webp?v=1774940110","width":2000},{"alt":null,"id":27102460772451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_4789f964-00b6-4df9-87ff-16a4c972acb6.webp?v=1774940111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_4789f964-00b6-4df9-87ff-16a4c972acb6.webp?v=1774940111","width":2000},{"alt":null,"id":27102461132899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_c2093aaf-075d-4488-a90e-7e12962d0a21.webp?v=1774940112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_c2093aaf-075d-4488-a90e-7e12962d0a21.webp?v=1774940112","width":2000},{"alt":null,"id":27102461296739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_93532c7f-48cb-425a-84a7-1210ce1c3641.webp?v=1774940112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_93532c7f-48cb-425a-84a7-1210ce1c3641.webp?v=1774940112","width":2000},{"alt":null,"id":27114136567907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_fdbef7c9-e509-4425-b054-2ce2d8f2c347.webp?v=1775112287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc88094140bb0ae5c651a65cd062bce2fbe8df3_fdbef7c9-e509-4425-b054-2ce2d8f2c347.webp?v=1775112287","width":2000},{"alt":null,"id":27114136731747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287","width":2000},{"alt":null,"id":27114136993891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288","width":2000},{"alt":null,"id":27114137124963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304605778019,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581517037667,"product_id":7769921421411,"position":9,"created_at":"2026-04-02T14:44:46+08:00","updated_at":"2026-04-02T14:44:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288","variant_ids":[43304605778019]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF08","featured_media":{"alt":null,"id":27114137124963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304609906787,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581516873827,"product_id":7769921421411,"position":8,"created_at":"2026-04-02T14:44:46+08:00","updated_at":"2026-04-02T14:44:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288","variant_ids":[43304609906787]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF08","featured_media":{"alt":null,"id":27114136993891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e8fccfc61b1704d8853ec3a23cd2eb2256f5c83_b3185c06-cb46-4852-b4f0-149872d3e1f4.webp?v=1775112288"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304609939555,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581516611683,"product_id":7769921421411,"position":7,"created_at":"2026-04-02T14:44:45+08:00","updated_at":"2026-04-02T14:44:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287","variant_ids":[43304609939555]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF08","featured_media":{"alt":null,"id":27114136731747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fed578a7642f779b0817a331b058e8676389eb29_1befee7e-081e-4d7c-845d-2420b1f1c02c.webp?v=1775112287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304605778019,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF08","requires_shipping":true,"taxable":true,"featured_image":{"id":35581517037667,"product_id":7769921421411,"position":9,"created_at":"2026-04-02T14:44:46+08:00","updated_at":"2026-04-02T14:44:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288","variant_ids":[43304605778019]},"available":true,"name":"iPhone 14 Clear ilovedoodle I Hippopotamiss You 河馬 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF08","featured_media":{"alt":null,"id":27114137124963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feb068a7d86a0adc6110c829911a3c718d039993_f1f08c1c-8e19-4172-9162-82607757f071.webp?v=1775112288"}},"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: "停產" }