$product = {"id":7985984667747,"title":"iPhone 12 mini SolidSuit MITSUME Mad Love","handle":"iphone-12-mini-solidsuit-classic-mit26","description":null,"published_at":"2026-03-26T11:36:34+08:00","created_at":"2026-03-26T09:42:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-mitsume","device-iPhone 12 Mini","merge","reseller-mitsume"],"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":44079231795299,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357889687651,"product_id":7985984667747,"position":13,"created_at":"2026-07-23T11:58:36+08:00","updated_at":"2026-07-23T11:58:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118","variant_ids":[44079231795299]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861673508963,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079232909411,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357887754339,"product_id":7985984667747,"position":9,"created_at":"2026-07-23T11:58:33+08:00","updated_at":"2026-07-23T11:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115","variant_ids":[44079232909411]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861671542883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233171555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357888901219,"product_id":7985984667747,"position":11,"created_at":"2026-07-23T11:58:34+08:00","updated_at":"2026-07-23T11:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117","variant_ids":[44079233171555]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861672689763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef.webp?v=1774489353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737.webp?v=1774489354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712.webp?v=1774489355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6.webp?v=1774489356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529.webp?v=1774489356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a72ec744046614515af5854ade262ccad0d2eac.webp?v=1774489357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a.webp?v=1774489358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b96f72041bf3132b039e3c58363e93e8bfc69.webp?v=1774489359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a_fd478d5e-4ca1-47f5-a31f-a5baf42794af.webp?v=1784779116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529_1c3ea9e7-5734-4a17-b09b-3d974138d718.webp?v=1784779118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712_3e010857-3058-4b0e-9bda-27278a8b4839.webp?v=1784779119"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef.webp?v=1774489353","options":["color"],"media":[{"alt":null,"id":27076990664803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef.webp?v=1774489353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef.webp?v=1774489353","width":2000},{"alt":null,"id":27076991058019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737.webp?v=1774489354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737.webp?v=1774489354","width":2000},{"alt":null,"id":27076991451235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712.webp?v=1774489355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712.webp?v=1774489355","width":2000},{"alt":null,"id":27076991713379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6.webp?v=1774489356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6.webp?v=1774489356","width":2000},{"alt":null,"id":27076992008291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529.webp?v=1774489356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529.webp?v=1774489356","width":2000},{"alt":null,"id":27076992401507,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a72ec744046614515af5854ade262ccad0d2eac.webp?v=1774489357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a72ec744046614515af5854ade262ccad0d2eac.webp?v=1774489357","width":2000},{"alt":null,"id":27076992729187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a.webp?v=1774489358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a.webp?v=1774489358","width":2000},{"alt":null,"id":27076992860259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b96f72041bf3132b039e3c58363e93e8bfc69.webp?v=1774489359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d41b96f72041bf3132b039e3c58363e93e8bfc69.webp?v=1774489359","width":2000},{"alt":null,"id":27861671542883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115","width":2000},{"alt":null,"id":27861672198243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a_fd478d5e-4ca1-47f5-a31f-a5baf42794af.webp?v=1784779116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe217ac841f944152cefc57ab609bd7f62036c1a_fd478d5e-4ca1-47f5-a31f-a5baf42794af.webp?v=1784779116","width":2000},{"alt":null,"id":27861672689763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117","width":2000},{"alt":null,"id":27861673148515,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529_1c3ea9e7-5734-4a17-b09b-3d974138d718.webp?v=1784779118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caf774782c68691d83a65d461d8568eda4ca529_1c3ea9e7-5734-4a17-b09b-3d974138d718.webp?v=1784779118","width":2000},{"alt":null,"id":27861673508963,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118","width":2000},{"alt":null,"id":27861673934947,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712_3e010857-3058-4b0e-9bda-27278a8b4839.webp?v=1784779119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7fe3ff1bb35a1505785555eefb0a2e42060d712_3e010857-3058-4b0e-9bda-27278a8b4839.webp?v=1784779119","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":44079231795299,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357889687651,"product_id":7985984667747,"position":13,"created_at":"2026-07-23T11:58:36+08:00","updated_at":"2026-07-23T11:58:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118","variant_ids":[44079231795299]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861673508963,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079232909411,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357887754339,"product_id":7985984667747,"position":9,"created_at":"2026-07-23T11:58:33+08:00","updated_at":"2026-07-23T11:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115","variant_ids":[44079232909411]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861671542883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c404652755b8121bdf5c9615f2f1b8421e8b737_31fd2c27-687d-471a-b3a1-ec09eb76d9b6.webp?v=1784779115"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44079233171555,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357888901219,"product_id":7985984667747,"position":11,"created_at":"2026-07-23T11:58:34+08:00","updated_at":"2026-07-23T11:58:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117","variant_ids":[44079233171555]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861672689763,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/322ab6fd293e5cf1333cc149a26dc868ab71c7ef_17f124f7-d96e-433b-ad4c-993dabd38ab3.webp?v=1784779117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":44079231795299,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-MIT26","requires_shipping":true,"taxable":true,"featured_image":{"id":36357889687651,"product_id":7985984667747,"position":13,"created_at":"2026-07-23T11:58:36+08:00","updated_at":"2026-07-23T11:58:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118","variant_ids":[44079231795299]},"available":true,"name":"iPhone 12 mini SolidSuit MITSUME Mad Love - 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-MIT26","featured_media":{"alt":null,"id":27861673508963,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b583b6b9bb2b8495688a92be90eab7dd80f025c6_9fcf4e31-3c04-40bf-8b60-7744c921ff69.webp?v=1784779118"}},"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: "停產"
}