$product = {"id":7799182295139,"title":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛","handle":"iphone-16-pro-max-jellytint-with-capture-button-ec26","description":null,"published_at":"2025-05-14T17:30:27+08:00","created_at":"2025-05-14T16:04:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"Collab JellyTint With Capture Button 懶散兔與啾先生 Lazy Rabbit and Mr.Chu","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-bylobster","device-iPhone 16 Pro Max","merge","reseller-bylobster"],"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":43377192468579,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013280G-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976886371,"product_id":7799182295139,"position":12,"created_at":"2026-07-02T11:09:02+08:00","updated_at":"2026-07-02T11:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744","variant_ids":[43377192468579]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - 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":"JTB013280G-EC26","featured_media":{"alt":null,"id":27656850800739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43377195352163,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013280J-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976198243,"product_id":7799182295139,"position":10,"created_at":"2026-07-02T11:08:52+08:00","updated_at":"2026-07-02T11:08:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734","variant_ids":[43377195352163]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - 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":"JTB013280J-EC26","featured_media":{"alt":null,"id":27656850112611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43377195384931,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013280H-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976591459,"product_id":7799182295139,"position":11,"created_at":"2026-07-02T11:08:58+08:00","updated_at":"2026-07-02T11:09:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740","variant_ids":[43377195384931]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013280H-EC26","featured_media":{"alt":null,"id":27656850505827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9430bf7a158b9cc115b93c5eeff8407a0cbfad8d.webp?v=1747209899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112.webp?v=1782181817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60.webp?v=1782181817","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8.webp?v=1782181818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301.webp?v=1782181819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_34308fd5-ed07-40b1-9bb8-d9cf6a81f245.webp?v=1782958398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_84b706d2-2139-4abe-80a2-f3fe9d90b04a.webp?v=1782958398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_939d3a53-7d3b-4be2-ab83-d3a326b0fcbd.webp?v=1782958399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_53340a49-b6dc-4884-b080-f143004981a8.webp?v=1782958399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_9eafa60e-66c0-4d1f-99a8-1e421b4a08bc.webp?v=1782961750"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9430bf7a158b9cc115b93c5eeff8407a0cbfad8d.webp?v=1747209899","options":["color"],"media":[{"alt":null,"id":25599740772451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9430bf7a158b9cc115b93c5eeff8407a0cbfad8d.webp?v=1747209899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9430bf7a158b9cc115b93c5eeff8407a0cbfad8d.webp?v=1747209899","width":2000},{"alt":null,"id":27568426909795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112.webp?v=1782181817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112.webp?v=1782181817","width":2000},{"alt":null,"id":27568427696227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60.webp?v=1782181817"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60.webp?v=1782181817","width":2000},{"alt":null,"id":27568428286051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8.webp?v=1782181818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8.webp?v=1782181818","width":2000},{"alt":null,"id":27568429072483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301.webp?v=1782181819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301.webp?v=1782181819","width":2000},{"alt":null,"id":27656151138403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_34308fd5-ed07-40b1-9bb8-d9cf6a81f245.webp?v=1782958398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_34308fd5-ed07-40b1-9bb8-d9cf6a81f245.webp?v=1782958398","width":2000},{"alt":null,"id":27656151302243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_84b706d2-2139-4abe-80a2-f3fe9d90b04a.webp?v=1782958398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_84b706d2-2139-4abe-80a2-f3fe9d90b04a.webp?v=1782958398","width":2000},{"alt":null,"id":27656151433315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_939d3a53-7d3b-4be2-ab83-d3a326b0fcbd.webp?v=1782958399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_939d3a53-7d3b-4be2-ab83-d3a326b0fcbd.webp?v=1782958399","width":2000},{"alt":null,"id":27656151597155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_53340a49-b6dc-4884-b080-f143004981a8.webp?v=1782958399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_53340a49-b6dc-4884-b080-f143004981a8.webp?v=1782958399","width":2000},{"alt":null,"id":27656850112611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734","width":2000},{"alt":null,"id":27656850505827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740","width":2000},{"alt":null,"id":27656850800739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744","width":2000},{"alt":null,"id":27656851587171,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_9eafa60e-66c0-4d1f-99a8-1e421b4a08bc.webp?v=1782961750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d3ef68f1ec28d567d997eecc5996e04985b3301_9eafa60e-66c0-4d1f-99a8-1e421b4a08bc.webp?v=1782961750","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43377192468579,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013280G-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976886371,"product_id":7799182295139,"position":12,"created_at":"2026-07-02T11:09:02+08:00","updated_at":"2026-07-02T11:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744","variant_ids":[43377192468579]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - 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":"JTB013280G-EC26","featured_media":{"alt":null,"id":27656850800739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43377195352163,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"JTB013280J-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976198243,"product_id":7799182295139,"position":10,"created_at":"2026-07-02T11:08:52+08:00","updated_at":"2026-07-02T11:08:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734","variant_ids":[43377195352163]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - 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":"JTB013280J-EC26","featured_media":{"alt":null,"id":27656850112611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999570e81cc0f37d84d676ef02976279fa79fae8_66d7f7d2-baa8-48ef-b30c-c02b1fa50a04.webp?v=1782961734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43377195384931,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"JTB013280H-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976591459,"product_id":7799182295139,"position":11,"created_at":"2026-07-02T11:08:58+08:00","updated_at":"2026-07-02T11:09:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740","variant_ids":[43377195384931]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":128000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"JTB013280H-EC26","featured_media":{"alt":null,"id":27656850505827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9088092a8a94cae5d3d273c8a7e77b637fb5f60_e4737b27-5e67-409e-addf-ef31c7265a5b.webp?v=1782961740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43377192468579,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"JTB013280G-EC26","requires_shipping":true,"taxable":true,"featured_image":{"id":36151976886371,"product_id":7799182295139,"position":12,"created_at":"2026-07-02T11:09:02+08:00","updated_at":"2026-07-02T11:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744","variant_ids":[43377192468579]},"available":true,"name":"iPhone 16 Pro Max Clear (相機按鈕) 懶散兔與啾先生 一起爛 - 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":"JTB013280G-EC26","featured_media":{"alt":null,"id":27656850800739,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593736b51682ccc945dd12bc51c8634e3c5ce112_c3372818-1452-4ed1-8b20-acfaff16288d.webp?v=1782961744"}},"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: "停產" }