$product = {"id":7888466739299,"title":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對","handle":"iphone-17-pro-max-jellytint-magsafe-with-capture-button-es01","description":null,"published_at":"2025-09-22T17:26:13+08:00","created_at":"2025-09-22T15:50:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 17 Pro Max","merge","reseller-annnbrownie"],"price":148000,"price_min":148000,"price_max":148000,"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":43743225086051,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347136737379,"product_id":7888466739299,"position":14,"created_at":"2026-07-22T17:08:49+08:00","updated_at":"2026-07-22T17:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331","variant_ids":[43743225086051]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-ES01","featured_media":{"alt":null,"id":27850993139811,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743226200163,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347136278627,"product_id":7888466739299,"position":13,"created_at":"2026-07-22T17:08:49+08:00","updated_at":"2026-07-22T17:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331","variant_ids":[43743226200163]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-ES01","featured_media":{"alt":null,"id":27850992681059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd.webp?v=1758527436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa.webp?v=1758527437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376.webp?v=1758527437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_75645035-1540-435f-92ab-ecdcb643d53b.webp?v=1784706989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_65e546e1-97ed-42ed-be0c-54f1ec5a3f46.webp?v=1784706990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_5c1281cc-e52f-42ef-8a4e-f753946e5044.webp?v=1784706992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_356305af-83e7-4c81-8463-2f295d5fd133.webp?v=1784709850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_71e9e626-fb81-4590-ac1d-d013a8caac98.webp?v=1784709850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_91df4db8-b92b-40fb-95cb-dd67518e5f21.webp?v=1784709851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_5d6452f2-fc16-4d87-93f9-064690aab4b8.webp?v=1784710628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_b7661e36-ebba-41d1-a4e2-8ac8c45f59a5.webp?v=1784710629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_7019a3b1-d46f-4ada-bdd5-8a55502e029b.webp?v=1784710630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_c410e349-53b6-4618-b1b5-e8e594e0adb4.webp?v=1784711332"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd.webp?v=1758527436","options":["color"],"media":[{"alt":null,"id":26084975771747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd.webp?v=1758527436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd.webp?v=1758527436","width":2000},{"alt":null,"id":26084975902819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa.webp?v=1758527437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa.webp?v=1758527437","width":2000},{"alt":null,"id":26084976033891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376.webp?v=1758527437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376.webp?v=1758527437","width":2000},{"alt":null,"id":27849591259235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_75645035-1540-435f-92ab-ecdcb643d53b.webp?v=1784706989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_75645035-1540-435f-92ab-ecdcb643d53b.webp?v=1784706989","width":2000},{"alt":null,"id":27849591652451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_65e546e1-97ed-42ed-be0c-54f1ec5a3f46.webp?v=1784706990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_65e546e1-97ed-42ed-be0c-54f1ec5a3f46.webp?v=1784706990","width":2000},{"alt":null,"id":27849592111203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_5c1281cc-e52f-42ef-8a4e-f753946e5044.webp?v=1784706992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_5c1281cc-e52f-42ef-8a4e-f753946e5044.webp?v=1784706992","width":2000},{"alt":null,"id":27850381459555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_356305af-83e7-4c81-8463-2f295d5fd133.webp?v=1784709850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_356305af-83e7-4c81-8463-2f295d5fd133.webp?v=1784709850","width":2000},{"alt":null,"id":27850381525091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_71e9e626-fb81-4590-ac1d-d013a8caac98.webp?v=1784709850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_71e9e626-fb81-4590-ac1d-d013a8caac98.webp?v=1784709850","width":2000},{"alt":null,"id":27850381656163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_91df4db8-b92b-40fb-95cb-dd67518e5f21.webp?v=1784709851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_91df4db8-b92b-40fb-95cb-dd67518e5f21.webp?v=1784709851","width":2000},{"alt":null,"id":27850687119459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_5d6452f2-fc16-4d87-93f9-064690aab4b8.webp?v=1784710628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_5d6452f2-fc16-4d87-93f9-064690aab4b8.webp?v=1784710628","width":2000},{"alt":null,"id":27850687414371,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_b7661e36-ebba-41d1-a4e2-8ac8c45f59a5.webp?v=1784710629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_b7661e36-ebba-41d1-a4e2-8ac8c45f59a5.webp?v=1784710629","width":2000},{"alt":null,"id":27850687643747,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_7019a3b1-d46f-4ada-bdd5-8a55502e029b.webp?v=1784710630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_7019a3b1-d46f-4ada-bdd5-8a55502e029b.webp?v=1784710630","width":2000},{"alt":null,"id":27850992681059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331","width":2000},{"alt":null,"id":27850993139811,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331","width":2000},{"alt":null,"id":27850993500259,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_c410e349-53b6-4618-b1b5-e8e594e0adb4.webp?v=1784711332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae97b20c9ddeed0fe0a6a720ab1ccc3f7dd479fd_c410e349-53b6-4618-b1b5-e8e594e0adb4.webp?v=1784711332","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43743225086051,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347136737379,"product_id":7888466739299,"position":14,"created_at":"2026-07-22T17:08:49+08:00","updated_at":"2026-07-22T17:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331","variant_ids":[43743225086051]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-ES01","featured_media":{"alt":null,"id":27850993139811,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743226200163,"title":"Gleam Rosé","option1":"Gleam Rosé","option2":null,"option3":null,"sku":"MJB013534L-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347136278627,"product_id":7888466739299,"position":13,"created_at":"2026-07-22T17:08:49+08:00","updated_at":"2026-07-22T17:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331","variant_ids":[43743226200163]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對 - Gleam Rosé","public_title":"Gleam Rosé","options":["Gleam Rosé"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534L-ES01","featured_media":{"alt":null,"id":27850992681059,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66d9938d2046ae25c181270df4973221fbee376_d0c4ed40-33d6-4364-9263-96bf52c88b1b.webp?v=1784711331"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43743225086051,"title":"Nocturne Blue","option1":"Nocturne Blue","option2":null,"option3":null,"sku":"MJB013534M-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":36347136737379,"product_id":7888466739299,"position":14,"created_at":"2026-07-22T17:08:49+08:00","updated_at":"2026-07-22T17:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331","variant_ids":[43743225086051]},"available":true,"name":"iPhone 17 Pro Max Clear (MagSafe 兼容 \u0026 相機按鈕) 布朗尼 annnbrownie 生日派對 - Nocturne Blue","public_title":"Nocturne Blue","options":["Nocturne Blue"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MJB013534M-ES01","featured_media":{"alt":null,"id":27850993139811,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ee0c54a198bf65d39a3bcc895df65a8eefaf4fa_c4f9ed0d-2a6f-4481-985d-e4d158db4b3a.webp?v=1784711331"}},"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: "停產" }