$product = {"id":7815631306851,"title":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍","handle":"iphone-15-pro-max-jellytint-magsafe-bumper-crossover-design-eg10","description":null,"published_at":"2025-06-11T15:24:38+08:00","created_at":"2025-06-11T14:27:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-littlepopcorn","device-iPhone 15 Pro Max","merge","reseller-littlepopcorn"],"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":43444874379363,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012270526563,"product_id":7815631306851,"position":13,"created_at":"2025-06-12T10:08:48+08:00","updated_at":"2025-06-12T10:08:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129","variant_ids":[43444874379363]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-EG10","featured_media":{"alt":null,"id":25692857925731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444877230179,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012271804515,"product_id":7815631306851,"position":15,"created_at":"2025-06-12T10:08:49+08:00","updated_at":"2025-06-12T10:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131","variant_ids":[43444877230179]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-EG10","featured_media":{"alt":null,"id":25692858581091,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910.webp?v=1749623240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f.webp?v=1749623241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a.webp?v=1749623241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9.webp?v=1749623242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_7d7afd65-9c31-4977-bd37-897af6b3fd85.webp?v=1749624509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c3bed1c7-ee1d-457b-84cb-fc3277eec65a.webp?v=1749624509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_593359d4-2e68-4838-92c2-f33fdaa4300c.webp?v=1749624510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_f97c895a-41a2-4887-8707-7f308823aea8.webp?v=1749624510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_e3fa5f47-b91d-4c1c-aaa1-4f216968ed48.webp?v=1749625365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_9421c6c6-8e75-4db9-bc17-9110e38b61d1.webp?v=1749625366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_b3e829b3-b562-4d3a-bef2-ea17b77eaa68.webp?v=1749625366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_08736679-3f96-4948-a544-9f33f7e5e6da.webp?v=1749625367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_5f1155b5-363b-4a99-b904-26a1e6ac368e.webp?v=1749694130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_59bebc9a-50fc-4a97-8dbf-3079f04b1323.webp?v=1749694131"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910.webp?v=1749623240","options":["color"],"media":[{"alt":null,"id":25689537478755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910.webp?v=1749623240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910.webp?v=1749623240","width":2000},{"alt":null,"id":25689537609827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f.webp?v=1749623241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f.webp?v=1749623241","width":2000},{"alt":null,"id":25689537871971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a.webp?v=1749623241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a.webp?v=1749623241","width":2000},{"alt":null,"id":25689538035811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9.webp?v=1749623242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9.webp?v=1749623242","width":2000},{"alt":null,"id":25689748996195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_7d7afd65-9c31-4977-bd37-897af6b3fd85.webp?v=1749624509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_7d7afd65-9c31-4977-bd37-897af6b3fd85.webp?v=1749624509","width":2000},{"alt":null,"id":25689749225571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c3bed1c7-ee1d-457b-84cb-fc3277eec65a.webp?v=1749624509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c3bed1c7-ee1d-457b-84cb-fc3277eec65a.webp?v=1749624509","width":2000},{"alt":null,"id":25689749454947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_593359d4-2e68-4838-92c2-f33fdaa4300c.webp?v=1749624510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_593359d4-2e68-4838-92c2-f33fdaa4300c.webp?v=1749624510","width":2000},{"alt":null,"id":25689749782627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_f97c895a-41a2-4887-8707-7f308823aea8.webp?v=1749624510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_f97c895a-41a2-4887-8707-7f308823aea8.webp?v=1749624510","width":2000},{"alt":null,"id":25689954549859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_e3fa5f47-b91d-4c1c-aaa1-4f216968ed48.webp?v=1749625365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_e3fa5f47-b91d-4c1c-aaa1-4f216968ed48.webp?v=1749625365","width":2000},{"alt":null,"id":25689954877539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_9421c6c6-8e75-4db9-bc17-9110e38b61d1.webp?v=1749625366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_9421c6c6-8e75-4db9-bc17-9110e38b61d1.webp?v=1749625366","width":2000},{"alt":null,"id":25689955172451,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_b3e829b3-b562-4d3a-bef2-ea17b77eaa68.webp?v=1749625366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_b3e829b3-b562-4d3a-bef2-ea17b77eaa68.webp?v=1749625366","width":2000},{"alt":null,"id":25689955434595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_08736679-3f96-4948-a544-9f33f7e5e6da.webp?v=1749625367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_08736679-3f96-4948-a544-9f33f7e5e6da.webp?v=1749625367","width":2000},{"alt":null,"id":25692857925731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129","width":2000},{"alt":null,"id":25692858220643,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_5f1155b5-363b-4a99-b904-26a1e6ac368e.webp?v=1749694130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e230e6473c2a2c628f22f4d65602068c56a7f910_5f1155b5-363b-4a99-b904-26a1e6ac368e.webp?v=1749694130","width":2000},{"alt":null,"id":25692858581091,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131","width":2000},{"alt":null,"id":25692858744931,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_59bebc9a-50fc-4a97-8dbf-3079f04b1323.webp?v=1749694131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932c4acc2b7e2c05c0a19bba816fd80167abe1f9_59bebc9a-50fc-4a97-8dbf-3079f04b1323.webp?v=1749694131","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43444874379363,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012270526563,"product_id":7815631306851,"position":13,"created_at":"2025-06-12T10:08:48+08:00","updated_at":"2025-06-12T10:08:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129","variant_ids":[43444874379363]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-EG10","featured_media":{"alt":null,"id":25692857925731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43444877230179,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"MCN012980J-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012271804515,"product_id":7815631306851,"position":15,"created_at":"2025-06-12T10:08:49+08:00","updated_at":"2025-06-12T10:08:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131","variant_ids":[43444877230179]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980J-EG10","featured_media":{"alt":null,"id":25692858581091,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47a8a4741ebc0a2c2dbaba261e905d940dd4974a_103ce085-abd9-411b-bca4-3aecf7b09777.webp?v=1749694131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43444874379363,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"MCN012980G-EG10","requires_shipping":true,"taxable":true,"featured_image":{"id":34012270526563,"product_id":7815631306851,"position":13,"created_at":"2025-06-12T10:08:48+08:00","updated_at":"2025-06-12T10:08:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129","variant_ids":[43444874379363]},"available":true,"name":"iPhone 15 Pro Max Clear (MagSafe 兼容) 小玉米花 新年恐龍 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":148000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MCN012980G-EG10","featured_media":{"alt":null,"id":25692857925731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f1201ec50bae3381ef4cb2b9feeb07833c867f_c8af0695-7dc1-4b92-a61b-c825082c3580.webp?v=1749694129"}},"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: "停產" }