$product = {"id":7411268452451,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc14","description":null,"published_at":"2024-06-11T17:40:23+08:00","created_at":"2024-05-04T23:57:04+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 14 Pro","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":41896746811491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480001495139,"product_id":7411268452451,"position":2,"created_at":"2024-05-04T23:57:09+08:00","updated_at":"2024-05-04T23:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229","variant_ids":[41896746811491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB0126224-PC14","featured_media":{"alt":null,"id":23885252034659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896746975331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480007032931,"product_id":7411268452451,"position":10,"created_at":"2024-05-04T23:57:27+08:00","updated_at":"2024-05-04T23:57:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247","variant_ids":[41896746975331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB0126204-PC14","featured_media":{"alt":null,"id":23885258031203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896747499619,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480001855587,"product_id":7411268452451,"position":3,"created_at":"2024-05-04T23:57:11+08:00","updated_at":"2024-05-04T23:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231","variant_ids":[41896747499619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB01262J5-PC14","featured_media":{"alt":null,"id":23885252427875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb50373c635d0e038685964b5b6e7e9a5b7acd6_d57a4b63-2ff6-4dff-a58d-9c1d33fafead.webp?v=1714838226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cd21fa1c374059b0a42306bb068d52b788ad57_95f7efd8-7ad2-4316-841d-f06bf05eb5a7.webp?v=1714838233","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200b4b9d4ce8fb3da7e77494935d9f4e4d70890a_91d2e5e5-4f15-4e14-817c-fae20b696c4f.webp?v=1714838235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e1405138d2286d7d48df56583061a56980b9b1_121ea2f8-e538-48b9-80a0-2cc27960be83.webp?v=1714838238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/618a33f4b31d650cbcc062c2174911e4ef8b619c_3d7a1193-d7f7-4f51-a095-16043c8dbf4a.webp?v=1714838240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e98ea331fab72e95c790f13310462cd0fb5acc_a5575dad-2c23-4b0a-b6f1-b9e33ee9486e.webp?v=1714838242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c64d3219e1825fa8777e7147c53db3c7e92618_e9bcee24-e221-4704-8289-93d6ff975690.webp?v=1714838245","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb50373c635d0e038685964b5b6e7e9a5b7acd6_d57a4b63-2ff6-4dff-a58d-9c1d33fafead.webp?v=1714838226","options":["color"],"media":[{"alt":null,"id":23885251379299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb50373c635d0e038685964b5b6e7e9a5b7acd6_d57a4b63-2ff6-4dff-a58d-9c1d33fafead.webp?v=1714838226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acb50373c635d0e038685964b5b6e7e9a5b7acd6_d57a4b63-2ff6-4dff-a58d-9c1d33fafead.webp?v=1714838226","width":2000},{"alt":null,"id":23885252034659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229","width":2000},{"alt":null,"id":23885252427875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231","width":2000},{"alt":null,"id":23885253181539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cd21fa1c374059b0a42306bb068d52b788ad57_95f7efd8-7ad2-4316-841d-f06bf05eb5a7.webp?v=1714838233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3cd21fa1c374059b0a42306bb068d52b788ad57_95f7efd8-7ad2-4316-841d-f06bf05eb5a7.webp?v=1714838233","width":2000},{"alt":null,"id":23885254099043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200b4b9d4ce8fb3da7e77494935d9f4e4d70890a_91d2e5e5-4f15-4e14-817c-fae20b696c4f.webp?v=1714838235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/200b4b9d4ce8fb3da7e77494935d9f4e4d70890a_91d2e5e5-4f15-4e14-817c-fae20b696c4f.webp?v=1714838235","width":2000},{"alt":null,"id":23885254951011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e1405138d2286d7d48df56583061a56980b9b1_121ea2f8-e538-48b9-80a0-2cc27960be83.webp?v=1714838238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8e1405138d2286d7d48df56583061a56980b9b1_121ea2f8-e538-48b9-80a0-2cc27960be83.webp?v=1714838238","width":2000},{"alt":null,"id":23885255606371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/618a33f4b31d650cbcc062c2174911e4ef8b619c_3d7a1193-d7f7-4f51-a095-16043c8dbf4a.webp?v=1714838240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/618a33f4b31d650cbcc062c2174911e4ef8b619c_3d7a1193-d7f7-4f51-a095-16043c8dbf4a.webp?v=1714838240","width":2000},{"alt":null,"id":23885256523875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e98ea331fab72e95c790f13310462cd0fb5acc_a5575dad-2c23-4b0a-b6f1-b9e33ee9486e.webp?v=1714838242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12e98ea331fab72e95c790f13310462cd0fb5acc_a5575dad-2c23-4b0a-b6f1-b9e33ee9486e.webp?v=1714838242","width":2000},{"alt":null,"id":23885256982627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c64d3219e1825fa8777e7147c53db3c7e92618_e9bcee24-e221-4704-8289-93d6ff975690.webp?v=1714838245"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18c64d3219e1825fa8777e7147c53db3c7e92618_e9bcee24-e221-4704-8289-93d6ff975690.webp?v=1714838245","width":2000},{"alt":null,"id":23885258031203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896746811491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480001495139,"product_id":7411268452451,"position":2,"created_at":"2024-05-04T23:57:09+08:00","updated_at":"2024-05-04T23:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229","variant_ids":[41896746811491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB0126224-PC14","featured_media":{"alt":null,"id":23885252034659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896746975331,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480007032931,"product_id":7411268452451,"position":10,"created_at":"2024-05-04T23:57:27+08:00","updated_at":"2024-05-04T23:57:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247","variant_ids":[41896746975331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB0126204-PC14","featured_media":{"alt":null,"id":23885258031203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3462094762db5cefb5f01b33c8dfa25a8f2d9f_87c713d2-ce41-487f-9222-130ca0d1f370.webp?v=1714838247"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896747499619,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480001855587,"product_id":7411268452451,"position":3,"created_at":"2024-05-04T23:57:11+08:00","updated_at":"2024-05-04T23:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231","variant_ids":[41896747499619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB01262J5-PC14","featured_media":{"alt":null,"id":23885252427875,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f5edbff4009e462c07f24481bb153de5415ba6b_dad87f51-f13c-4859-a4cb-4f320975ec43.webp?v=1714838231"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896746811491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480001495139,"product_id":7411268452451,"position":2,"created_at":"2024-05-04T23:57:09+08:00","updated_at":"2024-05-04T23:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229","variant_ids":[41896746811491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 黑武士-咖啡杯-幽默系列 - 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":"MPB0126224-PC14","featured_media":{"alt":null,"id":23885252034659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe69d204e9b174cfb113fbdf9a48809b688de9fd_1a520cb7-5efe-4018-a17c-48de4363bb79.webp?v=1714838229"}},"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: "停產"
}