$product = {"id":7411339755619,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb48","description":null,"published_at":"2024-06-11T17:42:17+08:00","created_at":"2024-05-05T00:10:31+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 14 Pro","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":41897647964259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480179949667,"product_id":7411339755619,"position":7,"created_at":"2024-05-05T00:10:49+08:00","updated_at":"2024-05-05T00:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049","variant_ids":[41897647964259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126224-PB48","featured_media":{"alt":null,"id":23885430915171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897648128099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480177885283,"product_id":7411339755619,"position":3,"created_at":"2024-05-05T00:10:39+08:00","updated_at":"2024-05-05T00:10:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039","variant_ids":[41897648128099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126204-PB48","featured_media":{"alt":null,"id":23885428818019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897648652387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480181293155,"product_id":7411339755619,"position":10,"created_at":"2024-05-05T00:10:56+08:00","updated_at":"2024-05-05T00:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056","variant_ids":[41897648652387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB01262J5-PB48","featured_media":{"alt":null,"id":23885432225891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b47ad1ed241d0ebe97741ebc04d3340fe25d4c_bb8bff11-5a21-46a2-bd99-5b2f5940ba0d.webp?v=1714839034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d71dbefa49d84cd602d306c424378de97724dbd_48eb3ce4-35dc-47f5-9dae-2f3923bc744c.webp?v=1714839037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba7ef70c18c2c9aa5f40bbe17a114ced314b0ce_c2c54797-1f30-4f76-8af0-6d57fd99a6e8.webp?v=1714839042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6377b7af2ae16fc1b074e70763d5bf302996385_62ac59af-83d3-479d-a6f8-e29f6706c4cf.webp?v=1714839044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6805f0f7d598082407264d22e6a11b4e99bc3c87_721a1a3e-9d7b-4e9e-9689-d594c4866938.webp?v=1714839047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abb4746a9ec8f048853175c0a21515b977d862c8_e3bc5926-4d1a-4631-8f7a-3b928ab53a46.webp?v=1714839052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0227cd1ea6af9c9a12708614361922082bea1b9_cb4921a5-1f4a-45fc-8160-340f1403661a.webp?v=1714839054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b47ad1ed241d0ebe97741ebc04d3340fe25d4c_bb8bff11-5a21-46a2-bd99-5b2f5940ba0d.webp?v=1714839034","options":["color"],"media":[{"alt":null,"id":23885427671139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b47ad1ed241d0ebe97741ebc04d3340fe25d4c_bb8bff11-5a21-46a2-bd99-5b2f5940ba0d.webp?v=1714839034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7b47ad1ed241d0ebe97741ebc04d3340fe25d4c_bb8bff11-5a21-46a2-bd99-5b2f5940ba0d.webp?v=1714839034","width":2000},{"alt":null,"id":23885428260963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d71dbefa49d84cd602d306c424378de97724dbd_48eb3ce4-35dc-47f5-9dae-2f3923bc744c.webp?v=1714839037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d71dbefa49d84cd602d306c424378de97724dbd_48eb3ce4-35dc-47f5-9dae-2f3923bc744c.webp?v=1714839037","width":2000},{"alt":null,"id":23885428818019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039","width":2000},{"alt":null,"id":23885429375075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba7ef70c18c2c9aa5f40bbe17a114ced314b0ce_c2c54797-1f30-4f76-8af0-6d57fd99a6e8.webp?v=1714839042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ba7ef70c18c2c9aa5f40bbe17a114ced314b0ce_c2c54797-1f30-4f76-8af0-6d57fd99a6e8.webp?v=1714839042","width":2000},{"alt":null,"id":23885429833827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6377b7af2ae16fc1b074e70763d5bf302996385_62ac59af-83d3-479d-a6f8-e29f6706c4cf.webp?v=1714839044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6377b7af2ae16fc1b074e70763d5bf302996385_62ac59af-83d3-479d-a6f8-e29f6706c4cf.webp?v=1714839044","width":2000},{"alt":null,"id":23885430390883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6805f0f7d598082407264d22e6a11b4e99bc3c87_721a1a3e-9d7b-4e9e-9689-d594c4866938.webp?v=1714839047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6805f0f7d598082407264d22e6a11b4e99bc3c87_721a1a3e-9d7b-4e9e-9689-d594c4866938.webp?v=1714839047","width":2000},{"alt":null,"id":23885430915171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049","width":2000},{"alt":null,"id":23885431308387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abb4746a9ec8f048853175c0a21515b977d862c8_e3bc5926-4d1a-4631-8f7a-3b928ab53a46.webp?v=1714839052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abb4746a9ec8f048853175c0a21515b977d862c8_e3bc5926-4d1a-4631-8f7a-3b928ab53a46.webp?v=1714839052","width":2000},{"alt":null,"id":23885431930979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0227cd1ea6af9c9a12708614361922082bea1b9_cb4921a5-1f4a-45fc-8160-340f1403661a.webp?v=1714839054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0227cd1ea6af9c9a12708614361922082bea1b9_cb4921a5-1f4a-45fc-8160-340f1403661a.webp?v=1714839054","width":2000},{"alt":null,"id":23885432225891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897647964259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480179949667,"product_id":7411339755619,"position":7,"created_at":"2024-05-05T00:10:49+08:00","updated_at":"2024-05-05T00:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049","variant_ids":[41897647964259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126224-PB48","featured_media":{"alt":null,"id":23885430915171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897648128099,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480177885283,"product_id":7411339755619,"position":3,"created_at":"2024-05-05T00:10:39+08:00","updated_at":"2024-05-05T00:10:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039","variant_ids":[41897648128099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126204-PB48","featured_media":{"alt":null,"id":23885428818019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b14a2ff861664015748b6ced68b9f6fd28c78bd_225f020c-cb88-4dcd-b609-e2314d04f74b.webp?v=1714839039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897648652387,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480181293155,"product_id":7411339755619,"position":10,"created_at":"2024-05-05T00:10:56+08:00","updated_at":"2024-05-05T00:10:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056","variant_ids":[41897648652387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB01262J5-PB48","featured_media":{"alt":null,"id":23885432225891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3400c7fff855316038d7ae4b1490e1ab3836905f_bd22ab84-0a3b-4003-8904-a14a8ac91e0e.webp?v=1714839056"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897647964259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480179949667,"product_id":7411339755619,"position":7,"created_at":"2024-05-05T00:10:49+08:00","updated_at":"2024-05-05T00:10:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049","variant_ids":[41897647964259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126224-PB48","featured_media":{"alt":null,"id":23885430915171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22fd1e755171840c914103a454f557aa55a88625_05e90b28-383a-47c9-acea-ab627f9a1354.webp?v=1714839049"}},"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: "停產"
}