$product = {"id":7408110764131,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術","handle":"iphone-13-mini-mod-nx-printable-pb35","description":null,"published_at":"2024-06-11T16:31:40+08:00","created_at":"2024-05-03T12:02:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41882800685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219343459,"product_id":7408110764131,"position":2,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934","variant_ids":[41882800685155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB35","featured_media":{"alt":null,"id":23876124672099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882800750691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471221702755,"product_id":7408110764131,"position":7,"created_at":"2024-05-03T12:02:26+08:00","updated_at":"2024-05-03T12:02:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946","variant_ids":[41882800750691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB35","featured_media":{"alt":null,"id":23876126998627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882800980067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223406691,"product_id":7408110764131,"position":10,"created_at":"2024-05-03T12:02:33+08:00","updated_at":"2024-05-03T12:02:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953","variant_ids":[41882800980067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB35","featured_media":{"alt":null,"id":23876128669795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24bef1cfddab6cc1661006e4ebbd8d92dd128a7_e633068f-0a6a-4f76-ae84-28f2d6bd03fc.webp?v=1714708932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f66a529927c42c5e371cdd3a00d09f9770c166f_38fd1db1-5291-4470-a1a2-baacd4d4f632.webp?v=1714708937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075b238a108d585238dbfc0cc6a09fe8bfaff72e_cf860673-e916-4cb3-b48d-435e7cba0a66.webp?v=1714708939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d99eb199e2f0d1a1db80f3193947ea843bc908_743ce828-8125-44d4-8462-d1bcf2de1252.webp?v=1714708942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ab278c827c6f79e60e167a62d06c44ac72ee4a_c9820125-085b-40f5-98bd-2a24447ce2e8.webp?v=1714708944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32d724c2fd52a898eb7d374a3e61ee38834c204_42dfd404-b9b2-41f5-9591-5b12ca8682ad.webp?v=1714708949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3faf426bfe9a6718feb1c2a4589c9079dfd4900_e0ffde0a-dff0-4415-bc01-5e6397514fe4.webp?v=1714708951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24bef1cfddab6cc1661006e4ebbd8d92dd128a7_e633068f-0a6a-4f76-ae84-28f2d6bd03fc.webp?v=1714708932","options":["color"],"media":[{"alt":null,"id":23876124115043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24bef1cfddab6cc1661006e4ebbd8d92dd128a7_e633068f-0a6a-4f76-ae84-28f2d6bd03fc.webp?v=1714708932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24bef1cfddab6cc1661006e4ebbd8d92dd128a7_e633068f-0a6a-4f76-ae84-28f2d6bd03fc.webp?v=1714708932","width":2000},{"alt":null,"id":23876124672099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934","width":2000},{"alt":null,"id":23876125065315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f66a529927c42c5e371cdd3a00d09f9770c166f_38fd1db1-5291-4470-a1a2-baacd4d4f632.webp?v=1714708937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f66a529927c42c5e371cdd3a00d09f9770c166f_38fd1db1-5291-4470-a1a2-baacd4d4f632.webp?v=1714708937","width":2000},{"alt":null,"id":23876125589603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075b238a108d585238dbfc0cc6a09fe8bfaff72e_cf860673-e916-4cb3-b48d-435e7cba0a66.webp?v=1714708939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075b238a108d585238dbfc0cc6a09fe8bfaff72e_cf860673-e916-4cb3-b48d-435e7cba0a66.webp?v=1714708939","width":2000},{"alt":null,"id":23876125917283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d99eb199e2f0d1a1db80f3193947ea843bc908_743ce828-8125-44d4-8462-d1bcf2de1252.webp?v=1714708942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d99eb199e2f0d1a1db80f3193947ea843bc908_743ce828-8125-44d4-8462-d1bcf2de1252.webp?v=1714708942","width":2000},{"alt":null,"id":23876126539875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ab278c827c6f79e60e167a62d06c44ac72ee4a_c9820125-085b-40f5-98bd-2a24447ce2e8.webp?v=1714708944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35ab278c827c6f79e60e167a62d06c44ac72ee4a_c9820125-085b-40f5-98bd-2a24447ce2e8.webp?v=1714708944","width":2000},{"alt":null,"id":23876126998627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946","width":2000},{"alt":null,"id":23876127457379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32d724c2fd52a898eb7d374a3e61ee38834c204_42dfd404-b9b2-41f5-9591-5b12ca8682ad.webp?v=1714708949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32d724c2fd52a898eb7d374a3e61ee38834c204_42dfd404-b9b2-41f5-9591-5b12ca8682ad.webp?v=1714708949","width":2000},{"alt":null,"id":23876128243811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3faf426bfe9a6718feb1c2a4589c9079dfd4900_e0ffde0a-dff0-4415-bc01-5e6397514fe4.webp?v=1714708951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3faf426bfe9a6718feb1c2a4589c9079dfd4900_e0ffde0a-dff0-4415-bc01-5e6397514fe4.webp?v=1714708951","width":2000},{"alt":null,"id":23876128669795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882800685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219343459,"product_id":7408110764131,"position":2,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934","variant_ids":[41882800685155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB35","featured_media":{"alt":null,"id":23876124672099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882800750691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471221702755,"product_id":7408110764131,"position":7,"created_at":"2024-05-03T12:02:26+08:00","updated_at":"2024-05-03T12:02:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946","variant_ids":[41882800750691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-PB35","featured_media":{"alt":null,"id":23876126998627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea53e399109ead592ded7d29f1978ceee1b1c095_2ae28e78-4d4e-4ec5-b083-5f240e4e6f8b.webp?v=1714708946"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882800980067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471223406691,"product_id":7408110764131,"position":10,"created_at":"2024-05-03T12:02:33+08:00","updated_at":"2024-05-03T12:02:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953","variant_ids":[41882800980067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-PB35","featured_media":{"alt":null,"id":23876128669795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a4c07fb15a09c4beecb51728e5c92721c2d38b1_90d62a26-2a4e-4230-9a92-71ba102d9f39.webp?v=1714708953"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882800685155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31471219343459,"product_id":7408110764131,"position":2,"created_at":"2024-05-03T12:02:14+08:00","updated_at":"2024-05-03T12:02:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934","variant_ids":[41882800685155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-PB35","featured_media":{"alt":null,"id":23876124672099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d256cf3b6381fd616375f1f5707a3cb38eb7ab67_f33ac041-595a-4eda-b8b5-21e245501c4a.webp?v=1714708934"}},"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: "停產"
}