$product = {"id":7163990966371,"title":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment","handle":"iphone-15-pro-jellytint-pl58","description":null,"published_at":"2024-01-30T11:52:02+08:00","created_at":"2024-01-30T10:06:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Snoopy 史努比","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-snoopy","device-iPhone 15 Pro","merge","reseller-snoopy"],"price":118000,"price_min":118000,"price_max":118000,"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":41235228917859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542025827,"product_id":7163990966371,"position":11,"created_at":"2026-04-02T11:20:47+08:00","updated_at":"2026-04-02T11:20:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059","variant_ids":[41235228917859]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL58","featured_media":{"alt":null,"id":27113163751523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235228983395,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542713955,"product_id":7163990966371,"position":14,"created_at":"2026-04-02T11:20:49+08:00","updated_at":"2026-04-02T11:20:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051","variant_ids":[41235228983395]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PL58","featured_media":{"alt":null,"id":27113164439651,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235229016163,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542222435,"product_id":7163990966371,"position":12,"created_at":"2026-04-02T11:20:47+08:00","updated_at":"2026-04-02T11:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049","variant_ids":[41235229016163]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PL58","featured_media":{"alt":null,"id":27113163948131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046d839af472c1dd018c5e2ca6c5028c48195049_ffe4f376-91fc-46a1-b65f-ce6373448a97.webp?v=1706580387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f176fdf011c939a479c8e3e6ffa8854fdf71a3b9.webp?v=1706580389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38344697df624c88865ea685f73296dc866b0aee_2ebcca44-cf74-4e0e-96ad-d54e159b1bfa.webp?v=1706580391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469d7fd2a303c86bc8c9ca5dfb234b848dd8bc67.webp?v=1706580394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ab1422d24c7e06c4a5dbad01e69c3784994904.webp?v=1706580398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490ff46c37fd66395fff55bff2a5f3b75ac12ce.webp?v=1706580400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2.webp?v=1774940293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953.webp?v=1774940294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d.webp?v=1774940294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f.webp?v=1774940295","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d_385622cf-eea1-4152-a2af-667dda9a6e03.webp?v=1775100050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046d839af472c1dd018c5e2ca6c5028c48195049_ffe4f376-91fc-46a1-b65f-ce6373448a97.webp?v=1706580387","options":["color"],"media":[{"alt":null,"id":23237064261731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046d839af472c1dd018c5e2ca6c5028c48195049_ffe4f376-91fc-46a1-b65f-ce6373448a97.webp?v=1706580387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/046d839af472c1dd018c5e2ca6c5028c48195049_ffe4f376-91fc-46a1-b65f-ce6373448a97.webp?v=1706580387","width":2000},{"alt":null,"id":23237065146467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f176fdf011c939a479c8e3e6ffa8854fdf71a3b9.webp?v=1706580389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f176fdf011c939a479c8e3e6ffa8854fdf71a3b9.webp?v=1706580389","width":2000},{"alt":null,"id":23237065932899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38344697df624c88865ea685f73296dc866b0aee_2ebcca44-cf74-4e0e-96ad-d54e159b1bfa.webp?v=1706580391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38344697df624c88865ea685f73296dc866b0aee_2ebcca44-cf74-4e0e-96ad-d54e159b1bfa.webp?v=1706580391","width":2000},{"alt":null,"id":23237066850403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469d7fd2a303c86bc8c9ca5dfb234b848dd8bc67.webp?v=1706580394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/469d7fd2a303c86bc8c9ca5dfb234b848dd8bc67.webp?v=1706580394","width":2000},{"alt":null,"id":23237069308003,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ab1422d24c7e06c4a5dbad01e69c3784994904.webp?v=1706580398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77ab1422d24c7e06c4a5dbad01e69c3784994904.webp?v=1706580398","width":2000},{"alt":null,"id":23237070192739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490ff46c37fd66395fff55bff2a5f3b75ac12ce.webp?v=1706580400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d490ff46c37fd66395fff55bff2a5f3b75ac12ce.webp?v=1706580400","width":2000},{"alt":null,"id":27102488428643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2.webp?v=1774940293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2.webp?v=1774940293","width":2000},{"alt":null,"id":27102488559715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953.webp?v=1774940294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953.webp?v=1774940294","width":2000},{"alt":null,"id":27102488756323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d.webp?v=1774940294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d.webp?v=1774940294","width":2000},{"alt":null,"id":27102488887395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f.webp?v=1774940295"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f.webp?v=1774940295","width":2000},{"alt":null,"id":27113163751523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059","width":2000},{"alt":null,"id":27113163948131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049","width":2000},{"alt":null,"id":27113164243043,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d_385622cf-eea1-4152-a2af-667dda9a6e03.webp?v=1775100050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a398346843e7a9c8ca6e7b9644e5aa83fc45a16d_385622cf-eea1-4152-a2af-667dda9a6e03.webp?v=1775100050","width":2000},{"alt":null,"id":27113164439651,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41235228917859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542025827,"product_id":7163990966371,"position":11,"created_at":"2026-04-02T11:20:47+08:00","updated_at":"2026-04-02T11:20:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059","variant_ids":[41235228917859]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL58","featured_media":{"alt":null,"id":27113163751523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235228983395,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012970H-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542713955,"product_id":7163990966371,"position":14,"created_at":"2026-04-02T11:20:49+08:00","updated_at":"2026-04-02T11:20:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051","variant_ids":[41235228983395]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970H-PL58","featured_media":{"alt":null,"id":27113164439651,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e0d41c8b1f6971259a7deb1970c7d566d836953_7b3670ef-9893-46b3-b856-398c623aa477.webp?v=1775100051"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41235229016163,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012970I-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542222435,"product_id":7163990966371,"position":12,"created_at":"2026-04-02T11:20:47+08:00","updated_at":"2026-04-02T11:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049","variant_ids":[41235229016163]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970I-PL58","featured_media":{"alt":null,"id":27113163948131,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cea4f796e018d775d1f69b8441becfac677a51f_80502f0e-adf4-41a1-a977-53986948a7e1.webp?v=1775100049"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41235228917859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012970G-PL58","requires_shipping":true,"taxable":true,"featured_image":{"id":35580542025827,"product_id":7163990966371,"position":11,"created_at":"2026-04-02T11:20:47+08:00","updated_at":"2026-04-02T11:20:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059","variant_ids":[41235228917859]},"available":true,"name":"iPhone 15 Pro Clear Snoopy 史努比 Chill moment - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012970G-PL58","featured_media":{"alt":null,"id":27113163751523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/189d3445ff021411e706cc5de2c27d0d9fba2fb2_78e11c0d-e699-4df8-be3f-467622010910.webp?v=1775100059"}},"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: "停產" }