$product = {"id":7414541746275,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb60","description":null,"published_at":"2024-06-11T17:51:52+08:00","created_at":"2024-05-05T14:29:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41907221135459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485713514595,"product_id":7414541746275,"position":5,"created_at":"2024-05-05T14:29:36+08:00","updated_at":"2024-05-05T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576","variant_ids":[41907221135459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB60","featured_media":{"alt":null,"id":23891034832995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907221299299,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485723869283,"product_id":7414541746275,"position":10,"created_at":"2024-05-05T14:29:49+08:00","updated_at":"2024-05-05T14:29:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589","variant_ids":[41907221299299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB60","featured_media":{"alt":null,"id":23891046006883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907221659747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485721673827,"product_id":7414541746275,"position":9,"created_at":"2024-05-05T14:29:46+08:00","updated_at":"2024-05-05T14:29:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586","variant_ids":[41907221659747]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB60","featured_media":{"alt":null,"id":23891043680355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/756704d0ae23acf318a9d15eedfde233f7e3b889_40ffee0d-9970-49e9-8d8c-1f755074b947.webp?v=1714890566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4d47ecfb4415298ae7decd860d63c647a0444_8319c996-e257-4616-89ac-afbab738b1d1.webp?v=1714890569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228476c2c0fdfb3c4ce6de3e9e590014ff85cc6f_a9baa937-488a-42bb-b099-add466bc2a0c.webp?v=1714890572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be72798f352209ef1770734ef3a4b4da73bd782a_a3a6f717-f4fb-4c9c-9f36-85bc3ea29cf7.webp?v=1714890574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac52c3e90493784764b845ce1f57bfac4b81133_ec8fc501-bf80-4ad1-83e7-66f44126cc97.webp?v=1714890579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0cc0e994821b1d3d08150c22ef4c6335c33_190faa78-c716-496e-a1a3-eafa014b9d52.webp?v=1714890581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c39b4516d03e920b8e655d0acdfc53211ef6b06_609299ac-880f-4d8a-9a7a-af215afd5044.webp?v=1714890584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/756704d0ae23acf318a9d15eedfde233f7e3b889_40ffee0d-9970-49e9-8d8c-1f755074b947.webp?v=1714890566","options":["color"],"media":[{"alt":null,"id":23891026182243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/756704d0ae23acf318a9d15eedfde233f7e3b889_40ffee0d-9970-49e9-8d8c-1f755074b947.webp?v=1714890566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/756704d0ae23acf318a9d15eedfde233f7e3b889_40ffee0d-9970-49e9-8d8c-1f755074b947.webp?v=1714890566","width":2000},{"alt":null,"id":23891028344931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4d47ecfb4415298ae7decd860d63c647a0444_8319c996-e257-4616-89ac-afbab738b1d1.webp?v=1714890569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4d47ecfb4415298ae7decd860d63c647a0444_8319c996-e257-4616-89ac-afbab738b1d1.webp?v=1714890569","width":2000},{"alt":null,"id":23891030638691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228476c2c0fdfb3c4ce6de3e9e590014ff85cc6f_a9baa937-488a-42bb-b099-add466bc2a0c.webp?v=1714890572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228476c2c0fdfb3c4ce6de3e9e590014ff85cc6f_a9baa937-488a-42bb-b099-add466bc2a0c.webp?v=1714890572","width":2000},{"alt":null,"id":23891032768611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be72798f352209ef1770734ef3a4b4da73bd782a_a3a6f717-f4fb-4c9c-9f36-85bc3ea29cf7.webp?v=1714890574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be72798f352209ef1770734ef3a4b4da73bd782a_a3a6f717-f4fb-4c9c-9f36-85bc3ea29cf7.webp?v=1714890574","width":2000},{"alt":null,"id":23891034832995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576","width":2000},{"alt":null,"id":23891037028451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac52c3e90493784764b845ce1f57bfac4b81133_ec8fc501-bf80-4ad1-83e7-66f44126cc97.webp?v=1714890579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aac52c3e90493784764b845ce1f57bfac4b81133_ec8fc501-bf80-4ad1-83e7-66f44126cc97.webp?v=1714890579","width":2000},{"alt":null,"id":23891039191139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0cc0e994821b1d3d08150c22ef4c6335c33_190faa78-c716-496e-a1a3-eafa014b9d52.webp?v=1714890581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210fc0cc0e994821b1d3d08150c22ef4c6335c33_190faa78-c716-496e-a1a3-eafa014b9d52.webp?v=1714890581","width":2000},{"alt":null,"id":23891041615971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c39b4516d03e920b8e655d0acdfc53211ef6b06_609299ac-880f-4d8a-9a7a-af215afd5044.webp?v=1714890584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c39b4516d03e920b8e655d0acdfc53211ef6b06_609299ac-880f-4d8a-9a7a-af215afd5044.webp?v=1714890584","width":2000},{"alt":null,"id":23891043680355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586","width":2000},{"alt":null,"id":23891046006883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907221135459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485713514595,"product_id":7414541746275,"position":5,"created_at":"2024-05-05T14:29:36+08:00","updated_at":"2024-05-05T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576","variant_ids":[41907221135459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB60","featured_media":{"alt":null,"id":23891034832995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907221299299,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485723869283,"product_id":7414541746275,"position":10,"created_at":"2024-05-05T14:29:49+08:00","updated_at":"2024-05-05T14:29:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589","variant_ids":[41907221299299]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PB60","featured_media":{"alt":null,"id":23891046006883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f173029da7e6a48805f8236a1de35fce4a5e18e_db3fc554-92b5-4b14-a665-70579a9d56df.webp?v=1714890589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907221659747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485721673827,"product_id":7414541746275,"position":9,"created_at":"2024-05-05T14:29:46+08:00","updated_at":"2024-05-05T14:29:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586","variant_ids":[41907221659747]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PB60","featured_media":{"alt":null,"id":23891043680355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1014221f6a0ca0ca2d69bd0a2a893f8ed1a6cce0_52c3e24e-32b3-4d69-99a9-d37fa2c0cd5e.webp?v=1714890586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907221135459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31485713514595,"product_id":7414541746275,"position":5,"created_at":"2024-05-05T14:29:36+08:00","updated_at":"2024-05-05T14:29:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576","variant_ids":[41907221135459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PB60","featured_media":{"alt":null,"id":23891034832995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fbfa62fdaeae8a6ec340555c8d87d896a24279b_aa598983-a76c-45f8-a729-f59e7b2466cf.webp?v=1714890576"}},"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: "停產"
}