$product = {"id":7998334304355,"title":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723","handle":"iphone-12-mini-solidsuit-classic-xk51","description":null,"published_at":"2026-04-20T12:11:06+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":44126038032483,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254617829475,"product_id":7998334304355,"position":12,"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\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736","variant_ids":[44126038032483]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758732836963,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045667427,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619074659,"product_id":7998334304355,"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\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740","variant_ids":[44126045667427]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758734016611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048288867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616911971,"product_id":7998334304355,"position":11,"created_at":"2026-07-14T09:48:52+08:00","updated_at":"2026-07-14T09:48:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734","variant_ids":[44126048288867]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758731853923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b.webp?v=1776649502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6977952885b96ec26d8c059761e6c02b35dc78.webp?v=1776649503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268.webp?v=1776649503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded3a444dc49c2b423f5611fb9dde0cfbeea0d79.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c.webp?v=1776649506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2_06ae39db-7951-4504-b718-7fb2329d0e97.webp?v=1783993730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c_8ab0c8b9-7aea-497b-b9ee-e95acaf1c24c.webp?v=1783993732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b_347ddc1f-e130-4d20-920d-0a9c76cde548.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b.webp?v=1776649502","options":["color"],"media":[{"alt":null,"id":27200623411299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b.webp?v=1776649502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b.webp?v=1776649502","width":2000},{"alt":null,"id":27200624033891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6977952885b96ec26d8c059761e6c02b35dc78.webp?v=1776649503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee6977952885b96ec26d8c059761e6c02b35dc78.webp?v=1776649503","width":2000},{"alt":null,"id":27200624525411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268.webp?v=1776649503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268.webp?v=1776649503","width":2000},{"alt":null,"id":27200625049699,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb.webp?v=1776649504","width":2000},{"alt":null,"id":27200625737827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded3a444dc49c2b423f5611fb9dde0cfbeea0d79.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded3a444dc49c2b423f5611fb9dde0cfbeea0d79.webp?v=1776649505","width":2000},{"alt":null,"id":27200626262115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f.webp?v=1776649505","width":2000},{"alt":null,"id":27200626819171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c.webp?v=1776649506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c.webp?v=1776649506","width":2000},{"alt":null,"id":27200627277923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2.webp?v=1776649507","width":2000},{"alt":null,"id":27758729691235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2_06ae39db-7951-4504-b718-7fb2329d0e97.webp?v=1783993730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a922e7fbf3fdcb75c90b616dde584d018784d9c2_06ae39db-7951-4504-b718-7fb2329d0e97.webp?v=1783993730","width":2000},{"alt":null,"id":27758730674275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c_8ab0c8b9-7aea-497b-b9ee-e95acaf1c24c.webp?v=1783993732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b701f36803d6084128d400cdc76e66820c160a9c_8ab0c8b9-7aea-497b-b9ee-e95acaf1c24c.webp?v=1783993732","width":2000},{"alt":null,"id":27758731853923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734","width":2000},{"alt":null,"id":27758732836963,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736","width":2000},{"alt":null,"id":27758733361251,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b_347ddc1f-e130-4d20-920d-0a9c76cde548.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53f11166e0a390e959376788b7666638b53de9b_347ddc1f-e130-4d20-920d-0a9c76cde548.webp?v=1783993738","width":2000},{"alt":null,"id":27758734016611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":44126038032483,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254617829475,"product_id":7998334304355,"position":12,"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\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736","variant_ids":[44126038032483]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758732836963,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045667427,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254619074659,"product_id":7998334304355,"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\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740","variant_ids":[44126045667427]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758734016611,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6ccc89c4f8f9216e0afaa7c4f30077789863268_95c5eceb-adfc-4819-b056-7d9897ca53a5.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048288867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616911971,"product_id":7998334304355,"position":11,"created_at":"2026-07-14T09:48:52+08:00","updated_at":"2026-07-14T09:48:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734","variant_ids":[44126048288867]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758731853923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e499acf6b36af8a4e8643f7219a4c11cf026a7eb_87ea0afe-153a-4bb7-b4fb-50d18f5edc62.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":44126038032483,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK51","requires_shipping":true,"taxable":true,"featured_image":{"id":36254617829475,"product_id":7998334304355,"position":12,"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\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736","variant_ids":[44126038032483]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Galaxy Cluster SMACS 0723 - 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-XK51","featured_media":{"alt":null,"id":27758732836963,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14ec75685c37a17d9f841213e6165787ed993f8f_d8e19a5b-b862-4a38-81b2-0e3d669a7af6.webp?v=1783993736"}},"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: "停產" }