$product = {"id":7407937486947,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-14-pro-mod-nx-printable-pb78","description":null,"published_at":"2024-06-11T16:27:02+08:00","created_at":"2024-05-03T11:19:29+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":41880764514403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470751514723,"product_id":7407937486947,"position":10,"created_at":"2024-05-03T11:19:53+08:00","updated_at":"2024-05-03T11:19:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393","variant_ids":[41880764514403]},"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-PB78","featured_media":{"alt":null,"id":23875655729251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880764579939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470750498915,"product_id":7407937486947,"position":8,"created_at":"2024-05-03T11:19:48+08:00","updated_at":"2024-05-03T11:19:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388","variant_ids":[41880764579939]},"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-PB78","featured_media":{"alt":null,"id":23875654713443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880765005923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470747648099,"product_id":7407937486947,"position":3,"created_at":"2024-05-03T11:19:36+08:00","updated_at":"2024-05-03T11:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376","variant_ids":[41880765005923]},"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-PB78","featured_media":{"alt":null,"id":23875651993699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34705de275c5f87e4a7dfdb6189329e48d790_07a144a9-328e-42e3-8d26-878ebeff2309.webp?v=1714706372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682369e5bb8c847a4e02690c4193bb87d123d235_e7ac5049-7ccc-41ed-b537-ade667d784ad.webp?v=1714706374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7b38b37cb325f07be314e4eef8cb8edeef730d_7674a1ce-32c4-416a-b3c6-cf3a5e815aa3.webp?v=1714706379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10875cbe1d656e93f0a413f9701238da2e1223_ad17e986-7081-42f6-8ba5-4a528a098896.webp?v=1714706381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e8f11c086371e2ffb3ca3bfaf680bfaa8dcaa8_1f340507-1d3e-4aa4-845f-fe8014fbdca7.webp?v=1714706383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8379b5831aad68886fd1ba6146cb534d300aa35_4ebdc8b2-fd98-437d-b680-3c98f367484d.webp?v=1714706386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5985d2e519e6a39e8a305411ed2205ccbb7c293a_6c67885f-6702-4cf3-88b0-94b0fcaaea54.webp?v=1714706391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34705de275c5f87e4a7dfdb6189329e48d790_07a144a9-328e-42e3-8d26-878ebeff2309.webp?v=1714706372","options":["color"],"media":[{"alt":null,"id":23875651010659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34705de275c5f87e4a7dfdb6189329e48d790_07a144a9-328e-42e3-8d26-878ebeff2309.webp?v=1714706372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60a34705de275c5f87e4a7dfdb6189329e48d790_07a144a9-328e-42e3-8d26-878ebeff2309.webp?v=1714706372","width":2000},{"alt":null,"id":23875651371107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682369e5bb8c847a4e02690c4193bb87d123d235_e7ac5049-7ccc-41ed-b537-ade667d784ad.webp?v=1714706374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/682369e5bb8c847a4e02690c4193bb87d123d235_e7ac5049-7ccc-41ed-b537-ade667d784ad.webp?v=1714706374","width":2000},{"alt":null,"id":23875651993699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376","width":2000},{"alt":null,"id":23875652550755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7b38b37cb325f07be314e4eef8cb8edeef730d_7674a1ce-32c4-416a-b3c6-cf3a5e815aa3.webp?v=1714706379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc7b38b37cb325f07be314e4eef8cb8edeef730d_7674a1ce-32c4-416a-b3c6-cf3a5e815aa3.webp?v=1714706379","width":2000},{"alt":null,"id":23875653107811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10875cbe1d656e93f0a413f9701238da2e1223_ad17e986-7081-42f6-8ba5-4a528a098896.webp?v=1714706381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c10875cbe1d656e93f0a413f9701238da2e1223_ad17e986-7081-42f6-8ba5-4a528a098896.webp?v=1714706381","width":2000},{"alt":null,"id":23875653632099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e8f11c086371e2ffb3ca3bfaf680bfaa8dcaa8_1f340507-1d3e-4aa4-845f-fe8014fbdca7.webp?v=1714706383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e8f11c086371e2ffb3ca3bfaf680bfaa8dcaa8_1f340507-1d3e-4aa4-845f-fe8014fbdca7.webp?v=1714706383","width":2000},{"alt":null,"id":23875654287459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8379b5831aad68886fd1ba6146cb534d300aa35_4ebdc8b2-fd98-437d-b680-3c98f367484d.webp?v=1714706386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8379b5831aad68886fd1ba6146cb534d300aa35_4ebdc8b2-fd98-437d-b680-3c98f367484d.webp?v=1714706386","width":2000},{"alt":null,"id":23875654713443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388","width":2000},{"alt":null,"id":23875655368803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5985d2e519e6a39e8a305411ed2205ccbb7c293a_6c67885f-6702-4cf3-88b0-94b0fcaaea54.webp?v=1714706391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5985d2e519e6a39e8a305411ed2205ccbb7c293a_6c67885f-6702-4cf3-88b0-94b0fcaaea54.webp?v=1714706391","width":2000},{"alt":null,"id":23875655729251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880764514403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470751514723,"product_id":7407937486947,"position":10,"created_at":"2024-05-03T11:19:53+08:00","updated_at":"2024-05-03T11:19:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393","variant_ids":[41880764514403]},"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-PB78","featured_media":{"alt":null,"id":23875655729251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880764579939,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470750498915,"product_id":7407937486947,"position":8,"created_at":"2024-05-03T11:19:48+08:00","updated_at":"2024-05-03T11:19:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388","variant_ids":[41880764579939]},"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-PB78","featured_media":{"alt":null,"id":23875654713443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bdf6c5e7c326a37f50af9b9870461d8720a73ba_15fea42e-d6c5-49b7-8565-1e3b61420e4d.webp?v=1714706388"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880765005923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470747648099,"product_id":7407937486947,"position":3,"created_at":"2024-05-03T11:19:36+08:00","updated_at":"2024-05-03T11:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376","variant_ids":[41880765005923]},"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-PB78","featured_media":{"alt":null,"id":23875651993699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df8cdfebe08f58fd235359d6698ddceab6e9711_ec6b51cc-206c-41d1-8bf7-0a038bf4cc03.webp?v=1714706376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880764514403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31470751514723,"product_id":7407937486947,"position":10,"created_at":"2024-05-03T11:19:53+08:00","updated_at":"2024-05-03T11:19:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393","variant_ids":[41880764514403]},"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-PB78","featured_media":{"alt":null,"id":23875655729251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75bbeba5b8f236ec77a90a3d594a9ab9b8992beb_f7a7ebf7-5c12-44a1-ab84-8d6e8524487c.webp?v=1714706393"}},"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: "停產"
}