$product = {"id":7408239050851,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-13-mini-mod-nx-printable-pb18","description":null,"published_at":"2024-06-11T16:35:07+08:00","created_at":"2024-05-03T12:26:59+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":41884203090019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471552233571,"product_id":7408239050851,"position":2,"created_at":"2024-05-03T12:27:04+08:00","updated_at":"2024-05-03T12:27:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424","variant_ids":[41884203090019]},"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-PB18","featured_media":{"alt":null,"id":23876458938467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884203221091,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471551742051,"product_id":7408239050851,"position":1,"created_at":"2024-05-03T12:27:01+08:00","updated_at":"2024-05-03T12:27:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421","variant_ids":[41884203221091]},"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-PB18","featured_media":{"alt":null,"id":23876458479715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884203516003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471552757859,"product_id":7408239050851,"position":3,"created_at":"2024-05-03T12:27:06+08:00","updated_at":"2024-05-03T12:27:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426","variant_ids":[41884203516003]},"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-PB18","featured_media":{"alt":null,"id":23876459593827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491a4f8c96bc941b52ef5da278d9a95f46e991a5_8a8cb4c7-bb1e-4797-a5c0-9c802d024a69.webp?v=1714710428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0f6f4c7046da75727389e73c339c8ce8cfb50_d3b931cd-08ef-4970-a717-95cd413003b1.webp?v=1714710431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c5e20e7703a4736c48596fd91e0ae1b8434829_6ab48f77-61a9-4d2f-9a37-9f6820238fb9.webp?v=1714710433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc029bfeb030dbd2f8d6f81f9a143c2db084df8_fd2e7973-fd0e-4215-bc08-a13ce4c5ecc3.webp?v=1714710435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb7c6a9274df8c5a823242601299454f04ca4d1b_26b5630d-a428-4f35-a001-f3ab019ce68c.webp?v=1714710438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90fde10ce579d2e379b25e14498ac5137690fb9_851f68a9-c8b4-47e9-a7b2-f79d71bf1aa9.webp?v=1714710440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f439c7c92004d9d524aee60a7cd49aa35e3b8a66_d3accbb6-7178-4666-b8d0-556ce39acadf.webp?v=1714710442"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421","options":["color"],"media":[{"alt":null,"id":23876458479715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421","width":2000},{"alt":null,"id":23876458938467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424","width":2000},{"alt":null,"id":23876459593827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426","width":2000},{"alt":null,"id":23876459921507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491a4f8c96bc941b52ef5da278d9a95f46e991a5_8a8cb4c7-bb1e-4797-a5c0-9c802d024a69.webp?v=1714710428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491a4f8c96bc941b52ef5da278d9a95f46e991a5_8a8cb4c7-bb1e-4797-a5c0-9c802d024a69.webp?v=1714710428","width":2000},{"alt":null,"id":23876460445795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0f6f4c7046da75727389e73c339c8ce8cfb50_d3b931cd-08ef-4970-a717-95cd413003b1.webp?v=1714710431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cf0f6f4c7046da75727389e73c339c8ce8cfb50_d3b931cd-08ef-4970-a717-95cd413003b1.webp?v=1714710431","width":2000},{"alt":null,"id":23876460871779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c5e20e7703a4736c48596fd91e0ae1b8434829_6ab48f77-61a9-4d2f-9a37-9f6820238fb9.webp?v=1714710433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01c5e20e7703a4736c48596fd91e0ae1b8434829_6ab48f77-61a9-4d2f-9a37-9f6820238fb9.webp?v=1714710433","width":2000},{"alt":null,"id":23876461756515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc029bfeb030dbd2f8d6f81f9a143c2db084df8_fd2e7973-fd0e-4215-bc08-a13ce4c5ecc3.webp?v=1714710435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc029bfeb030dbd2f8d6f81f9a143c2db084df8_fd2e7973-fd0e-4215-bc08-a13ce4c5ecc3.webp?v=1714710435","width":2000},{"alt":null,"id":23876462149731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb7c6a9274df8c5a823242601299454f04ca4d1b_26b5630d-a428-4f35-a001-f3ab019ce68c.webp?v=1714710438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb7c6a9274df8c5a823242601299454f04ca4d1b_26b5630d-a428-4f35-a001-f3ab019ce68c.webp?v=1714710438","width":2000},{"alt":null,"id":23876462641251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90fde10ce579d2e379b25e14498ac5137690fb9_851f68a9-c8b4-47e9-a7b2-f79d71bf1aa9.webp?v=1714710440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f90fde10ce579d2e379b25e14498ac5137690fb9_851f68a9-c8b4-47e9-a7b2-f79d71bf1aa9.webp?v=1714710440","width":2000},{"alt":null,"id":23876463132771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f439c7c92004d9d524aee60a7cd49aa35e3b8a66_d3accbb6-7178-4666-b8d0-556ce39acadf.webp?v=1714710442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f439c7c92004d9d524aee60a7cd49aa35e3b8a66_d3accbb6-7178-4666-b8d0-556ce39acadf.webp?v=1714710442","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884203090019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471552233571,"product_id":7408239050851,"position":2,"created_at":"2024-05-03T12:27:04+08:00","updated_at":"2024-05-03T12:27:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424","variant_ids":[41884203090019]},"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-PB18","featured_media":{"alt":null,"id":23876458938467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884203221091,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471551742051,"product_id":7408239050851,"position":1,"created_at":"2024-05-03T12:27:01+08:00","updated_at":"2024-05-03T12:27:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421","variant_ids":[41884203221091]},"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-PB18","featured_media":{"alt":null,"id":23876458479715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/747a0f5da2efcfe54bf6713975872fdf420ef67e_3cf59fb1-8ce0-4838-a960-0d252c90ab79.webp?v=1714710421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41884203516003,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471552757859,"product_id":7408239050851,"position":3,"created_at":"2024-05-03T12:27:06+08:00","updated_at":"2024-05-03T12:27:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426","variant_ids":[41884203516003]},"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-PB18","featured_media":{"alt":null,"id":23876459593827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e40823f7fceb785c572c56e9e58aa8c88cb69bc_47d5f614-5ea7-48d7-b935-678782a27fd4.webp?v=1714710426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884203090019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31471552233571,"product_id":7408239050851,"position":2,"created_at":"2024-05-03T12:27:04+08:00","updated_at":"2024-05-03T12:27:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424","variant_ids":[41884203090019]},"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-PB18","featured_media":{"alt":null,"id":23876458938467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d376f1a1190f958b0c8a8b39f23a2e9bb98e8c65_5e1f89f6-81ac-40d1-a56b-efddf59e2023.webp?v=1714710424"}},"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: "停產"
}