$product = {"id":7414579396707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb55","description":null,"published_at":"2024-06-11T17:52:15+08:00","created_at":"2024-05-05T14:31:54+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":41907497599075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485808312419,"product_id":7414579396707,"position":9,"created_at":"2024-05-05T14:32:14+08:00","updated_at":"2024-05-05T14:32:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734","variant_ids":[41907497599075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891140870243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907497762915,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485809000547,"product_id":7414579396707,"position":10,"created_at":"2024-05-05T14:32:16+08:00","updated_at":"2024-05-05T14:32:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736","variant_ids":[41907497762915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891141525603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907498057827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485807722595,"product_id":7414579396707,"position":8,"created_at":"2024-05-05T14:32:11+08:00","updated_at":"2024-05-05T14:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731","variant_ids":[41907498057827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891140247651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88a4a564652564080fb4f701e0079ec94ad364_595b7c13-4659-4658-baf0-a0183ecddd2a.webp?v=1714890716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6373c539c1d7e0dfc82ae60f7967023766c91c_463aa0ac-43ed-4cab-8d97-16a91a020510.webp?v=1714890718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5114f5f924a0673216241680a92db856019dc5_47e916b8-0397-4d8e-bf84-55b7e1a85d2c.webp?v=1714890720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e85bfbcabb2fb34d234672d632372c902265d168_4581e2c0-8b00-4269-83e7-bc8a4a935d03.webp?v=1714890723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984f0d80cc43c5ec7d59131da816180d6b9db4b1_f97f127b-7915-42b9-88e6-21ee9289ae6e.webp?v=1714890725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1ba760adb3ed86e4badb69fbffd8fd5431b4a7_34793592-61ba-49cd-9f2e-474bff29c072.webp?v=1714890727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe62f7c217ff943ea3e023d9c016bd5cadff17_5ff02f12-4a62-4cc0-a1b2-ce0802965208.webp?v=1714890729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88a4a564652564080fb4f701e0079ec94ad364_595b7c13-4659-4658-baf0-a0183ecddd2a.webp?v=1714890716","options":["color"],"media":[{"alt":null,"id":23891135201379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88a4a564652564080fb4f701e0079ec94ad364_595b7c13-4659-4658-baf0-a0183ecddd2a.webp?v=1714890716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae88a4a564652564080fb4f701e0079ec94ad364_595b7c13-4659-4658-baf0-a0183ecddd2a.webp?v=1714890716","width":2000},{"alt":null,"id":23891135660131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6373c539c1d7e0dfc82ae60f7967023766c91c_463aa0ac-43ed-4cab-8d97-16a91a020510.webp?v=1714890718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6373c539c1d7e0dfc82ae60f7967023766c91c_463aa0ac-43ed-4cab-8d97-16a91a020510.webp?v=1714890718","width":2000},{"alt":null,"id":23891136446563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5114f5f924a0673216241680a92db856019dc5_47e916b8-0397-4d8e-bf84-55b7e1a85d2c.webp?v=1714890720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5114f5f924a0673216241680a92db856019dc5_47e916b8-0397-4d8e-bf84-55b7e1a85d2c.webp?v=1714890720","width":2000},{"alt":null,"id":23891137265763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e85bfbcabb2fb34d234672d632372c902265d168_4581e2c0-8b00-4269-83e7-bc8a4a935d03.webp?v=1714890723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e85bfbcabb2fb34d234672d632372c902265d168_4581e2c0-8b00-4269-83e7-bc8a4a935d03.webp?v=1714890723","width":2000},{"alt":null,"id":23891138019427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984f0d80cc43c5ec7d59131da816180d6b9db4b1_f97f127b-7915-42b9-88e6-21ee9289ae6e.webp?v=1714890725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/984f0d80cc43c5ec7d59131da816180d6b9db4b1_f97f127b-7915-42b9-88e6-21ee9289ae6e.webp?v=1714890725","width":2000},{"alt":null,"id":23891138838627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1ba760adb3ed86e4badb69fbffd8fd5431b4a7_34793592-61ba-49cd-9f2e-474bff29c072.webp?v=1714890727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1ba760adb3ed86e4badb69fbffd8fd5431b4a7_34793592-61ba-49cd-9f2e-474bff29c072.webp?v=1714890727","width":2000},{"alt":null,"id":23891139493987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe62f7c217ff943ea3e023d9c016bd5cadff17_5ff02f12-4a62-4cc0-a1b2-ce0802965208.webp?v=1714890729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4fe62f7c217ff943ea3e023d9c016bd5cadff17_5ff02f12-4a62-4cc0-a1b2-ce0802965208.webp?v=1714890729","width":2000},{"alt":null,"id":23891140247651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731","width":2000},{"alt":null,"id":23891140870243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734","width":2000},{"alt":null,"id":23891141525603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907497599075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485808312419,"product_id":7414579396707,"position":9,"created_at":"2024-05-05T14:32:14+08:00","updated_at":"2024-05-05T14:32:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734","variant_ids":[41907497599075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891140870243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907497762915,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485809000547,"product_id":7414579396707,"position":10,"created_at":"2024-05-05T14:32:16+08:00","updated_at":"2024-05-05T14:32:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736","variant_ids":[41907497762915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891141525603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6864c4d89caabf2e8957ef310dab990beec8bc33_dc7ad1f8-6926-44f4-af16-facb725771e9.webp?v=1714890736"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907498057827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485807722595,"product_id":7414579396707,"position":8,"created_at":"2024-05-05T14:32:11+08:00","updated_at":"2024-05-05T14:32:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731","variant_ids":[41907498057827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891140247651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43147af1e7751e8d7aa249ef9918a824c5ee3035_87963ffc-14b6-43aa-a7bf-b91c29cd9426.webp?v=1714890731"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907497599075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31485808312419,"product_id":7414579396707,"position":9,"created_at":"2024-05-05T14:32:14+08:00","updated_at":"2024-05-05T14:32:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734","variant_ids":[41907497599075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23891140870243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35efa927bd3a281875f36d30e322b5034f341d10_aebc06c7-8d92-4c24-90a3-52e8b0e9b2a0.webp?v=1714890734"}},"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: "停產"
}