$product = {"id":7407822766179,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列","handle":"iphone-14-pro-mod-nx-printable-pb85","description":null,"published_at":"2024-06-11T16:23:48+08:00","created_at":"2024-05-03T10:56:41+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":41879253549155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470457159779,"product_id":7407822766179,"position":7,"created_at":"2024-05-03T10:56:59+08:00","updated_at":"2024-05-03T10:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019","variant_ids":[41879253549155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875360653411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879253614691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470458568803,"product_id":7407822766179,"position":10,"created_at":"2024-05-03T10:57:06+08:00","updated_at":"2024-05-03T10:57:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026","variant_ids":[41879253614691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875362029667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879253844067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470457684067,"product_id":7407822766179,"position":8,"created_at":"2024-05-03T10:57:01+08:00","updated_at":"2024-05-03T10:57:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021","variant_ids":[41879253844067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875361112163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cfd74b0527f8276e1adb5aca473dfb58212734a_061d577c-40fe-417d-8bf9-991bf1491ead.webp?v=1714705003","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24a145f0f4b6885179388f1823b8c437293ef4b_52ecd179-44fa-41c9-80dd-2241c7abdf0d.webp?v=1714705005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c90e875ae585e82083fd36b432435f08056f719_7c040fac-a488-4931-a0f7-5a273daf15b7.webp?v=1714705008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd72cef407fea1a57e6bfd7cdc69485764b4154_5ccd8de6-a531-4a6d-9aa1-438287bd4b39.webp?v=1714705010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2428b9934ab66f6cecb34960faf717ed063fefd_114a7c9e-62f4-4f8b-8442-a77b5534ae65.webp?v=1714705013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab06f75ee795a5f841edd4eb5ae5ad77da5e163_1b71e10b-e08d-432f-b2f7-fe544307d534.webp?v=1714705016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5e97003c8d06bb62ee7722d27a2999c931c1db_8a5baacd-0380-4872-8420-656d3bf90a98.webp?v=1714705024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cfd74b0527f8276e1adb5aca473dfb58212734a_061d577c-40fe-417d-8bf9-991bf1491ead.webp?v=1714705003","options":["color"],"media":[{"alt":null,"id":23875357802595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cfd74b0527f8276e1adb5aca473dfb58212734a_061d577c-40fe-417d-8bf9-991bf1491ead.webp?v=1714705003"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cfd74b0527f8276e1adb5aca473dfb58212734a_061d577c-40fe-417d-8bf9-991bf1491ead.webp?v=1714705003","width":2000},{"alt":null,"id":23875358130275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24a145f0f4b6885179388f1823b8c437293ef4b_52ecd179-44fa-41c9-80dd-2241c7abdf0d.webp?v=1714705005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a24a145f0f4b6885179388f1823b8c437293ef4b_52ecd179-44fa-41c9-80dd-2241c7abdf0d.webp?v=1714705005","width":2000},{"alt":null,"id":23875358720099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c90e875ae585e82083fd36b432435f08056f719_7c040fac-a488-4931-a0f7-5a273daf15b7.webp?v=1714705008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c90e875ae585e82083fd36b432435f08056f719_7c040fac-a488-4931-a0f7-5a273daf15b7.webp?v=1714705008","width":2000},{"alt":null,"id":23875359113315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd72cef407fea1a57e6bfd7cdc69485764b4154_5ccd8de6-a531-4a6d-9aa1-438287bd4b39.webp?v=1714705010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fd72cef407fea1a57e6bfd7cdc69485764b4154_5ccd8de6-a531-4a6d-9aa1-438287bd4b39.webp?v=1714705010","width":2000},{"alt":null,"id":23875359506531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2428b9934ab66f6cecb34960faf717ed063fefd_114a7c9e-62f4-4f8b-8442-a77b5534ae65.webp?v=1714705013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2428b9934ab66f6cecb34960faf717ed063fefd_114a7c9e-62f4-4f8b-8442-a77b5534ae65.webp?v=1714705013","width":2000},{"alt":null,"id":23875360129123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab06f75ee795a5f841edd4eb5ae5ad77da5e163_1b71e10b-e08d-432f-b2f7-fe544307d534.webp?v=1714705016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ab06f75ee795a5f841edd4eb5ae5ad77da5e163_1b71e10b-e08d-432f-b2f7-fe544307d534.webp?v=1714705016","width":2000},{"alt":null,"id":23875360653411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019","width":2000},{"alt":null,"id":23875361112163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021","width":2000},{"alt":null,"id":23875361669219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5e97003c8d06bb62ee7722d27a2999c931c1db_8a5baacd-0380-4872-8420-656d3bf90a98.webp?v=1714705024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d5e97003c8d06bb62ee7722d27a2999c931c1db_8a5baacd-0380-4872-8420-656d3bf90a98.webp?v=1714705024","width":2000},{"alt":null,"id":23875362029667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41879253549155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470457159779,"product_id":7407822766179,"position":7,"created_at":"2024-05-03T10:56:59+08:00","updated_at":"2024-05-03T10:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019","variant_ids":[41879253549155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875360653411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879253614691,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470458568803,"product_id":7407822766179,"position":10,"created_at":"2024-05-03T10:57:06+08:00","updated_at":"2024-05-03T10:57:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026","variant_ids":[41879253614691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875362029667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00bb16c0092bf191a00eb6adaa3a54bd13489ea6_16b25711-4ab4-4544-8a7b-da38d025c4a6.webp?v=1714705026"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879253844067,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470457684067,"product_id":7407822766179,"position":8,"created_at":"2024-05-03T10:57:01+08:00","updated_at":"2024-05-03T10:57:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021","variant_ids":[41879253844067]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875361112163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d13d79cd31b3be77f894fe59accd2cf0a7ea5f_53d1c393-1bed-42c6-9426-978bf38dd528.webp?v=1714705021"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879253549155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31470457159779,"product_id":7407822766179,"position":7,"created_at":"2024-05-03T10:56:59+08:00","updated_at":"2024-05-03T10:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019","variant_ids":[41879253549155]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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-PB85","featured_media":{"alt":null,"id":23875360653411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ca6c733bcd91ffa1860e514d9903d9dfbf54a17_e9362a65-9227-4ec9-b917-0401ee7dea20.webp?v=1714705019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}