$product = {"id":7927124230243,"title":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山","handle":"iphone-13-mini-solidsuit-classic-magsafe-hik62","description":null,"published_at":"2025-11-25T09:59:25+08:00","created_at":"2025-11-24T16:28:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-haikyu","device-iPhone 13 Mini","merge","reseller-haikyu"],"price":125000,"price_min":125000,"price_max":125000,"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":43850858365027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438855267,"product_id":7927124230243,"position":14,"created_at":"2026-06-22T17:04:26+08:00","updated_at":"2026-06-22T17:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068","variant_ids":[43850858365027]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK62","featured_media":{"alt":null,"id":27557975720035,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850858528867,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041436659811,"product_id":7927124230243,"position":10,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065","variant_ids":[43850858528867]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-HIK62","featured_media":{"alt":null,"id":27557973524579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850858561635,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438527587,"product_id":7927124230243,"position":13,"created_at":"2026-06-22T17:04:26+08:00","updated_at":"2026-06-22T17:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068","variant_ids":[43850858561635]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-HIK62","featured_media":{"alt":null,"id":27557975392355,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a.webp?v=1763972897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f61a96ecfb51e5f1fe0f53841970539154bd31.webp?v=1763972897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d864fb8984871dbe06b6e15008295df515a517.webp?v=1763972898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733.webp?v=1763972898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9.webp?v=1763972899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024.webp?v=1763972899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0500ff263e60174d9c5fbe1ab98d58ac2f05494c.webp?v=1763972900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21687791d8063300d97f3d78cb788d2df653d30d.webp?v=1763972900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e.webp?v=1763972901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9_e8413ba7-8a84-4fdd-910e-2af96122863f.webp?v=1782119066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024_f5caa717-9518-42e2-9757-a28fcacfdf68.webp?v=1782119067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a.webp?v=1763972897","options":["color"],"media":[{"alt":null,"id":26398469161059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a.webp?v=1763972897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a.webp?v=1763972897","width":2000},{"alt":null,"id":26398469324899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f61a96ecfb51e5f1fe0f53841970539154bd31.webp?v=1763972897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f61a96ecfb51e5f1fe0f53841970539154bd31.webp?v=1763972897","width":2000},{"alt":null,"id":26398469455971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d864fb8984871dbe06b6e15008295df515a517.webp?v=1763972898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19d864fb8984871dbe06b6e15008295df515a517.webp?v=1763972898","width":2000},{"alt":null,"id":26398469554275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733.webp?v=1763972898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733.webp?v=1763972898","width":2000},{"alt":null,"id":26398469652579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9.webp?v=1763972899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9.webp?v=1763972899","width":2000},{"alt":null,"id":26398469783651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024.webp?v=1763972899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024.webp?v=1763972899","width":2000},{"alt":null,"id":26398469881955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0500ff263e60174d9c5fbe1ab98d58ac2f05494c.webp?v=1763972900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0500ff263e60174d9c5fbe1ab98d58ac2f05494c.webp?v=1763972900","width":2000},{"alt":null,"id":26398470045795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21687791d8063300d97f3d78cb788d2df653d30d.webp?v=1763972900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21687791d8063300d97f3d78cb788d2df653d30d.webp?v=1763972900","width":2000},{"alt":null,"id":26398470144099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e.webp?v=1763972901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e.webp?v=1763972901","width":2000},{"alt":null,"id":27557973524579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065","width":2000},{"alt":null,"id":27557974114403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9_e8413ba7-8a84-4fdd-910e-2af96122863f.webp?v=1782119066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3bbe78fb2556294b8a6533952e46f95e30ed9_e8413ba7-8a84-4fdd-910e-2af96122863f.webp?v=1782119066","width":2000},{"alt":null,"id":27557974671459,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024_f5caa717-9518-42e2-9757-a28fcacfdf68.webp?v=1782119067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0094e1dd8863d4e1a06cf6fd2ac23b337849024_f5caa717-9518-42e2-9757-a28fcacfdf68.webp?v=1782119067","width":2000},{"alt":null,"id":27557975392355,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068","width":2000},{"alt":null,"id":27557975720035,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43850858365027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438855267,"product_id":7927124230243,"position":14,"created_at":"2026-06-22T17:04:26+08:00","updated_at":"2026-06-22T17:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068","variant_ids":[43850858365027]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK62","featured_media":{"alt":null,"id":27557975720035,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850858528867,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"MST01228Z8-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041436659811,"product_id":7927124230243,"position":10,"created_at":"2026-06-22T17:04:23+08:00","updated_at":"2026-06-22T17:04:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065","variant_ids":[43850858528867]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z8-HIK62","featured_media":{"alt":null,"id":27557973524579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bfa5e0f3c99a7d324b3f41136be32c9d278c54e_fe70b2a3-3e20-4d3d-a645-775193a702f3.webp?v=1782119065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850858561635,"title":"Tide Blue","option1":"Tide Blue","option2":null,"option3":null,"sku":"MST01228Z9-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438527587,"product_id":7927124230243,"position":13,"created_at":"2026-06-22T17:04:26+08:00","updated_at":"2026-06-22T17:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068","variant_ids":[43850858561635]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Tide Blue","public_title":"Tide Blue","options":["Tide Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST01228Z9-HIK62","featured_media":{"alt":null,"id":27557975392355,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0170ca315716ae8183cdf0ed5a0d43a73531a75a_1c2eb134-9f53-428a-9fe4-4b7cfbf21b55.webp?v=1782119068"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43850858365027,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MST0122852-HIK62","requires_shipping":true,"taxable":true,"featured_image":{"id":36041438855267,"product_id":7927124230243,"position":14,"created_at":"2026-06-22T17:04:26+08:00","updated_at":"2026-06-22T17:04:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068","variant_ids":[43850858365027]},"available":true,"name":"iPhone 13 mini SolidSuit (MagSafe 兼容) 排球少年!! 攻擊吧!影山 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MST0122852-HIK62","featured_media":{"alt":null,"id":27557975720035,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/946d4da7c09228555c27058078139f885671a733_3c7f6c9e-15fe-4e4b-b783-766823a917f1.webp?v=1782119068"}},"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: "停產" }