$product = {"id":7998334337123,"title":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust","handle":"iphone-12-mini-solidsuit-classic-xk52","description":null,"published_at":"2026-04-20T12:11:05+08:00","created_at":"2026-04-20T09:44:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nasa","device-iPhone 12 Mini","merge","reseller-nasa"],"price":83000,"price_min":83000,"price_max":83000,"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":44126038098019,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618681443,"product_id":7998334337123,"position":13,"created_at":"2026-07-14T09:48:58+08:00","updated_at":"2026-07-14T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740","variant_ids":[44126038098019]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK52","featured_media":{"alt":null,"id":27758733623395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126046683235,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616191075,"product_id":7998334337123,"position":10,"created_at":"2026-07-14T09:48:51+08:00","updated_at":"2026-07-14T09:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733","variant_ids":[44126046683235]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK52","featured_media":{"alt":null,"id":27758731133027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049239139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615175267,"product_id":7998334337123,"position":9,"created_at":"2026-07-14T09:48:49+08:00","updated_at":"2026-07-14T09:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731","variant_ids":[44126049239139]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK52","featured_media":{"alt":null,"id":27758730117219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dd394a78d4efa935fe496ce1e3bba864d3db3c7.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415f402fbfe34278a3e3787a6cb8821644f495ae.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9.webp?v=1776649509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0_a694d14a-a3dd-4cd0-bd76-594484a1ad16.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382_344bde50-7f13-4dbd-b445-edc99fec006c.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9_7ac978ac-3dd7-4a85-9c9f-71c1ed876e8c.webp?v=1783993752"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dd394a78d4efa935fe496ce1e3bba864d3db3c7.webp?v=1776649504","options":["color"],"media":[{"alt":null,"id":27200624689251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dd394a78d4efa935fe496ce1e3bba864d3db3c7.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dd394a78d4efa935fe496ce1e3bba864d3db3c7.webp?v=1776649504","width":2000},{"alt":null,"id":27200625246307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0.webp?v=1776649504","width":2000},{"alt":null,"id":27200625705059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382.webp?v=1776649505","width":2000},{"alt":null,"id":27200626098275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e.webp?v=1776649505","width":2000},{"alt":null,"id":27200626720867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415f402fbfe34278a3e3787a6cb8821644f495ae.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/415f402fbfe34278a3e3787a6cb8821644f495ae.webp?v=1776649506","width":2000},{"alt":null,"id":27200627179619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c.webp?v=1776649507","width":2000},{"alt":null,"id":27200627671139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459.webp?v=1776649507","width":2000},{"alt":null,"id":27200627966051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9.webp?v=1776649509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9.webp?v=1776649509","width":2000},{"alt":null,"id":27758730117219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731","width":2000},{"alt":null,"id":27758731133027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733","width":2000},{"alt":null,"id":27758732279907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0_a694d14a-a3dd-4cd0-bd76-594484a1ad16.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f0f22ec0d667335340346cce3b458c384e731e0_a694d14a-a3dd-4cd0-bd76-594484a1ad16.webp?v=1783993736","width":2000},{"alt":null,"id":27758732968035,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382_344bde50-7f13-4dbd-b445-edc99fec006c.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0907a344bc7491811ca7524275c7266feace9382_344bde50-7f13-4dbd-b445-edc99fec006c.webp?v=1783993738","width":2000},{"alt":null,"id":27758733623395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740","width":2000},{"alt":null,"id":27758734245987,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9_7ac978ac-3dd7-4a85-9c9f-71c1ed876e8c.webp?v=1783993752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca16d3f66b0053a68af0f7026d75b707c2d7a9_7ac978ac-3dd7-4a85-9c9f-71c1ed876e8c.webp?v=1783993752","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44126038098019,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618681443,"product_id":7998334337123,"position":13,"created_at":"2026-07-14T09:48:58+08:00","updated_at":"2026-07-14T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740","variant_ids":[44126038098019]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK52","featured_media":{"alt":null,"id":27758733623395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126046683235,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616191075,"product_id":7998334337123,"position":10,"created_at":"2026-07-14T09:48:51+08:00","updated_at":"2026-07-14T09:48:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733","variant_ids":[44126046683235]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-XK52","featured_media":{"alt":null,"id":27758731133027,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e0e5e91e013417d86acf1031eab508cfc80e72e_2203ef67-8bb3-4b63-a3e6-4fe71718b530.webp?v=1783993733"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049239139,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615175267,"product_id":7998334337123,"position":9,"created_at":"2026-07-14T09:48:49+08:00","updated_at":"2026-07-14T09:48:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731","variant_ids":[44126049239139]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Black","public_title":"Black","options":["Black"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-XK52","featured_media":{"alt":null,"id":27758730117219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99336aae2e141a46123b7636e0cba3a911c65459_b6d07d5b-caf0-456f-a252-6b4e15587be4.webp?v=1783993731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44126038098019,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK52","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618681443,"product_id":7998334337123,"position":13,"created_at":"2026-07-14T09:48:58+08:00","updated_at":"2026-07-14T09:49:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740","variant_ids":[44126038098019]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Helix Nebula - Comets Dust - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-XK52","featured_media":{"alt":null,"id":27758733623395,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81d774e1cc9320bfa9f9d107adf00ff32f2218c_c55a2aeb-0e4f-40e5-921c-b91c3548222d.webp?v=1783993740"}},"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: "停產" }