$product = {"id":7414135914595,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb71","description":null,"published_at":"2024-06-11T17:49:20+08:00","created_at":"2024-05-05T14:12:24+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":41904364978275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484753707107,"product_id":7414135914595,"position":3,"created_at":"2024-05-05T14:12:31+08:00","updated_at":"2024-05-05T14:12:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551","variant_ids":[41904364978275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB71","featured_media":{"alt":null,"id":23890049335395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904365174883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484763832419,"product_id":7414135914595,"position":8,"created_at":"2024-05-05T14:12:44+08:00","updated_at":"2024-05-05T14:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564","variant_ids":[41904365174883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB71","featured_media":{"alt":null,"id":23890059493475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904365830243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484767600739,"product_id":7414135914595,"position":10,"created_at":"2024-05-05T14:12:49+08:00","updated_at":"2024-05-05T14:12:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569","variant_ids":[41904365830243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB71","featured_media":{"alt":null,"id":23890063163491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93f55bdb5fde72547e66e6648c25d7d1911db2b5_941e9720-4334-4d03-9a8c-b785425ae65e.webp?v=1714889547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7086124a1fce22107b5008d4064962b1a2a8121f_a4b429c4-ad40-4163-9072-544793f1213d.webp?v=1714889549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d7e2146816f16ab584e1f8345059936fdd0d02_ad50cba0-8785-45cf-8683-18ccf3b66b6d.webp?v=1714889554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb7af6eb5203809f45b758ddf54aa370ca1990f_b65e4b04-cf26-4a97-8fa6-d14e5d5755ee.webp?v=1714889557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eda5bd583c9b347996a58f603f58ebaf8891d9e_eaf9293b-27b3-4568-b4e4-0f38184dbd3a.webp?v=1714889560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203f034471f3d5eaa0c2bb6f92f3d6f4b032d8e8_d87a5e72-87a6-4246-b20b-b4dc2cfa10e7.webp?v=1714889562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7969f6b559b37a5aea641fa5ff5a530e8a5b0879_a12147f2-f871-4a68-b569-13ac137f5f2c.webp?v=1714889567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93f55bdb5fde72547e66e6648c25d7d1911db2b5_941e9720-4334-4d03-9a8c-b785425ae65e.webp?v=1714889547","options":["color"],"media":[{"alt":null,"id":23890045534307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93f55bdb5fde72547e66e6648c25d7d1911db2b5_941e9720-4334-4d03-9a8c-b785425ae65e.webp?v=1714889547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93f55bdb5fde72547e66e6648c25d7d1911db2b5_941e9720-4334-4d03-9a8c-b785425ae65e.webp?v=1714889547","width":2000},{"alt":null,"id":23890047565923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7086124a1fce22107b5008d4064962b1a2a8121f_a4b429c4-ad40-4163-9072-544793f1213d.webp?v=1714889549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7086124a1fce22107b5008d4064962b1a2a8121f_a4b429c4-ad40-4163-9072-544793f1213d.webp?v=1714889549","width":2000},{"alt":null,"id":23890049335395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551","width":2000},{"alt":null,"id":23890051399779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d7e2146816f16ab584e1f8345059936fdd0d02_ad50cba0-8785-45cf-8683-18ccf3b66b6d.webp?v=1714889554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d7e2146816f16ab584e1f8345059936fdd0d02_ad50cba0-8785-45cf-8683-18ccf3b66b6d.webp?v=1714889554","width":2000},{"alt":null,"id":23890054053987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb7af6eb5203809f45b758ddf54aa370ca1990f_b65e4b04-cf26-4a97-8fa6-d14e5d5755ee.webp?v=1714889557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb7af6eb5203809f45b758ddf54aa370ca1990f_b65e4b04-cf26-4a97-8fa6-d14e5d5755ee.webp?v=1714889557","width":2000},{"alt":null,"id":23890056216675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eda5bd583c9b347996a58f603f58ebaf8891d9e_eaf9293b-27b3-4568-b4e4-0f38184dbd3a.webp?v=1714889560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eda5bd583c9b347996a58f603f58ebaf8891d9e_eaf9293b-27b3-4568-b4e4-0f38184dbd3a.webp?v=1714889560","width":2000},{"alt":null,"id":23890057658467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203f034471f3d5eaa0c2bb6f92f3d6f4b032d8e8_d87a5e72-87a6-4246-b20b-b4dc2cfa10e7.webp?v=1714889562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203f034471f3d5eaa0c2bb6f92f3d6f4b032d8e8_d87a5e72-87a6-4246-b20b-b4dc2cfa10e7.webp?v=1714889562","width":2000},{"alt":null,"id":23890059493475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564","width":2000},{"alt":null,"id":23890061426787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7969f6b559b37a5aea641fa5ff5a530e8a5b0879_a12147f2-f871-4a68-b569-13ac137f5f2c.webp?v=1714889567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7969f6b559b37a5aea641fa5ff5a530e8a5b0879_a12147f2-f871-4a68-b569-13ac137f5f2c.webp?v=1714889567","width":2000},{"alt":null,"id":23890063163491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904364978275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484753707107,"product_id":7414135914595,"position":3,"created_at":"2024-05-05T14:12:31+08:00","updated_at":"2024-05-05T14:12:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551","variant_ids":[41904364978275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB71","featured_media":{"alt":null,"id":23890049335395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904365174883,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484763832419,"product_id":7414135914595,"position":8,"created_at":"2024-05-05T14:12:44+08:00","updated_at":"2024-05-05T14:12:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564","variant_ids":[41904365174883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122804-PB71","featured_media":{"alt":null,"id":23890059493475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d2547d3aa2618ffed11abfa275ec380c71f861_b853edd5-b1b9-449e-853a-02c581a66651.webp?v=1714889564"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904365830243,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484767600739,"product_id":7414135914595,"position":10,"created_at":"2024-05-05T14:12:49+08:00","updated_at":"2024-05-05T14:12:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569","variant_ids":[41904365830243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB01228J5-PB71","featured_media":{"alt":null,"id":23890063163491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c6f432244eb2ad017c1efcc1ef6e41cee9f54e4_3244b883-9ec4-447b-898b-31fb1e4885d6.webp?v=1714889569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904364978275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31484753707107,"product_id":7414135914595,"position":3,"created_at":"2024-05-05T14:12:31+08:00","updated_at":"2024-05-05T14:12:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551","variant_ids":[41904364978275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 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":"MPB0122824-PB71","featured_media":{"alt":null,"id":23890049335395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/201e0343c1a197179ac277fd55b1f05fb95f36c2_12ff3f36-ed2c-4eb3-bee2-ee11bcb85d14.webp?v=1714889551"}},"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: "停產"
}