$product = {"id":7414110453859,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb96","description":null,"published_at":"2024-06-11T17:49:03+08:00","created_at":"2024-05-05T14:10:25+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 13 mini","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":41904171548771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484697018467,"product_id":7414110453859,"position":5,"created_at":"2024-05-05T14:10:38+08:00","updated_at":"2024-05-05T14:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438","variant_ids":[41904171548771]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB0122824-PB96","featured_media":{"alt":null,"id":23889992319075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171614307,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484703375459,"product_id":7414110453859,"position":9,"created_at":"2024-05-05T14:10:47+08:00","updated_at":"2024-05-05T14:10:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447","variant_ids":[41904171614307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB0122804-PB96","featured_media":{"alt":null,"id":23889998643299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171843683,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484704915555,"product_id":7414110453859,"position":10,"created_at":"2024-05-05T14:10:50+08:00","updated_at":"2024-05-05T14:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450","variant_ids":[41904171843683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB01228J5-PB96","featured_media":{"alt":null,"id":23890000085091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b757d9b3f2b0ff6893187ce3fb7f3622f92d06_a2255490-71d9-46ac-a9ef-4e369f8d388d.webp?v=1714889428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6304ee1ba127801c88061504442df820c923f99_b643b794-08c6-47e7-93ac-39fd3c5002c1.webp?v=1714889431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb0fd2f4fc7b13e191d3a4a281c2f06c28f54e3_4d004945-d0e9-446b-b9b0-9977e7da5a55.webp?v=1714889433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a401f164dd5fa59035b248e78ed0c449ba18a2_6b34e7c6-47d0-453f-a34f-9ca80ba36bb7.webp?v=1714889435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f3e7d1edb14901dac4fcbcf1f53140abc2d5a6_d6a308d2-54b6-4340-a25f-b4f92bafee8c.webp?v=1714889440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd3080763a7d6be94394b9b1a7ad4ad64dd3ded_1036c28b-8835-4d75-8c20-2012ac00fb56.webp?v=1714889443","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c231e31bd411cd7ef2e2824baed968760e0ca7ef_df13b9bf-bdca-4688-b1c7-3a5978e3c5ed.webp?v=1714889445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b757d9b3f2b0ff6893187ce3fb7f3622f92d06_a2255490-71d9-46ac-a9ef-4e369f8d388d.webp?v=1714889428","options":["color"],"media":[{"alt":null,"id":23889985994851,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b757d9b3f2b0ff6893187ce3fb7f3622f92d06_a2255490-71d9-46ac-a9ef-4e369f8d388d.webp?v=1714889428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56b757d9b3f2b0ff6893187ce3fb7f3622f92d06_a2255490-71d9-46ac-a9ef-4e369f8d388d.webp?v=1714889428","width":2000},{"alt":null,"id":23889987567715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6304ee1ba127801c88061504442df820c923f99_b643b794-08c6-47e7-93ac-39fd3c5002c1.webp?v=1714889431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6304ee1ba127801c88061504442df820c923f99_b643b794-08c6-47e7-93ac-39fd3c5002c1.webp?v=1714889431","width":2000},{"alt":null,"id":23889989140579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb0fd2f4fc7b13e191d3a4a281c2f06c28f54e3_4d004945-d0e9-446b-b9b0-9977e7da5a55.webp?v=1714889433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2fb0fd2f4fc7b13e191d3a4a281c2f06c28f54e3_4d004945-d0e9-446b-b9b0-9977e7da5a55.webp?v=1714889433","width":2000},{"alt":null,"id":23889990844515,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a401f164dd5fa59035b248e78ed0c449ba18a2_6b34e7c6-47d0-453f-a34f-9ca80ba36bb7.webp?v=1714889435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99a401f164dd5fa59035b248e78ed0c449ba18a2_6b34e7c6-47d0-453f-a34f-9ca80ba36bb7.webp?v=1714889435","width":2000},{"alt":null,"id":23889992319075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438","width":2000},{"alt":null,"id":23889993891939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f3e7d1edb14901dac4fcbcf1f53140abc2d5a6_d6a308d2-54b6-4340-a25f-b4f92bafee8c.webp?v=1714889440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96f3e7d1edb14901dac4fcbcf1f53140abc2d5a6_d6a308d2-54b6-4340-a25f-b4f92bafee8c.webp?v=1714889440","width":2000},{"alt":null,"id":23889995399267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd3080763a7d6be94394b9b1a7ad4ad64dd3ded_1036c28b-8835-4d75-8c20-2012ac00fb56.webp?v=1714889443"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dd3080763a7d6be94394b9b1a7ad4ad64dd3ded_1036c28b-8835-4d75-8c20-2012ac00fb56.webp?v=1714889443","width":2000},{"alt":null,"id":23889996873827,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c231e31bd411cd7ef2e2824baed968760e0ca7ef_df13b9bf-bdca-4688-b1c7-3a5978e3c5ed.webp?v=1714889445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c231e31bd411cd7ef2e2824baed968760e0ca7ef_df13b9bf-bdca-4688-b1c7-3a5978e3c5ed.webp?v=1714889445","width":2000},{"alt":null,"id":23889998643299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447","width":2000},{"alt":null,"id":23890000085091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904171548771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484697018467,"product_id":7414110453859,"position":5,"created_at":"2024-05-05T14:10:38+08:00","updated_at":"2024-05-05T14:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438","variant_ids":[41904171548771]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB0122824-PB96","featured_media":{"alt":null,"id":23889992319075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171614307,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484703375459,"product_id":7414110453859,"position":9,"created_at":"2024-05-05T14:10:47+08:00","updated_at":"2024-05-05T14:10:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447","variant_ids":[41904171614307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB0122804-PB96","featured_media":{"alt":null,"id":23889998643299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d0287c3b6d7149ecf7e7c1c2c53c77e2811164f_3c3cbbb5-e9f2-4067-8b70-ee6f6c1d6b52.webp?v=1714889447"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171843683,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484704915555,"product_id":7414110453859,"position":10,"created_at":"2024-05-05T14:10:50+08:00","updated_at":"2024-05-05T14:10:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450","variant_ids":[41904171843683]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB01228J5-PB96","featured_media":{"alt":null,"id":23890000085091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6d23c90bd6eb3439c12c770540e5f50221301fa_33b72a43-7bf3-4847-8e23-fe05f01fe8bd.webp?v=1714889450"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904171548771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB96","requires_shipping":true,"taxable":true,"featured_image":{"id":31484697018467,"product_id":7414110453859,"position":5,"created_at":"2024-05-05T14:10:38+08:00","updated_at":"2024-05-05T14:10:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438","variant_ids":[41904171548771]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士-Useless to Resist - 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":"MPB0122824-PB96","featured_media":{"alt":null,"id":23889992319075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30eda9de79b8d6319caf5c7b710df347d17e2ce_f00a2610-3349-4893-aabf-3755fa65a808.webp?v=1714889438"}},"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: "停產"
}