$product = {"id":7769839403107,"title":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝","handle":"iphone-14-jellytint-xf11","description":null,"published_at":"2025-04-16T14:08:00+08:00","created_at":"2025-04-15T21:04:22+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":43304173469795,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505339491,"product_id":7769839403107,"position":7,"created_at":"2026-04-02T14:44:08+08:00","updated_at":"2026-04-02T14:44:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250","variant_ids":[43304173469795]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125459555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304176255075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505273955,"product_id":7769839403107,"position":6,"created_at":"2026-04-02T14:44:07+08:00","updated_at":"2026-04-02T14:44:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249","variant_ids":[43304176255075]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125394019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304176287843,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505437795,"product_id":7769839403107,"position":8,"created_at":"2026-04-02T14:44:08+08:00","updated_at":"2026-04-02T14:44:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250","variant_ids":[43304176287843]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125557859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1f9ad15895124b787d9801ea54a5011c0526d3_b4b71e8d-22f4-4d59-94a9-795248d61c44.webp?v=1744722268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768.webp?v=1774937475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035.webp?v=1774937476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41.webp?v=1774937477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0.webp?v=1774937477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035_5659a79d-8eb2-454e-88fd-7e7140109a65.webp?v=1775112251"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1f9ad15895124b787d9801ea54a5011c0526d3_b4b71e8d-22f4-4d59-94a9-795248d61c44.webp?v=1744722268","options":["color"],"media":[{"alt":null,"id":25496345018467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1f9ad15895124b787d9801ea54a5011c0526d3_b4b71e8d-22f4-4d59-94a9-795248d61c44.webp?v=1744722268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c1f9ad15895124b787d9801ea54a5011c0526d3_b4b71e8d-22f4-4d59-94a9-795248d61c44.webp?v=1744722268","width":2000},{"alt":null,"id":27101628727395,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768.webp?v=1774937475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768.webp?v=1774937475","width":2000},{"alt":null,"id":27101628989539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035.webp?v=1774937476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035.webp?v=1774937476","width":2000},{"alt":null,"id":27101629218915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41.webp?v=1774937477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41.webp?v=1774937477","width":2000},{"alt":null,"id":27101629317219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0.webp?v=1774937477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0.webp?v=1774937477","width":2000},{"alt":null,"id":27114125394019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249","width":2000},{"alt":null,"id":27114125459555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250","width":2000},{"alt":null,"id":27114125557859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250","width":2000},{"alt":null,"id":27114125754467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035_5659a79d-8eb2-454e-88fd-7e7140109a65.webp?v=1775112251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f2e1792aa1b8411c7653c9baf37289d7c05035_5659a79d-8eb2-454e-88fd-7e7140109a65.webp?v=1775112251","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43304173469795,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505339491,"product_id":7769839403107,"position":7,"created_at":"2026-04-02T14:44:08+08:00","updated_at":"2026-04-02T14:44:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250","variant_ids":[43304173469795]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125459555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304176255075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505273955,"product_id":7769839403107,"position":6,"created_at":"2026-04-02T14:44:07+08:00","updated_at":"2026-04-02T14:44:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249","variant_ids":[43304176255075]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125394019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/062608881f80e8e451982615ca76881adc7c2f41_82268b34-31a5-49d2-b1e1-23a5742c8f46.webp?v=1775112249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304176287843,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505437795,"product_id":7769839403107,"position":8,"created_at":"2026-04-02T14:44:08+08:00","updated_at":"2026-04-02T14:44:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250","variant_ids":[43304176287843]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125557859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f0202eaff3c2c606473bba1f847a8e9b1f8768_54512ebb-5924-4d61-9a5b-82fd5a18b567.webp?v=1775112250"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304173469795,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF11","requires_shipping":true,"taxable":true,"featured_image":{"id":35581505339491,"product_id":7769839403107,"position":7,"created_at":"2026-04-02T14:44:08+08:00","updated_at":"2026-04-02T14:44:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250","variant_ids":[43304173469795]},"available":true,"name":"iPhone 14 Clear ilovedoodle Llazy Day 羊駝 - 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-XF11","featured_media":{"alt":null,"id":27114125459555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/258434e9eb27dbd7eb777ab920426984ab8a50e0_ca61e43a-3c7a-471a-93e4-5fa527c0c5a1.webp?v=1775112250"}},"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: "停產" }