$product = {"id":7998334402659,"title":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy","handle":"iphone-12-mini-solidsuit-classic-xk53","description":null,"published_at":"2026-04-20T12:11:04+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":44126038130787,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619402339,"product_id":7998334402659,"position":14,"created_at":"2026-07-14T09:49:10+08:00","updated_at":"2026-07-14T09:49:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753","variant_ids":[44126038130787]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758734344291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045765731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254617632867,"product_id":7998334402659,"position":11,"created_at":"2026-07-14T09:48:54+08:00","updated_at":"2026-07-14T09:48:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736","variant_ids":[44126045765731]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758732574819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048387171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615797859,"product_id":7998334402659,"position":9,"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\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732","variant_ids":[44126048387171]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758730707043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a.webp?v=1776649503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0eed296d655f0d4ba7386afc60c9b34a4b6ed25.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7e27089ddb1d9d4933e98d6d219a51973e5f5.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a_8a6281e4-e305-48ab-a12a-03a3a3f5e9a8.webp?v=1783993734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920_5d88be9a-c506-4c1c-95ff-1e13b18ad87c.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7_ce821e16-5807-45c9-a9da-a6dee1d9f688.webp?v=1783993741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a.webp?v=1776649503","options":["color"],"media":[{"alt":null,"id":27200623935587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a.webp?v=1776649503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a.webp?v=1776649503","width":2000},{"alt":null,"id":27200624164963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920.webp?v=1776649504","width":2000},{"alt":null,"id":27200624820323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0eed296d655f0d4ba7386afc60c9b34a4b6ed25.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0eed296d655f0d4ba7386afc60c9b34a4b6ed25.webp?v=1776649504","width":2000},{"alt":null,"id":27200625377379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c.webp?v=1776649504","width":2000},{"alt":null,"id":27200625901667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7.webp?v=1776649505","width":2000},{"alt":null,"id":27200626425955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7e27089ddb1d9d4933e98d6d219a51973e5f5.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0d7e27089ddb1d9d4933e98d6d219a51973e5f5.webp?v=1776649506","width":2000},{"alt":null,"id":27200626950243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4.webp?v=1776649507","width":2000},{"alt":null,"id":27200627474531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66.webp?v=1776649507","width":2000},{"alt":null,"id":27758730707043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732","width":2000},{"alt":null,"id":27758731722851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a_8a6281e4-e305-48ab-a12a-03a3a3f5e9a8.webp?v=1783993734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d387e2fe51c043433fa6f4849d4808016a54a49a_8a6281e4-e305-48ab-a12a-03a3a3f5e9a8.webp?v=1783993734","width":2000},{"alt":null,"id":27758732574819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736","width":2000},{"alt":null,"id":27758733131875,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920_5d88be9a-c506-4c1c-95ff-1e13b18ad87c.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/538c749759257f7a06338afa1e58ce90cf59c920_5d88be9a-c506-4c1c-95ff-1e13b18ad87c.webp?v=1783993738","width":2000},{"alt":null,"id":27758733852771,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7_ce821e16-5807-45c9-a9da-a6dee1d9f688.webp?v=1783993741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09ee7c7ea7c13af4147681b33f5ab7c9d951fed7_ce821e16-5807-45c9-a9da-a6dee1d9f688.webp?v=1783993741","width":2000},{"alt":null,"id":27758734344291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44126038130787,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619402339,"product_id":7998334402659,"position":14,"created_at":"2026-07-14T09:49:10+08:00","updated_at":"2026-07-14T09:49:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753","variant_ids":[44126038130787]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758734344291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045765731,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254617632867,"product_id":7998334402659,"position":11,"created_at":"2026-07-14T09:48:54+08:00","updated_at":"2026-07-14T09:48:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736","variant_ids":[44126045765731]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758732574819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c573a0744bea9671435608af99bf2428ca50e4_a57430ea-2945-49df-8c15-b5c4eaf2c410.webp?v=1783993736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048387171,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615797859,"product_id":7998334402659,"position":9,"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\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732","variant_ids":[44126048387171]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758730707043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/860de1be0ca62cb647d76a3f0d868d63f67c535c_8cabd392-9eaf-4379-a794-7540588d863f.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44126038130787,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK53","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619402339,"product_id":7998334402659,"position":14,"created_at":"2026-07-14T09:49:10+08:00","updated_at":"2026-07-14T09:49:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753","variant_ids":[44126038130787]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 The Two-faced Whirlpool Galaxy - 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-XK53","featured_media":{"alt":null,"id":27758734344291,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad81a0ac4c6f076a6481bea5b65960df303f8b66_1b8a11dc-5667-471e-a7d6-5f89c6a1c80a.webp?v=1783993753"}},"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: "停產" }