$product = {"id":7408084385891,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格","handle":"iphone-13-mini-mod-nx-printable-pb75","description":null,"published_at":"2024-06-11T16:30:58+08:00","created_at":"2024-05-03T11:56:37+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":41882497679459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471153709155,"product_id":7408084385891,"position":5,"created_at":"2024-05-03T11:56:50+08:00","updated_at":"2024-05-03T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610","variant_ids":[41882497679459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876059070563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882497777763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471154462819,"product_id":7408084385891,"position":6,"created_at":"2024-05-03T11:56:53+08:00","updated_at":"2024-05-03T11:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613","variant_ids":[41882497777763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876059693155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882498039907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471154790499,"product_id":7408084385891,"position":7,"created_at":"2024-05-03T11:56:55+08:00","updated_at":"2024-05-03T11:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615","variant_ids":[41882498039907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876060119139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ede5a0e443014ee83b126affbc3839bf3e2d7f_aa89ab26-1c19-4d45-b2d1-d2b6e746d2b9.webp?v=1714708600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31cf147ed87140dc0670809b5ac97852417813d1_f9c08038-ebd2-4b32-95f0-460c76180c90.webp?v=1714708602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b998fdcc74ccbfa85640ab98621fc27c9d7ae4_60c713e0-25f7-476e-938d-2f7d10bdd81f.webp?v=1714708605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edecf1876ece466e8408bee12740f752996431e_8a32a9c1-5327-4886-a236-d8db4f841eca.webp?v=1714708608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f160f0d9d43e5975b24f57d419f0b9f43d87ca_25af1a8a-f0c0-4866-ae88-6fb99ca8da5c.webp?v=1714708618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c2edd5b8dbc7c5168cb016fe78d77b740fbe7f_37df90dc-a0f3-48f2-842c-12076106bd97.webp?v=1714708620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e764e63018ae51eb0dfcb100d6995591cd06eef_c12167ed-55e6-448e-834a-c1de7118b5c8.webp?v=1714708623"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ede5a0e443014ee83b126affbc3839bf3e2d7f_aa89ab26-1c19-4d45-b2d1-d2b6e746d2b9.webp?v=1714708600","options":["color"],"media":[{"alt":null,"id":23876055564387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ede5a0e443014ee83b126affbc3839bf3e2d7f_aa89ab26-1c19-4d45-b2d1-d2b6e746d2b9.webp?v=1714708600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ede5a0e443014ee83b126affbc3839bf3e2d7f_aa89ab26-1c19-4d45-b2d1-d2b6e746d2b9.webp?v=1714708600","width":2000},{"alt":null,"id":23876056219747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31cf147ed87140dc0670809b5ac97852417813d1_f9c08038-ebd2-4b32-95f0-460c76180c90.webp?v=1714708602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31cf147ed87140dc0670809b5ac97852417813d1_f9c08038-ebd2-4b32-95f0-460c76180c90.webp?v=1714708602","width":2000},{"alt":null,"id":23876056744035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b998fdcc74ccbfa85640ab98621fc27c9d7ae4_60c713e0-25f7-476e-938d-2f7d10bdd81f.webp?v=1714708605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8b998fdcc74ccbfa85640ab98621fc27c9d7ae4_60c713e0-25f7-476e-938d-2f7d10bdd81f.webp?v=1714708605","width":2000},{"alt":null,"id":23876057366627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edecf1876ece466e8408bee12740f752996431e_8a32a9c1-5327-4886-a236-d8db4f841eca.webp?v=1714708608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5edecf1876ece466e8408bee12740f752996431e_8a32a9c1-5327-4886-a236-d8db4f841eca.webp?v=1714708608","width":2000},{"alt":null,"id":23876059070563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610","width":2000},{"alt":null,"id":23876059693155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613","width":2000},{"alt":null,"id":23876060119139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615","width":2000},{"alt":null,"id":23876060577891,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f160f0d9d43e5975b24f57d419f0b9f43d87ca_25af1a8a-f0c0-4866-ae88-6fb99ca8da5c.webp?v=1714708618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f160f0d9d43e5975b24f57d419f0b9f43d87ca_25af1a8a-f0c0-4866-ae88-6fb99ca8da5c.webp?v=1714708618","width":2000},{"alt":null,"id":23876061003875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c2edd5b8dbc7c5168cb016fe78d77b740fbe7f_37df90dc-a0f3-48f2-842c-12076106bd97.webp?v=1714708620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93c2edd5b8dbc7c5168cb016fe78d77b740fbe7f_37df90dc-a0f3-48f2-842c-12076106bd97.webp?v=1714708620","width":2000},{"alt":null,"id":23876061364323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e764e63018ae51eb0dfcb100d6995591cd06eef_c12167ed-55e6-448e-834a-c1de7118b5c8.webp?v=1714708623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e764e63018ae51eb0dfcb100d6995591cd06eef_c12167ed-55e6-448e-834a-c1de7118b5c8.webp?v=1714708623","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882497679459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471153709155,"product_id":7408084385891,"position":5,"created_at":"2024-05-03T11:56:50+08:00","updated_at":"2024-05-03T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610","variant_ids":[41882497679459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876059070563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882497777763,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471154462819,"product_id":7408084385891,"position":6,"created_at":"2024-05-03T11:56:53+08:00","updated_at":"2024-05-03T11:56:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613","variant_ids":[41882497777763]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876059693155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a66e30278d8fba28a54ae397646c8fa80f0e4523_0602f7cf-0875-4154-95cc-f9d62ebebd41.webp?v=1714708613"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882498039907,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471154790499,"product_id":7408084385891,"position":7,"created_at":"2024-05-03T11:56:55+08:00","updated_at":"2024-05-03T11:56:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615","variant_ids":[41882498039907]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876060119139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6645ebb48d7e8bff9a69e28b1df8669022e6919_b9ced8ab-0c51-4095-aaad-1b61542062bc.webp?v=1714708615"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882497679459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31471153709155,"product_id":7408084385891,"position":5,"created_at":"2024-05-03T11:56:50+08:00","updated_at":"2024-05-03T11:56:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610","variant_ids":[41882497679459]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格 - 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-PB75","featured_media":{"alt":null,"id":23876059070563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70f6b562aefe70c8f3f6cd4c9b644bd8b61ef1c_ee8a29d4-d8cc-4e4c-8749-9772e7aa24f4.webp?v=1714708610"}},"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: "停產"
}