$product = {"id":7407784198243,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-線條白","handle":"iphone-14-pro-mod-nx-printable-pb14","description":null,"published_at":"2024-06-11T16:23:08+08:00","created_at":"2024-05-03T10:51:19+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 14 Pro","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":41878798467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378254435,"product_id":7407784198243,"position":4,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689","variant_ids":[41878798467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB14","featured_media":{"alt":null,"id":23875281453155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878798598243,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470379597923,"product_id":7407784198243,"position":6,"created_at":"2024-05-03T10:51:34+08:00","updated_at":"2024-05-03T10:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694","variant_ids":[41878798598243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB14","featured_media":{"alt":null,"id":23875282796643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878798958691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470382252131,"product_id":7407784198243,"position":10,"created_at":"2024-05-03T10:51:44+08:00","updated_at":"2024-05-03T10:51:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704","variant_ids":[41878798958691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB14","featured_media":{"alt":null,"id":23875285450851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f85b6a53dd21ac1667444a6251b252428aa73ab2_616b4cfa-a343-49d5-8aaf-26a820eef7ff.webp?v=1714704682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f55d6c59e2dcebf351876c8520f569865d06eae_3534cb14-1406-4eec-a582-d1d031aa49e3.webp?v=1714704684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62b938fdc440f2ba14f73d7afb63ae3ebb707d6_26d2e207-1682-4e94-8b0f-ecccd259172b.webp?v=1714704687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f0b61509b4a8a7d1ec16e166ad1bc1ec2d9ea60_e99c06e7-ba13-4cd4-9d10-5557cdb4d0fc.webp?v=1714704692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a8883914c06055edc07a488ff219ec2c10907_b2d75830-0505-410f-8b21-28ffeafb4589.webp?v=1714704696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af159ee9e85b46c20ed47b00dffa1569c4273bd9_efb2c005-6167-4a50-8d95-6b5b9861e831.webp?v=1714704699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55aca7d086406d10f4cf3f66b5524ea8776fc6a8_a360c322-9b87-4148-8715-3d03ec28e217.webp?v=1714704701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f85b6a53dd21ac1667444a6251b252428aa73ab2_616b4cfa-a343-49d5-8aaf-26a820eef7ff.webp?v=1714704682","options":["color"],"media":[{"alt":null,"id":23875279388771,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f85b6a53dd21ac1667444a6251b252428aa73ab2_616b4cfa-a343-49d5-8aaf-26a820eef7ff.webp?v=1714704682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f85b6a53dd21ac1667444a6251b252428aa73ab2_616b4cfa-a343-49d5-8aaf-26a820eef7ff.webp?v=1714704682","width":2000},{"alt":null,"id":23875280142435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f55d6c59e2dcebf351876c8520f569865d06eae_3534cb14-1406-4eec-a582-d1d031aa49e3.webp?v=1714704684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f55d6c59e2dcebf351876c8520f569865d06eae_3534cb14-1406-4eec-a582-d1d031aa49e3.webp?v=1714704684","width":2000},{"alt":null,"id":23875280830563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62b938fdc440f2ba14f73d7afb63ae3ebb707d6_26d2e207-1682-4e94-8b0f-ecccd259172b.webp?v=1714704687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e62b938fdc440f2ba14f73d7afb63ae3ebb707d6_26d2e207-1682-4e94-8b0f-ecccd259172b.webp?v=1714704687","width":2000},{"alt":null,"id":23875281453155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689","width":2000},{"alt":null,"id":23875282108515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f0b61509b4a8a7d1ec16e166ad1bc1ec2d9ea60_e99c06e7-ba13-4cd4-9d10-5557cdb4d0fc.webp?v=1714704692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f0b61509b4a8a7d1ec16e166ad1bc1ec2d9ea60_e99c06e7-ba13-4cd4-9d10-5557cdb4d0fc.webp?v=1714704692","width":2000},{"alt":null,"id":23875282796643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694","width":2000},{"alt":null,"id":23875283484771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a8883914c06055edc07a488ff219ec2c10907_b2d75830-0505-410f-8b21-28ffeafb4589.webp?v=1714704696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a52a8883914c06055edc07a488ff219ec2c10907_b2d75830-0505-410f-8b21-28ffeafb4589.webp?v=1714704696","width":2000},{"alt":null,"id":23875283976291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af159ee9e85b46c20ed47b00dffa1569c4273bd9_efb2c005-6167-4a50-8d95-6b5b9861e831.webp?v=1714704699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af159ee9e85b46c20ed47b00dffa1569c4273bd9_efb2c005-6167-4a50-8d95-6b5b9861e831.webp?v=1714704699","width":2000},{"alt":null,"id":23875284697187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55aca7d086406d10f4cf3f66b5524ea8776fc6a8_a360c322-9b87-4148-8715-3d03ec28e217.webp?v=1714704701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55aca7d086406d10f4cf3f66b5524ea8776fc6a8_a360c322-9b87-4148-8715-3d03ec28e217.webp?v=1714704701","width":2000},{"alt":null,"id":23875285450851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41878798467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378254435,"product_id":7407784198243,"position":4,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689","variant_ids":[41878798467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB14","featured_media":{"alt":null,"id":23875281453155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878798598243,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470379597923,"product_id":7407784198243,"position":6,"created_at":"2024-05-03T10:51:34+08:00","updated_at":"2024-05-03T10:51:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694","variant_ids":[41878798598243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB14","featured_media":{"alt":null,"id":23875282796643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10f48441147eeb3957a35b9a1d12b23898306e80_eb49678c-41f8-4f03-92e0-59e7a654d317.webp?v=1714704694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878798958691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470382252131,"product_id":7407784198243,"position":10,"created_at":"2024-05-03T10:51:44+08:00","updated_at":"2024-05-03T10:51:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704","variant_ids":[41878798958691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB14","featured_media":{"alt":null,"id":23875285450851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bf7fade65527ecf00fe12e5671cf1d1a5397762_ee92b387-3cd1-46d7-9b0a-8b13bced7e5f.webp?v=1714704704"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41878798467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378254435,"product_id":7407784198243,"position":4,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689","variant_ids":[41878798467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB14","featured_media":{"alt":null,"id":23875281453155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4974b40b619f63a567991ce5b5cafa6002f38243_c06e0cd5-65ef-4aec-82d7-20312b8422cf.webp?v=1714704689"}},"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: "停產"
}