$product = {"id":7823795781731,"title":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂!","handle":"iphone-15-pro-max-solidx-oo131","description":null,"published_at":"2025-07-01T19:15:14+08:00","created_at":"2025-06-20T10:26:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-harry-potter","device-iPhone 15 Pro Max","merge","reseller-harry-potter"],"price":125000,"price_min":125000,"price_max":125000,"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":43473111646307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155304575075,"product_id":7823795781731,"position":8,"created_at":"2026-07-02T16:19:35+08:00","updated_at":"2026-07-02T16:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377","variant_ids":[43473111646307]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO131","featured_media":{"alt":null,"id":27660174393443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115250787,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155303362659,"product_id":7823795781731,"position":6,"created_at":"2026-07-02T16:19:34+08:00","updated_at":"2026-07-02T16:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376","variant_ids":[43473115250787]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-OO131","featured_media":{"alt":null,"id":27660173148259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115349091,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155302674531,"product_id":7823795781731,"position":3,"created_at":"2026-07-02T16:19:32+08:00","updated_at":"2026-07-02T16:19:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374","variant_ids":[43473115349091]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-OO131","featured_media":{"alt":null,"id":27660172460131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115381859,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155302871139,"product_id":7823795781731,"position":4,"created_at":"2026-07-02T16:19:32+08:00","updated_at":"2026-07-02T16:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375","variant_ids":[43473115381859]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-OO131","featured_media":{"alt":null,"id":27660172656739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494136709219,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155304280163,"product_id":7823795781731,"position":7,"created_at":"2026-07-02T16:19:34+08:00","updated_at":"2026-07-02T16:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376","variant_ids":[43494136709219]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-OO131","featured_media":{"alt":null,"id":27660174065763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO131.png?v=1750386383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO131_5131d7af-21a1-4f9d-b0ac-8602cf3f9d9f.png?v=1750831650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e7030772a0773d372231fbeb27cb3c1175c4cd8.webp?v=1782980375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de1dbb94c04d5efa0219ab85ba8ccf276cf6650.webp?v=1782980378"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO131.png?v=1750386383","options":["color"],"media":[{"alt":null,"id":25720356798563,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO131.png?v=1750386383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-298-OO131.png?v=1750386383","width":2000},{"alt":null,"id":25736231649379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO131_5131d7af-21a1-4f9d-b0ac-8602cf3f9d9f.png?v=1750831650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-OO131_5131d7af-21a1-4f9d-b0ac-8602cf3f9d9f.png?v=1750831650","width":2000},{"alt":null,"id":27660172460131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374","width":2000},{"alt":null,"id":27660172656739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375","width":2000},{"alt":null,"id":27660172951651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e7030772a0773d372231fbeb27cb3c1175c4cd8.webp?v=1782980375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e7030772a0773d372231fbeb27cb3c1175c4cd8.webp?v=1782980375","width":2000},{"alt":null,"id":27660173148259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376","width":2000},{"alt":null,"id":27660174065763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376","width":2000},{"alt":null,"id":27660174393443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377","width":2000},{"alt":null,"id":27660174590051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de1dbb94c04d5efa0219ab85ba8ccf276cf6650.webp?v=1782980378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de1dbb94c04d5efa0219ab85ba8ccf276cf6650.webp?v=1782980378","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43473111646307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155304575075,"product_id":7823795781731,"position":8,"created_at":"2026-07-02T16:19:35+08:00","updated_at":"2026-07-02T16:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377","variant_ids":[43473111646307]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO131","featured_media":{"alt":null,"id":27660174393443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115250787,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129853-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155303362659,"product_id":7823795781731,"position":6,"created_at":"2026-07-02T16:19:34+08:00","updated_at":"2026-07-02T16:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376","variant_ids":[43473115250787]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129853-OO131","featured_media":{"alt":null,"id":27660173148259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71a4da414b96b0b6ee3b8aaff5e2d3a17f402772.webp?v=1782980376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115349091,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01298O8-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155302674531,"product_id":7823795781731,"position":3,"created_at":"2026-07-02T16:19:32+08:00","updated_at":"2026-07-02T16:19:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374","variant_ids":[43473115349091]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298O8-OO131","featured_media":{"alt":null,"id":27660172460131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c321477ed7e496a76743bf20b1fca667aedae3e.webp?v=1782980374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43473115381859,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"NST01298Z7-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155302871139,"product_id":7823795781731,"position":4,"created_at":"2026-07-02T16:19:32+08:00","updated_at":"2026-07-02T16:19:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375","variant_ids":[43473115381859]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01298Z7-OO131","featured_media":{"alt":null,"id":27660172656739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e889469edb03e4af219f8e9d82839a7154ec72f3.webp?v=1782980375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43494136709219,"title":"Blush Pink","option1":"Blush Pink","option2":null,"option3":null,"sku":"NST0129857-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155304280163,"product_id":7823795781731,"position":7,"created_at":"2026-07-02T16:19:34+08:00","updated_at":"2026-07-02T16:19:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376","variant_ids":[43494136709219]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Blush Pink","public_title":"Blush Pink","options":["Blush Pink"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129857-OO131","featured_media":{"alt":null,"id":27660174065763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5903f54ff5f266a8fe85aefc057eb2dfd8567ee.webp?v=1782980376"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43473111646307,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129852-OO131","requires_shipping":true,"taxable":true,"featured_image":{"id":36155304575075,"product_id":7823795781731,"position":8,"created_at":"2026-07-02T16:19:35+08:00","updated_at":"2026-07-02T16:19:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377","variant_ids":[43473111646307]},"available":true,"name":"iPhone 15 Pro Max SolidX Harry Potter 哈利生日快樂! - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129852-OO131","featured_media":{"alt":null,"id":27660174393443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00636f7e88f97b359db73dcf63224660685f9bc1.webp?v=1782980377"}},"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: "停產"
}