$product = {"id":7922251399267,"title":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷","handle":"iphone-17-airx-magsafe-jz04","description":null,"published_at":"2025-11-19T10:41:57+08:00","created_at":"2025-11-13T15:37:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-brothers","device-iPhone 17","merge","reseller-brothers"],"price":195000,"price_min":195000,"price_max":195000,"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":43835707719779,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36125532094563,"product_id":7922251399267,"position":2,"created_at":"2026-06-29T16:03:58+08:00","updated_at":"2026-06-29T16:04:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240","variant_ids":[43835707719779]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013504E-JZ04","featured_media":{"alt":null,"id":27630774124643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43835708833891,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013504F-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36125532160099,"product_id":7922251399267,"position":3,"created_at":"2026-06-29T16:03:58+08:00","updated_at":"2026-06-29T16:04:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241","variant_ids":[43835708833891]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013504F-JZ04","featured_media":{"alt":null,"id":27630774190179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44439997382755,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013506C-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36484959666275,"product_id":7922251399267,"position":5,"created_at":"2026-08-05T09:37:14+08:00","updated_at":"2026-08-05T09:37:15+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835","variant_ids":[44439997382755]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506C-JZ04","featured_media":{"alt":null,"id":27988273168483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448493207651,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013506D-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36494501642339,"product_id":7922251399267,"position":7,"created_at":"2026-08-06T10:38:54+08:00","updated_at":"2026-08-06T10:38:55+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935","variant_ids":[44448493207651]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506D-JZ04","featured_media":{"alt":null,"id":27997799055459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448493699171,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013506E-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36494502166627,"product_id":7922251399267,"position":8,"created_at":"2026-08-06T10:38:56+08:00","updated_at":"2026-08-06T10:38:57+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937","variant_ids":[44448493699171]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506E-JZ04","featured_media":{"alt":null,"id":27997799579747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-JZ04.png?v=1763019444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554.webp?v=1785893834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f.webp?v=1785893838","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-JZ04.png?v=1763019444","options":["color"],"media":[{"alt":null,"id":26360697356387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-JZ04.png?v=1763019444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/AirX-4E-350-JZ04.png?v=1763019444","width":2000},{"alt":null,"id":27630774124643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240","width":2000},{"alt":null,"id":27630774190179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241","width":2000},{"alt":null,"id":27988272906339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554.webp?v=1785893834"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554.webp?v=1785893834","width":550},{"alt":null,"id":27988273168483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835","width":550},{"alt":null,"id":27988273365091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f.webp?v=1785893838"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f.webp?v=1785893838","width":550},{"alt":null,"id":27997799055459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935","width":550},{"alt":null,"id":27997799579747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937"},"aspect_ratio":1.0,"height":550,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937","width":550}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43835707719779,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36125532094563,"product_id":7922251399267,"position":2,"created_at":"2026-06-29T16:03:58+08:00","updated_at":"2026-06-29T16:04:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240","variant_ids":[43835707719779]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013504E-JZ04","featured_media":{"alt":null,"id":27630774124643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43835708833891,"title":"Flux Gray","option1":"Flux Gray","option2":null,"option3":null,"sku":"MAR013504F-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36125532160099,"product_id":7922251399267,"position":3,"created_at":"2026-06-29T16:03:58+08:00","updated_at":"2026-06-29T16:04:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241","variant_ids":[43835708833891]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Flux Gray","public_title":"Flux Gray","options":["Flux Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013504F-JZ04","featured_media":{"alt":null,"id":27630774190179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402ad1cc9e57b849c80a9130ac1042169f3f0584.webp?v=1782720241"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44439997382755,"title":"Ashen Violet","option1":"Ashen Violet","option2":null,"option3":null,"sku":"MAR013506C-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36484959666275,"product_id":7922251399267,"position":5,"created_at":"2026-08-05T09:37:14+08:00","updated_at":"2026-08-05T09:37:15+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835","variant_ids":[44439997382755]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Ashen Violet","public_title":"Ashen Violet","options":["Ashen Violet"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506C-JZ04","featured_media":{"alt":null,"id":27988273168483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56bf210ea486604456f2aa6f4370b66576eb50a.webp?v=1785893835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448493207651,"title":"Ridgeline Gray","option1":"Ridgeline Gray","option2":null,"option3":null,"sku":"MAR013506D-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36494501642339,"product_id":7922251399267,"position":7,"created_at":"2026-08-06T10:38:54+08:00","updated_at":"2026-08-06T10:38:55+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935","variant_ids":[44448493207651]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Ridgeline Gray","public_title":"Ridgeline Gray","options":["Ridgeline Gray"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506D-JZ04","featured_media":{"alt":null,"id":27997799055459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c529ef7e03f533f731af7e4286da40b9f19583f_cf9efe7d-df05-4f84-a6da-8b5b8aaaf025.webp?v=1785983935"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44448493699171,"title":"Trailhead Green","option1":"Trailhead Green","option2":null,"option3":null,"sku":"MAR013506E-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36494502166627,"product_id":7922251399267,"position":8,"created_at":"2026-08-06T10:38:56+08:00","updated_at":"2026-08-06T10:38:57+08:00","alt":null,"width":550,"height":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937","variant_ids":[44448493699171]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Trailhead Green","public_title":"Trailhead Green","options":["Trailhead Green"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013506E-JZ04","featured_media":{"alt":null,"id":27997799579747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":550,"width":550,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3350568863af70e15d91b771139490534ee52554_e811cd9c-77b6-4e1b-98e8-e650c6d62721.webp?v=1785983937"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43835707719779,"title":"Vero Black","option1":"Vero Black","option2":null,"option3":null,"sku":"MAR013504E-JZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":36125532094563,"product_id":7922251399267,"position":2,"created_at":"2026-06-29T16:03:58+08:00","updated_at":"2026-06-29T16:04:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240","variant_ids":[43835707719779]},"available":true,"name":"iPhone 17 AirX 中信兄弟 BROTHERS 所象披迷 - Vero Black","public_title":"Vero Black","options":["Vero Black"],"price":195000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MAR013504E-JZ04","featured_media":{"alt":null,"id":27630774124643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fad6532654daab439ce4990d3023b4852cde985d.webp?v=1782720240"}},"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: "停產" }