$product = {"id":7411291717731,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb32","description":null,"published_at":"2024-06-11T17:40:59+08:00","created_at":"2024-05-05T00:01:19+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":41897046999139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060084323,"product_id":7411291717731,"position":2,"created_at":"2024-05-05T00:01:24+08:00","updated_at":"2024-05-05T00:01:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484","variant_ids":[41897046999139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885310754915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897047064675,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480061722723,"product_id":7411291717731,"position":5,"created_at":"2024-05-05T00:01:32+08:00","updated_at":"2024-05-05T00:01:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492","variant_ids":[41897047064675]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885312393315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897047326819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480062705763,"product_id":7411291717731,"position":7,"created_at":"2024-05-05T00:01:37+08:00","updated_at":"2024-05-05T00:01:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497","variant_ids":[41897047326819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885313376355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c16190e1242e77c2e70b4e9397011acbcc7f8ab_9b7bf862-0bf7-4832-b49e-47a1c3cb79a6.webp?v=1714838481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c83e85f56d8d1c3da2a006666db7efb7b69a70_13a50649-2544-485f-88e9-fa9b22147b0f.webp?v=1714838487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb62d7601be95f9f3d5488f6168c9dc5317fbfd_9a032ebe-7171-4ef9-809c-087b5d9f85ef.webp?v=1714838489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fb9520fd58d26b15c5216115e4ae95c9f2d890_4d610f04-2e6f-465f-9cab-c3a67744234a.webp?v=1714838494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e348f9a5dc07e7f3ad48afeb9f8b20667f9bf083_3889d7ab-c6fd-4fa7-9c8a-2193ca57166c.webp?v=1714838499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e7b6e4650bbca2d5b83a61483b4447b26dbd403_73da3977-1989-4cc2-a58f-e4aade60bcc5.webp?v=1714838502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8038ca93d9e7eb63f369a2442bea5c4ec95f648f_b598f8ef-2ff5-4c51-a33e-02cf4b8dd02c.webp?v=1714838504"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c16190e1242e77c2e70b4e9397011acbcc7f8ab_9b7bf862-0bf7-4832-b49e-47a1c3cb79a6.webp?v=1714838481","options":["color"],"media":[{"alt":null,"id":23885310328931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c16190e1242e77c2e70b4e9397011acbcc7f8ab_9b7bf862-0bf7-4832-b49e-47a1c3cb79a6.webp?v=1714838481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c16190e1242e77c2e70b4e9397011acbcc7f8ab_9b7bf862-0bf7-4832-b49e-47a1c3cb79a6.webp?v=1714838481","width":2000},{"alt":null,"id":23885310754915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484","width":2000},{"alt":null,"id":23885311377507,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c83e85f56d8d1c3da2a006666db7efb7b69a70_13a50649-2544-485f-88e9-fa9b22147b0f.webp?v=1714838487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2c83e85f56d8d1c3da2a006666db7efb7b69a70_13a50649-2544-485f-88e9-fa9b22147b0f.webp?v=1714838487","width":2000},{"alt":null,"id":23885311770723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb62d7601be95f9f3d5488f6168c9dc5317fbfd_9a032ebe-7171-4ef9-809c-087b5d9f85ef.webp?v=1714838489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cb62d7601be95f9f3d5488f6168c9dc5317fbfd_9a032ebe-7171-4ef9-809c-087b5d9f85ef.webp?v=1714838489","width":2000},{"alt":null,"id":23885312393315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492","width":2000},{"alt":null,"id":23885312917603,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fb9520fd58d26b15c5216115e4ae95c9f2d890_4d610f04-2e6f-465f-9cab-c3a67744234a.webp?v=1714838494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32fb9520fd58d26b15c5216115e4ae95c9f2d890_4d610f04-2e6f-465f-9cab-c3a67744234a.webp?v=1714838494","width":2000},{"alt":null,"id":23885313376355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497","width":2000},{"alt":null,"id":23885314097251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e348f9a5dc07e7f3ad48afeb9f8b20667f9bf083_3889d7ab-c6fd-4fa7-9c8a-2193ca57166c.webp?v=1714838499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e348f9a5dc07e7f3ad48afeb9f8b20667f9bf083_3889d7ab-c6fd-4fa7-9c8a-2193ca57166c.webp?v=1714838499","width":2000},{"alt":null,"id":23885314752611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e7b6e4650bbca2d5b83a61483b4447b26dbd403_73da3977-1989-4cc2-a58f-e4aade60bcc5.webp?v=1714838502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e7b6e4650bbca2d5b83a61483b4447b26dbd403_73da3977-1989-4cc2-a58f-e4aade60bcc5.webp?v=1714838502","width":2000},{"alt":null,"id":23885315113059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8038ca93d9e7eb63f369a2442bea5c4ec95f648f_b598f8ef-2ff5-4c51-a33e-02cf4b8dd02c.webp?v=1714838504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8038ca93d9e7eb63f369a2442bea5c4ec95f648f_b598f8ef-2ff5-4c51-a33e-02cf4b8dd02c.webp?v=1714838504","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897046999139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060084323,"product_id":7411291717731,"position":2,"created_at":"2024-05-05T00:01:24+08:00","updated_at":"2024-05-05T00:01:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484","variant_ids":[41897046999139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885310754915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897047064675,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480061722723,"product_id":7411291717731,"position":5,"created_at":"2024-05-05T00:01:32+08:00","updated_at":"2024-05-05T00:01:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492","variant_ids":[41897047064675]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885312393315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70ff28cdc6df8ac372a44a1a647483917b826d0c_37687673-e0f3-4204-9032-40d07be8ea64.webp?v=1714838492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897047326819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480062705763,"product_id":7411291717731,"position":7,"created_at":"2024-05-05T00:01:37+08:00","updated_at":"2024-05-05T00:01:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497","variant_ids":[41897047326819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885313376355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28a2966bc798d809fb85a1098369ade4d6189d1c_461aaa88-123a-4ce9-9794-2f5f31facc2b.webp?v=1714838497"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897046999139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB32","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060084323,"product_id":7411291717731,"position":2,"created_at":"2024-05-05T00:01:24+08:00","updated_at":"2024-05-05T00:01:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484","variant_ids":[41897046999139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - Sticker-藍 - 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-PB32","featured_media":{"alt":null,"id":23885310754915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4c4fcfaba93269b7e483b62b4c5f9513cfd96c7_7dbea476-6e8d-42fa-8536-629ca03a3dd1.webp?v=1714838484"}},"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: "停產"
}