$product = {"id":7413987999843,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb26","description":null,"published_at":"2024-06-11T17:46:59+08:00","created_at":"2024-05-05T13:56:09+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":41903033581667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401811555,"product_id":7413987999843,"position":10,"created_at":"2024-05-05T13:56:33+08:00","updated_at":"2024-05-05T13:56:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593","variant_ids":[41903033581667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889695735907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903033647203,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401254499,"product_id":7413987999843,"position":9,"created_at":"2024-05-05T13:56:31+08:00","updated_at":"2024-05-05T13:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591","variant_ids":[41903033647203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889695211619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903033876579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484399812707,"product_id":7413987999843,"position":6,"created_at":"2024-05-05T13:56:24+08:00","updated_at":"2024-05-05T13:56:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584","variant_ids":[41903033876579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889693737059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cbae537394f763b23ba0983c0e3769d0712254_0e5dbe23-72e3-45c0-b3da-03d36d22fd4b.webp?v=1714888572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42ddaef0326a6beab0fa0be5d9cba39e6949936_1f216c96-e785-4fbc-8fbd-2bf40810104d.webp?v=1714888574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806925e91fde2d40a17e6cc48c2c2e1772608db7_49925d8e-0691-4104-8e7e-5939c58e817a.webp?v=1714888576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da830906e063ab94746e1461ac5771accca5789_aa50e1eb-dd93-43c2-949d-28be2342ecdf.webp?v=1714888579","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3044885758267c349a120f86a1a905fcd6ec19e0_3942c9f9-f085-4e8e-846e-286a55e95c5e.webp?v=1714888581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67eb868fe945bbb8ad7d171c22764304ef_2a457740-3fbe-4cf0-b3ca-f9a670a95496.webp?v=1714888586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568f43bc0632da6b5f43e74476fe978f3918ede0_82d0ba97-8a92-4c17-bbf7-7d96483e50ce.webp?v=1714888588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cbae537394f763b23ba0983c0e3769d0712254_0e5dbe23-72e3-45c0-b3da-03d36d22fd4b.webp?v=1714888572","options":["color"],"media":[{"alt":null,"id":23889691213923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cbae537394f763b23ba0983c0e3769d0712254_0e5dbe23-72e3-45c0-b3da-03d36d22fd4b.webp?v=1714888572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43cbae537394f763b23ba0983c0e3769d0712254_0e5dbe23-72e3-45c0-b3da-03d36d22fd4b.webp?v=1714888572","width":2000},{"alt":null,"id":23889691705443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42ddaef0326a6beab0fa0be5d9cba39e6949936_1f216c96-e785-4fbc-8fbd-2bf40810104d.webp?v=1714888574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d42ddaef0326a6beab0fa0be5d9cba39e6949936_1f216c96-e785-4fbc-8fbd-2bf40810104d.webp?v=1714888574","width":2000},{"alt":null,"id":23889692196963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806925e91fde2d40a17e6cc48c2c2e1772608db7_49925d8e-0691-4104-8e7e-5939c58e817a.webp?v=1714888576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/806925e91fde2d40a17e6cc48c2c2e1772608db7_49925d8e-0691-4104-8e7e-5939c58e817a.webp?v=1714888576","width":2000},{"alt":null,"id":23889692655715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da830906e063ab94746e1461ac5771accca5789_aa50e1eb-dd93-43c2-949d-28be2342ecdf.webp?v=1714888579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9da830906e063ab94746e1461ac5771accca5789_aa50e1eb-dd93-43c2-949d-28be2342ecdf.webp?v=1714888579","width":2000},{"alt":null,"id":23889693212771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3044885758267c349a120f86a1a905fcd6ec19e0_3942c9f9-f085-4e8e-846e-286a55e95c5e.webp?v=1714888581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3044885758267c349a120f86a1a905fcd6ec19e0_3942c9f9-f085-4e8e-846e-286a55e95c5e.webp?v=1714888581","width":2000},{"alt":null,"id":23889693737059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584","width":2000},{"alt":null,"id":23889694195811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67eb868fe945bbb8ad7d171c22764304ef_2a457740-3fbe-4cf0-b3ca-f9a670a95496.webp?v=1714888586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576e7d67eb868fe945bbb8ad7d171c22764304ef_2a457740-3fbe-4cf0-b3ca-f9a670a95496.webp?v=1714888586","width":2000},{"alt":null,"id":23889694687331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568f43bc0632da6b5f43e74476fe978f3918ede0_82d0ba97-8a92-4c17-bbf7-7d96483e50ce.webp?v=1714888588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568f43bc0632da6b5f43e74476fe978f3918ede0_82d0ba97-8a92-4c17-bbf7-7d96483e50ce.webp?v=1714888588","width":2000},{"alt":null,"id":23889695211619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591","width":2000},{"alt":null,"id":23889695735907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41903033581667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401811555,"product_id":7413987999843,"position":10,"created_at":"2024-05-05T13:56:33+08:00","updated_at":"2024-05-05T13:56:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593","variant_ids":[41903033581667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889695735907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903033647203,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401254499,"product_id":7413987999843,"position":9,"created_at":"2024-05-05T13:56:31+08:00","updated_at":"2024-05-05T13:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591","variant_ids":[41903033647203]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889695211619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701e5cf910943de647f59d4966bdc907acbc4b0_e6db0836-d810-4bc9-82b0-bf39c00d8ba1.webp?v=1714888591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903033876579,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484399812707,"product_id":7413987999843,"position":6,"created_at":"2024-05-05T13:56:24+08:00","updated_at":"2024-05-05T13:56:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584","variant_ids":[41903033876579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889693737059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/effcaf48d166f137fb48072b1102cce18bf10c6d_f216307d-c34c-4c88-ac53-717eb9d3d23c.webp?v=1714888584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903033581667,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB26","requires_shipping":true,"taxable":true,"featured_image":{"id":31484401811555,"product_id":7413987999843,"position":10,"created_at":"2024-05-05T13:56:33+08:00","updated_at":"2024-05-05T13:56:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593","variant_ids":[41903033581667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具3 - 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-PB26","featured_media":{"alt":null,"id":23889695735907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bc4e98e0c73736865cdcaa8cfa9fd80a01c42cf_7e6a1e7a-d2ee-4059-94b0-a826999edd39.webp?v=1714888593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}