$product = {"id":7998334009443,"title":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches","handle":"iphone-12-mini-solidsuit-classic-xk32","description":null,"published_at":"2026-04-20T12:11:10+08:00","created_at":"2026-04-20T09:44:28+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":44126037770339,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618845283,"product_id":7998334009443,"position":14,"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\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740","variant_ids":[44126037770339]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758733787235,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126047273059,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615568483,"product_id":7998334009443,"position":10,"created_at":"2026-07-14T09:48:50+08:00","updated_at":"2026-07-14T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732","variant_ids":[44126047273059]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758730477667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049402979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254614716515,"product_id":7998334009443,"position":9,"created_at":"2026-07-14T09:48:48+08:00","updated_at":"2026-07-14T09:48:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730","variant_ids":[44126049402979]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758729625699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d28adab9cfacd91a4de95a1849f6b12e1eafd5c8.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648.webp?v=1776649508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecc43276a95351f3f235ad2be8d17c5bba9fff.webp?v=1776649508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6.webp?v=1776649509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075_0776d5e5-8a4c-4c47-a04a-6f669ccc24aa.webp?v=1783993734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d_cc0ff619-9933-4cf5-ad97-a11052420923.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6_0cd61a6a-ca7b-4ed9-90d1-952fe2a30f10.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128.webp?v=1776649505","options":["color"],"media":[{"alt":null,"id":27200625180771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128.webp?v=1776649505","width":2000},{"alt":null,"id":27200625573987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d28adab9cfacd91a4de95a1849f6b12e1eafd5c8.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d28adab9cfacd91a4de95a1849f6b12e1eafd5c8.webp?v=1776649505","width":2000},{"alt":null,"id":27200626065507,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075.webp?v=1776649505","width":2000},{"alt":null,"id":27200626622563,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d.webp?v=1776649506","width":2000},{"alt":null,"id":27200627146851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6.webp?v=1776649507","width":2000},{"alt":null,"id":27200627572835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648.webp?v=1776649508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648.webp?v=1776649508","width":2000},{"alt":null,"id":27200627933283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecc43276a95351f3f235ad2be8d17c5bba9fff.webp?v=1776649508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aecc43276a95351f3f235ad2be8d17c5bba9fff.webp?v=1776649508","width":2000},{"alt":null,"id":27200628195427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6.webp?v=1776649509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6.webp?v=1776649509","width":2000},{"alt":null,"id":27758729625699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730","width":2000},{"alt":null,"id":27758730477667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732","width":2000},{"alt":null,"id":27758731460707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075_0776d5e5-8a4c-4c47-a04a-6f669ccc24aa.webp?v=1783993734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52945d39647fedc956ad46d511ea0f0794c11075_0776d5e5-8a4c-4c47-a04a-6f669ccc24aa.webp?v=1783993734","width":2000},{"alt":null,"id":27758732443747,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d_cc0ff619-9933-4cf5-ad97-a11052420923.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14323c4a2e00b23d58cde6ba8ca277975b640c0d_cc0ff619-9933-4cf5-ad97-a11052420923.webp?v=1783993736","width":2000},{"alt":null,"id":27758733066339,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6_0cd61a6a-ca7b-4ed9-90d1-952fe2a30f10.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f55d216fe17c27a5869cb2ddaf105472b7c5b6_0cd61a6a-ca7b-4ed9-90d1-952fe2a30f10.webp?v=1783993738","width":2000},{"alt":null,"id":27758733787235,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44126037770339,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618845283,"product_id":7998334009443,"position":14,"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\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740","variant_ids":[44126037770339]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758733787235,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126047273059,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615568483,"product_id":7998334009443,"position":10,"created_at":"2026-07-14T09:48:50+08:00","updated_at":"2026-07-14T09:48:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732","variant_ids":[44126047273059]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758730477667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/720a9d4b38f65731e8dfac692036b4cf6412f128_abf75c6a-50d2-47e8-93ed-adc450789a8c.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126049402979,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254614716515,"product_id":7998334009443,"position":9,"created_at":"2026-07-14T09:48:48+08:00","updated_at":"2026-07-14T09:48:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730","variant_ids":[44126049402979]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758729625699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51dc7804db6c79baea341081efb384b8888204d6_f5741097-7a81-4ca7-963c-be6103529bec.webp?v=1783993730"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44126037770339,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK32","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618845283,"product_id":7998334009443,"position":14,"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\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.webp?v=1783993740","variant_ids":[44126037770339]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Suit - Insignia Patches - 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-XK32","featured_media":{"alt":null,"id":27758733787235,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8ccdfd0c45550677812beea17980caa85889648_6fcec303-15ff-4ec6-9fa6-e894cc79f94d.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: "停產" }