$product = {"id":7155868762211,"title":"iPhone 14 Plus Clear 1G G本款","handle":"iphone-14-plus-jellytint-iv07","description":null,"published_at":"2024-02-02T09:59:09+08:00","created_at":"2024-01-23T16:58:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-1G","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","reseller-1chun"],"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":41197026115683,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142314455139,"product_id":7155868762211,"position":10,"created_at":"2026-07-01T12:51:20+08:00","updated_at":"2026-07-01T12:51:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482","variant_ids":[41197026115683]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-IV07","featured_media":{"alt":null,"id":27647204655203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197026148451,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142314094691,"product_id":7155868762211,"position":9,"created_at":"2026-07-01T12:51:19+08:00","updated_at":"2026-07-01T12:51:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481","variant_ids":[41197026148451]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-IV07","featured_media":{"alt":null,"id":27647204294755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197026181219,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142313603171,"product_id":7155868762211,"position":8,"created_at":"2026-07-01T12:51:18+08:00","updated_at":"2026-07-01T12:51:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480","variant_ids":[41197026181219]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-IV07","featured_media":{"alt":null,"id":27647203803235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb68c4ba617b91f6334ca6bd79d243049450d18_24e1c043-3fc2-4811-9942-85a9779e9fb1.webp?v=1706000327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_86ed2947-e7f2-4fa3-8e01-7cebc3993e26.webp?v=1706000329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27103a029d265d9f2aa0967735e563a2f06efff3_8dc2289b-8df0-4e30-9040-4d036bd44f66.webp?v=1706000332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/501319c1ea79a25d8a1c3e9500072f17b1ec5623_de6303c5-5c36-4d74-93f9-33f8923f11b4.webp?v=1706000334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba27a54beaee2f054db5473928fb980944a0eda_fbd42909-3238-4294-966d-f35c708e5b88.webp?v=1706000337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_18e739b4-8849-4fc4-830a-633459c38a06.webp?v=1706062560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47acb2822a17b373a2eee2448b751a6c19ea0f1_9b2e2802-66d0-4689-a83f-2bac40af1032.webp?v=1706262697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb68c4ba617b91f6334ca6bd79d243049450d18_24e1c043-3fc2-4811-9942-85a9779e9fb1.webp?v=1706000327","options":["color"],"media":[{"alt":null,"id":23201849475171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb68c4ba617b91f6334ca6bd79d243049450d18_24e1c043-3fc2-4811-9942-85a9779e9fb1.webp?v=1706000327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fb68c4ba617b91f6334ca6bd79d243049450d18_24e1c043-3fc2-4811-9942-85a9779e9fb1.webp?v=1706000327","width":2000},{"alt":null,"id":23201850064995,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_86ed2947-e7f2-4fa3-8e01-7cebc3993e26.webp?v=1706000329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_86ed2947-e7f2-4fa3-8e01-7cebc3993e26.webp?v=1706000329","width":2000},{"alt":null,"id":23201851048035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27103a029d265d9f2aa0967735e563a2f06efff3_8dc2289b-8df0-4e30-9040-4d036bd44f66.webp?v=1706000332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27103a029d265d9f2aa0967735e563a2f06efff3_8dc2289b-8df0-4e30-9040-4d036bd44f66.webp?v=1706000332","width":2000},{"alt":null,"id":23201851637859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/501319c1ea79a25d8a1c3e9500072f17b1ec5623_de6303c5-5c36-4d74-93f9-33f8923f11b4.webp?v=1706000334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/501319c1ea79a25d8a1c3e9500072f17b1ec5623_de6303c5-5c36-4d74-93f9-33f8923f11b4.webp?v=1706000334","width":2000},{"alt":null,"id":23201852293219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba27a54beaee2f054db5473928fb980944a0eda_fbd42909-3238-4294-966d-f35c708e5b88.webp?v=1706000337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aba27a54beaee2f054db5473928fb980944a0eda_fbd42909-3238-4294-966d-f35c708e5b88.webp?v=1706000337","width":2000},{"alt":null,"id":23207124795491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_18e739b4-8849-4fc4-830a-633459c38a06.webp?v=1706062560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581ef440a86dcea0d770d081c5e1eab8261f78e3_18e739b4-8849-4fc4-830a-633459c38a06.webp?v=1706062560","width":2000},{"alt":null,"id":23219495305315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47acb2822a17b373a2eee2448b751a6c19ea0f1_9b2e2802-66d0-4689-a83f-2bac40af1032.webp?v=1706262697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47acb2822a17b373a2eee2448b751a6c19ea0f1_9b2e2802-66d0-4689-a83f-2bac40af1032.webp?v=1706262697","width":2000},{"alt":null,"id":27647203803235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480","width":2000},{"alt":null,"id":27647204294755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481","width":2000},{"alt":null,"id":27647204655203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41197026115683,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142314455139,"product_id":7155868762211,"position":10,"created_at":"2026-07-01T12:51:20+08:00","updated_at":"2026-07-01T12:51:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482","variant_ids":[41197026115683]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-IV07","featured_media":{"alt":null,"id":27647204655203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197026148451,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012610H-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142314094691,"product_id":7155868762211,"position":9,"created_at":"2026-07-01T12:51:19+08:00","updated_at":"2026-07-01T12:51:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481","variant_ids":[41197026148451]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610H-IV07","featured_media":{"alt":null,"id":27647204294755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d7c242c85c7ce6e697f5ba9bba4ed57e60a4a6.webp?v=1782881481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41197026181219,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012610I-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142313603171,"product_id":7155868762211,"position":8,"created_at":"2026-07-01T12:51:18+08:00","updated_at":"2026-07-01T12:51:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480","variant_ids":[41197026181219]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610I-IV07","featured_media":{"alt":null,"id":27647203803235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bea5402dc5cabbd96741bd19178349759763164.webp?v=1782881480"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41197026115683,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012610G-IV07","requires_shipping":true,"taxable":true,"featured_image":{"id":36142314455139,"product_id":7155868762211,"position":10,"created_at":"2026-07-01T12:51:20+08:00","updated_at":"2026-07-01T12:51:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482","variant_ids":[41197026115683]},"available":true,"name":"iPhone 14 Plus Clear 1G G本款 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":128000,"weight":1080,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012610G-IV07","featured_media":{"alt":null,"id":27647204655203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03f4e238269baac5f7b2a95f493f639133a62761.webp?v=1782881482"}},"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: "停產" }