$product = {"id":7414033743971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb67","description":null,"published_at":"2024-06-11T17:48:18+08:00","created_at":"2024-05-05T14:05:10+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":41903563964515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510339171,"product_id":7414033743971,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","variant_ids":[41903563964515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889804460131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903564030051,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484513878115,"product_id":7414033743971,"position":8,"created_at":"2024-05-05T14:05:29+08:00","updated_at":"2024-05-05T14:05:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129","variant_ids":[41903564030051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889807999075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903564259427,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484514369635,"product_id":7414033743971,"position":9,"created_at":"2024-05-05T14:05:31+08:00","updated_at":"2024-05-05T14:05:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131","variant_ids":[41903564259427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889808523363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abacb109a2793bd49b7e151c0c13a5c2ca25c175_d558a63d-6c79-480b-a7a4-d0bb79a0fd7a.webp?v=1714889114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c79a425a6ee36453e3e5e8a18ed68f901609427d_d8d7489e-9d8a-4f49-9be6-7fc0f7a1ceff.webp?v=1714889117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63854d4349990827f66e4660a3606bc46a90f0a6_7f811d08-e2c6-4377-862a-4453f54670a9.webp?v=1714889119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d47417b10920a191eb4e56df27abaa7a5220ea_629453d5-7cfa-40ac-973d-a366dcef1ac1.webp?v=1714889121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bcde9e00c8cc9a38f358f8f9ead5553fea067d9_51796c90-b0ce-4612-94d3-ddf3bf2ba340.webp?v=1714889124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0aeb2ac8f9de4d88d4a452ecca50d6e1232273e_8482a8e8-1d19-4e6b-9da7-c5a59e659185.webp?v=1714889126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d958dc0b0a7bb50f2617541e296110690c07a4_42eb09f9-90c6-494d-a5f8-f0a768fc0226.webp?v=1714889133"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","options":["color"],"media":[{"alt":null,"id":23889804460131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","width":2000},{"alt":null,"id":23889804951651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abacb109a2793bd49b7e151c0c13a5c2ca25c175_d558a63d-6c79-480b-a7a4-d0bb79a0fd7a.webp?v=1714889114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abacb109a2793bd49b7e151c0c13a5c2ca25c175_d558a63d-6c79-480b-a7a4-d0bb79a0fd7a.webp?v=1714889114","width":2000},{"alt":null,"id":23889805705315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c79a425a6ee36453e3e5e8a18ed68f901609427d_d8d7489e-9d8a-4f49-9be6-7fc0f7a1ceff.webp?v=1714889117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c79a425a6ee36453e3e5e8a18ed68f901609427d_d8d7489e-9d8a-4f49-9be6-7fc0f7a1ceff.webp?v=1714889117","width":2000},{"alt":null,"id":23889806262371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63854d4349990827f66e4660a3606bc46a90f0a6_7f811d08-e2c6-4377-862a-4453f54670a9.webp?v=1714889119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63854d4349990827f66e4660a3606bc46a90f0a6_7f811d08-e2c6-4377-862a-4453f54670a9.webp?v=1714889119","width":2000},{"alt":null,"id":23889806655587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d47417b10920a191eb4e56df27abaa7a5220ea_629453d5-7cfa-40ac-973d-a366dcef1ac1.webp?v=1714889121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d47417b10920a191eb4e56df27abaa7a5220ea_629453d5-7cfa-40ac-973d-a366dcef1ac1.webp?v=1714889121","width":2000},{"alt":null,"id":23889807114339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bcde9e00c8cc9a38f358f8f9ead5553fea067d9_51796c90-b0ce-4612-94d3-ddf3bf2ba340.webp?v=1714889124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bcde9e00c8cc9a38f358f8f9ead5553fea067d9_51796c90-b0ce-4612-94d3-ddf3bf2ba340.webp?v=1714889124","width":2000},{"alt":null,"id":23889807605859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0aeb2ac8f9de4d88d4a452ecca50d6e1232273e_8482a8e8-1d19-4e6b-9da7-c5a59e659185.webp?v=1714889126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0aeb2ac8f9de4d88d4a452ecca50d6e1232273e_8482a8e8-1d19-4e6b-9da7-c5a59e659185.webp?v=1714889126","width":2000},{"alt":null,"id":23889807999075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129","width":2000},{"alt":null,"id":23889808523363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131","width":2000},{"alt":null,"id":23889808916579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d958dc0b0a7bb50f2617541e296110690c07a4_42eb09f9-90c6-494d-a5f8-f0a768fc0226.webp?v=1714889133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d958dc0b0a7bb50f2617541e296110690c07a4_42eb09f9-90c6-494d-a5f8-f0a768fc0226.webp?v=1714889133","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903563964515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510339171,"product_id":7414033743971,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","variant_ids":[41903563964515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889804460131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903564030051,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484513878115,"product_id":7414033743971,"position":8,"created_at":"2024-05-05T14:05:29+08:00","updated_at":"2024-05-05T14:05:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129","variant_ids":[41903564030051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889807999075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbcb37bea1f42599a92758a8b98722902d867b5c_edeed3a2-9b55-4ff2-9482-d9adeac9d6ba.webp?v=1714889129"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903564259427,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484514369635,"product_id":7414033743971,"position":9,"created_at":"2024-05-05T14:05:31+08:00","updated_at":"2024-05-05T14:05:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131","variant_ids":[41903564259427]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889808523363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eded14d914cf78fb873d59c5be41e71afb02b30b_b48e2b48-2008-45fe-8a78-7fa4cfc30dae.webp?v=1714889131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903563964515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510339171,"product_id":7414033743971,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112","variant_ids":[41903563964515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23889804460131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2007b8acbd823f8eb09c89faa8449266d28f1fc6_7d4c55ad-f0c8-4c34-a06c-1c8fc74775f9.webp?v=1714889112"}},"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: "停產"
}