$product = {"id":7998334599267,"title":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module","handle":"iphone-12-mini-solidsuit-classic-xk58","description":null,"published_at":"2026-04-20T12:11:02+08:00","created_at":"2026-04-20T09:44:30+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":44126038360163,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615404643,"product_id":7998334599267,"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\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732","variant_ids":[44126038360163]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758730346595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045700195,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616453219,"product_id":7998334599267,"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\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734","variant_ids":[44126045700195]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758731395171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048321635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618779747,"product_id":7998334599267,"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\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740","variant_ids":[44126048321635]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758733754467,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a.webp?v=1776649502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95.webp?v=1776649503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b.webp?v=1776649504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c886b51036eac0e61948ac6d0bcc18fce24addd0.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb748f10721e30e63a2b380ed07c388c6f6876f.webp?v=1776649505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca.webp?v=1776649507","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95_9f7953a7-7fc9-4f42-8fdc-158f7a7cb805.webp?v=1783993730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160_b522e06e-10b1-4483-af02-70cfd1ce2625.webp?v=1783993736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604_d474755d-dbab-4079-8555-8b2b69302d08.webp?v=1783993738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a.webp?v=1776649502","options":["color"],"media":[{"alt":null,"id":27200623378531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a.webp?v=1776649502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a.webp?v=1776649502","width":2000},{"alt":null,"id":27200623968355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95.webp?v=1776649503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95.webp?v=1776649503","width":2000},{"alt":null,"id":27200624590947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b.webp?v=1776649504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b.webp?v=1776649504","width":2000},{"alt":null,"id":27200624951395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c886b51036eac0e61948ac6d0bcc18fce24addd0.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c886b51036eac0e61948ac6d0bcc18fce24addd0.webp?v=1776649505","width":2000},{"alt":null,"id":27200625508451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604.webp?v=1776649505","width":2000},{"alt":null,"id":27200626196579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb748f10721e30e63a2b380ed07c388c6f6876f.webp?v=1776649505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecb748f10721e30e63a2b380ed07c388c6f6876f.webp?v=1776649505","width":2000},{"alt":null,"id":27200626851939,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160.webp?v=1776649507","width":2000},{"alt":null,"id":27200627408995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca.webp?v=1776649507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca.webp?v=1776649507","width":2000},{"alt":null,"id":27758729396323,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95_9f7953a7-7fc9-4f42-8fdc-158f7a7cb805.webp?v=1783993730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87d0935d4017329f932dbe63d7820b612fa45e95_9f7953a7-7fc9-4f42-8fdc-158f7a7cb805.webp?v=1783993730","width":2000},{"alt":null,"id":27758730346595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732","width":2000},{"alt":null,"id":27758731395171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734","width":2000},{"alt":null,"id":27758732476515,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160_b522e06e-10b1-4483-af02-70cfd1ce2625.webp?v=1783993736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a002dc09ce4b2a548ee76a49fa80c91b39aad160_b522e06e-10b1-4483-af02-70cfd1ce2625.webp?v=1783993736","width":2000},{"alt":null,"id":27758733197411,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604_d474755d-dbab-4079-8555-8b2b69302d08.webp?v=1783993738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97215760755ee1e253a59bb4a26b0eda5e937604_d474755d-dbab-4079-8555-8b2b69302d08.webp?v=1783993738","width":2000},{"alt":null,"id":27758733754467,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44126038360163,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615404643,"product_id":7998334599267,"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\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732","variant_ids":[44126038360163]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758730346595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126045700195,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254616453219,"product_id":7998334599267,"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\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734","variant_ids":[44126045700195]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758731395171,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8657d8569844c3de8c4b67bf6b80c852becdca_123a81d7-9d64-478c-9232-924c7e19da03.webp?v=1783993734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44126048321635,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254618779747,"product_id":7998334599267,"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\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740","variant_ids":[44126048321635]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758733754467,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b547517fdcb00af387423a54ef005f2698c963b_963d7ab9-03b8-4c20-b2f1-eb64da073f5e.webp?v=1783993740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44126038360163,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-XK58","requires_shipping":true,"taxable":true,"featured_image":{"id":36254615404643,"product_id":7998334599267,"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\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732","variant_ids":[44126038360163]},"available":true,"name":"iPhone 12 mini SolidSuit 太空 Astronaut Schweickart On The Lunar Module - 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-XK58","featured_media":{"alt":null,"id":27758730346595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f300045bf4a8aecf50ae9408b1106997783a5c1a_2140f792-28aa-449b-ac2f-fe042b742457.webp?v=1783993732"}},"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: "停產"
}