$product = {"id":7407763685475,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-14-pro-mod-nx-printable-pb62","description":null,"published_at":"2024-06-11T16:22:54+08:00","created_at":"2024-05-03T10:49:10+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 14 Pro","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":41878549332067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470342766691,"product_id":7407763685475,"position":4,"created_at":"2024-05-03T10:49:20+08:00","updated_at":"2024-05-03T10:49:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560","variant_ids":[41878549332067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB62","featured_media":{"alt":null,"id":23875245899875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878549397603,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470343782499,"product_id":7407763685475,"position":6,"created_at":"2024-05-03T10:49:25+08:00","updated_at":"2024-05-03T10:49:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565","variant_ids":[41878549397603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB62","featured_media":{"alt":null,"id":23875246915683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878549626979,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470342013027,"product_id":7407763685475,"position":3,"created_at":"2024-05-03T10:49:18+08:00","updated_at":"2024-05-03T10:49:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558","variant_ids":[41878549626979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB62","featured_media":{"alt":null,"id":23875245211747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44677106528bc4441d92713c1f1abfdcad7c04a0_91caf61b-9342-4514-8158-2eb49e1be822.webp?v=1714704552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c2936ef1b898471c94a1c1de93ad532e50d3bb_c39f6c45-73a8-4aa9-9ce0-9f0de534db39.webp?v=1714704555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d096e6921cf7897aa7ace5b9f05b906a75bfb_b0f7aac6-d384-4e21-8f5f-89881bd3891f.webp?v=1714704562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b1a787462e371fdb83e52a032801aee05d069e0_32ab7bf5-2b30-43e5-96be-e6024e350ae7.webp?v=1714704567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c979f462bd00a9c0407d4fc81d14b6edad2a6a3a_f6e70de8-3394-4040-bb0c-450f6fea8a6d.webp?v=1714704570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae5473d47d786a19c0d49008c69de4177e31a0_d4061f43-65e3-478f-bfc9-4ac277a56b79.webp?v=1714704572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55508447aef64a55b9515285eea6dc6ec227d69_db0ab17b-63d0-4353-a09f-ec76c7d50451.webp?v=1714704575"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44677106528bc4441d92713c1f1abfdcad7c04a0_91caf61b-9342-4514-8158-2eb49e1be822.webp?v=1714704552","options":["color"],"media":[{"alt":null,"id":23875243933795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44677106528bc4441d92713c1f1abfdcad7c04a0_91caf61b-9342-4514-8158-2eb49e1be822.webp?v=1714704552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44677106528bc4441d92713c1f1abfdcad7c04a0_91caf61b-9342-4514-8158-2eb49e1be822.webp?v=1714704552","width":2000},{"alt":null,"id":23875244556387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c2936ef1b898471c94a1c1de93ad532e50d3bb_c39f6c45-73a8-4aa9-9ce0-9f0de534db39.webp?v=1714704555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7c2936ef1b898471c94a1c1de93ad532e50d3bb_c39f6c45-73a8-4aa9-9ce0-9f0de534db39.webp?v=1714704555","width":2000},{"alt":null,"id":23875245211747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558","width":2000},{"alt":null,"id":23875245899875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560","width":2000},{"alt":null,"id":23875246489699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d096e6921cf7897aa7ace5b9f05b906a75bfb_b0f7aac6-d384-4e21-8f5f-89881bd3891f.webp?v=1714704562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/228d096e6921cf7897aa7ace5b9f05b906a75bfb_b0f7aac6-d384-4e21-8f5f-89881bd3891f.webp?v=1714704562","width":2000},{"alt":null,"id":23875246915683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565","width":2000},{"alt":null,"id":23875247439971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b1a787462e371fdb83e52a032801aee05d069e0_32ab7bf5-2b30-43e5-96be-e6024e350ae7.webp?v=1714704567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b1a787462e371fdb83e52a032801aee05d069e0_32ab7bf5-2b30-43e5-96be-e6024e350ae7.webp?v=1714704567","width":2000},{"alt":null,"id":23875248390243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c979f462bd00a9c0407d4fc81d14b6edad2a6a3a_f6e70de8-3394-4040-bb0c-450f6fea8a6d.webp?v=1714704570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c979f462bd00a9c0407d4fc81d14b6edad2a6a3a_f6e70de8-3394-4040-bb0c-450f6fea8a6d.webp?v=1714704570","width":2000},{"alt":null,"id":23875248914531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae5473d47d786a19c0d49008c69de4177e31a0_d4061f43-65e3-478f-bfc9-4ac277a56b79.webp?v=1714704572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae5473d47d786a19c0d49008c69de4177e31a0_d4061f43-65e3-478f-bfc9-4ac277a56b79.webp?v=1714704572","width":2000},{"alt":null,"id":23875249307747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55508447aef64a55b9515285eea6dc6ec227d69_db0ab17b-63d0-4353-a09f-ec76c7d50451.webp?v=1714704575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55508447aef64a55b9515285eea6dc6ec227d69_db0ab17b-63d0-4353-a09f-ec76c7d50451.webp?v=1714704575","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41878549332067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470342766691,"product_id":7407763685475,"position":4,"created_at":"2024-05-03T10:49:20+08:00","updated_at":"2024-05-03T10:49:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560","variant_ids":[41878549332067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB62","featured_media":{"alt":null,"id":23875245899875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878549397603,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470343782499,"product_id":7407763685475,"position":6,"created_at":"2024-05-03T10:49:25+08:00","updated_at":"2024-05-03T10:49:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565","variant_ids":[41878549397603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126204-PB62","featured_media":{"alt":null,"id":23875246915683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f5ba33cb0e4006e42b1fa26affc694116d088a9_61fc5a1c-0e7f-4b70-8694-19c73728cf9a.webp?v=1714704565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878549626979,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470342013027,"product_id":7407763685475,"position":3,"created_at":"2024-05-03T10:49:18+08:00","updated_at":"2024-05-03T10:49:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558","variant_ids":[41878549626979]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01262J5-PB62","featured_media":{"alt":null,"id":23875245211747,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/741a7db499fbf994f9ae99c981d90ca700b4819c_faf6f9b7-8c25-442c-bd3e-c5d3c66d14bb.webp?v=1714704558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41878549332067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31470342766691,"product_id":7407763685475,"position":4,"created_at":"2024-05-03T10:49:20+08:00","updated_at":"2024-05-03T10:49:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560","variant_ids":[41878549332067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126224-PB62","featured_media":{"alt":null,"id":23875245899875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2fc8f28f89780c7cf74c1b5c4bf0d740cc7dfda_2e1a342f-82ed-452b-8770-a0b3a7e6af82.webp?v=1714704560"}},"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: "停產"
}