$product = {"id":7824499310691,"title":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸","handle":"iphone-15-plus-solidx-xf07","description":null,"published_at":"2025-07-01T17:40:49+08:00","created_at":"2025-06-20T18:03:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 15 Plus","merge","reseller-ilovedoodle"],"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":43479791468643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-XF07","requires_shipping":true,"taxable":true,"featured_image":{"id":35581473423459,"product_id":7824499310691,"position":11,"created_at":"2026-04-02T14:42:25+08:00","updated_at":"2026-04-02T14:42:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147","variant_ids":[43479791468643]},"available":true,"name":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-XF07","featured_media":{"alt":null,"id":27114093543523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479794712675,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-XF07","requires_shipping":true,"taxable":true,"featured_image":{"id":35581474701411,"product_id":7824499310691,"position":17,"created_at":"2026-04-02T14:42:28+08:00","updated_at":"2026-04-02T14:42:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150","variant_ids":[43479794712675]},"available":true,"name":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-XF07","featured_media":{"alt":null,"id":27114094821475,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-XF07.png?v=1750413814","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF07_8536360d-adf1-4171-9a15-b7d4f69e9b88.png?v=1750821029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240.webp?v=1774940006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1.webp?v=1774940007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050.webp?v=1774940007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106.webp?v=1774940009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49.webp?v=1774940010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e.webp?v=1774940011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8.webp?v=1774940012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7.webp?v=1774940013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49_e9cd7e85-b11d-4e02-9596-22e1fabd9a7c.webp?v=1775112148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240_1790ca6a-7a74-49ee-9c26-c29615e1ee06.webp?v=1775112148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8_f312e675-1dbc-4814-9373-86fce562d09f.webp?v=1775112149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1_b20d0252-18c6-46cc-bd36-1ba3f3bb6d1d.webp?v=1775112149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050_c264b1e2-babd-4d06-ba99-90e752ce87e7.webp?v=1775112150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106_fc1add5f-b3cf-4153-b056-3efded1bda24.webp?v=1775112151"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-XF07.png?v=1750413814","options":["color"],"media":[{"alt":null,"id":25722158612579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-XF07.png?v=1750413814"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-XF07.png?v=1750413814","width":2000},{"alt":null,"id":25735215612003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF07_8536360d-adf1-4171-9a15-b7d4f69e9b88.png?v=1750821029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-XF07_8536360d-adf1-4171-9a15-b7d4f69e9b88.png?v=1750821029","width":2000},{"alt":null,"id":27102435639395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240.webp?v=1774940006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240.webp?v=1774940006","width":2000},{"alt":null,"id":27102435868771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1.webp?v=1774940007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1.webp?v=1774940007","width":2000},{"alt":null,"id":27102436130915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050.webp?v=1774940007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050.webp?v=1774940007","width":2000},{"alt":null,"id":27102436458595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106.webp?v=1774940009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106.webp?v=1774940009","width":2000},{"alt":null,"id":27102436851811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49.webp?v=1774940010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49.webp?v=1774940010","width":2000},{"alt":null,"id":27102437048419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e.webp?v=1774940011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e.webp?v=1774940011","width":2000},{"alt":null,"id":27102437146723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8.webp?v=1774940012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8.webp?v=1774940012","width":2000},{"alt":null,"id":27102437310563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7.webp?v=1774940013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7.webp?v=1774940013","width":2000},{"alt":null,"id":27114093543523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147","width":2000},{"alt":null,"id":27114093772899,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49_e9cd7e85-b11d-4e02-9596-22e1fabd9a7c.webp?v=1775112148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af71bee48e3b1611313e1574686c35173d108d49_e9cd7e85-b11d-4e02-9596-22e1fabd9a7c.webp?v=1775112148","width":2000},{"alt":null,"id":27114093969507,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240_1790ca6a-7a74-49ee-9c26-c29615e1ee06.webp?v=1775112148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e87eb075bf8797c09c3c24601d5aa9a0b23d7240_1790ca6a-7a74-49ee-9c26-c29615e1ee06.webp?v=1775112148","width":2000},{"alt":null,"id":27114094133347,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8_f312e675-1dbc-4814-9373-86fce562d09f.webp?v=1775112149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/727af95cdb8e31b83ae0e1268762f2159d4e0ee8_f312e675-1dbc-4814-9373-86fce562d09f.webp?v=1775112149","width":2000},{"alt":null,"id":27114094395491,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1_b20d0252-18c6-46cc-bd36-1ba3f3bb6d1d.webp?v=1775112149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e371aa12afe3379da6875f3473f189a8cfce3a1_b20d0252-18c6-46cc-bd36-1ba3f3bb6d1d.webp?v=1775112149","width":2000},{"alt":null,"id":27114094592099,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050_c264b1e2-babd-4d06-ba99-90e752ce87e7.webp?v=1775112150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ea7d9680b672704dd5c149092e8db16a783c050_c264b1e2-babd-4d06-ba99-90e752ce87e7.webp?v=1775112150","width":2000},{"alt":null,"id":27114094821475,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150","width":2000},{"alt":null,"id":27114095050851,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106_fc1add5f-b3cf-4153-b056-3efded1bda24.webp?v=1775112151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5bed09a197d2ae9513392b6f71aba391ed7106_fc1add5f-b3cf-4153-b056-3efded1bda24.webp?v=1775112151","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43479791468643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-XF07","requires_shipping":true,"taxable":true,"featured_image":{"id":35581473423459,"product_id":7824499310691,"position":11,"created_at":"2026-04-02T14:42:25+08:00","updated_at":"2026-04-02T14:42:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147","variant_ids":[43479791468643]},"available":true,"name":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-XF07","featured_media":{"alt":null,"id":27114093543523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479794712675,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-XF07","requires_shipping":true,"taxable":true,"featured_image":{"id":35581474701411,"product_id":7824499310691,"position":17,"created_at":"2026-04-02T14:42:28+08:00","updated_at":"2026-04-02T14:42:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150","variant_ids":[43479794712675]},"available":true,"name":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-XF07","featured_media":{"alt":null,"id":27114094821475,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680ba5e5366c94d73278d38520d0e43d69c8bf4e_0d818dbc-8332-4444-a3f2-b644beb3f552.webp?v=1775112150"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43479791468643,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-XF07","requires_shipping":true,"taxable":true,"featured_image":{"id":35581473423459,"product_id":7824499310691,"position":11,"created_at":"2026-04-02T14:42:25+08:00","updated_at":"2026-04-02T14:42:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147","variant_ids":[43479791468643]},"available":true,"name":"iPhone 15 Plus SolidX ilovedoodle Dam IT 海狸 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-XF07","featured_media":{"alt":null,"id":27114093543523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b153085667cb65eaded2b7e1bfb78f51006b4a7_27dfb475-25f2-4e77-bbb2-cd486aa08f4a.webp?v=1775112147"}},"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: "停產"
}