$product = {"id":7414335340643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb27","description":null,"published_at":"2024-06-11T17:50:50+08:00","created_at":"2024-05-05T14:22:23+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 13 mini","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":41905804279907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485214916707,"product_id":7414335340643,"position":8,"created_at":"2024-05-05T14:22:42+08:00","updated_at":"2024-05-05T14:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162","variant_ids":[41905804279907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB0122824-PB27","featured_media":{"alt":null,"id":23890531188835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905804345443,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485197975651,"product_id":7414335340643,"position":3,"created_at":"2024-05-05T14:22:30+08:00","updated_at":"2024-05-05T14:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150","variant_ids":[41905804345443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB0122804-PB27","featured_media":{"alt":null,"id":23890514477155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905805131875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485208199267,"product_id":7414335340643,"position":6,"created_at":"2024-05-05T14:22:38+08:00","updated_at":"2024-05-05T14:22:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158","variant_ids":[41905805131875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB01228J5-PB27","featured_media":{"alt":null,"id":23890524635235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27df9427f9c8a7d66270f8fbdaf92643d5ed85f_05f65658-a011-432c-9762-c646deb34b75.webp?v=1714890146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191422ae67d991b3fa215f700db5edc8a008af7a_3ab9c248-ce97-4278-9f8e-6137ac807d44.webp?v=1714890148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978f39e67c8a8fe828546254816f20133a512e8b_7409815b-a2c4-4df9-82b2-41f7a64843eb.webp?v=1714890153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc3746ae6775ada44cdb69e01aa988dbf0e34828_d9004b55-4266-4304-bb7c-27be8189005f.webp?v=1714890155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae89bdfa90324950f62f8b84b365b8e9e85be9_cfe3224e-fd60-4bb8-904d-45024a8796f5.webp?v=1714890160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f54d880ec5798deddd33dc4ae88a8aa0d494471c_485a6aea-41a3-4498-a117-08401e19614e.webp?v=1714890165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b037b9a3e8f3255be33bf8e6da1d1d17265407e_1bb4981f-63f1-4184-ac03-4f0b9adf1e21.webp?v=1714890167"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27df9427f9c8a7d66270f8fbdaf92643d5ed85f_05f65658-a011-432c-9762-c646deb34b75.webp?v=1714890146","options":["color"],"media":[{"alt":null,"id":23890507432035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27df9427f9c8a7d66270f8fbdaf92643d5ed85f_05f65658-a011-432c-9762-c646deb34b75.webp?v=1714890146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a27df9427f9c8a7d66270f8fbdaf92643d5ed85f_05f65658-a011-432c-9762-c646deb34b75.webp?v=1714890146","width":2000},{"alt":null,"id":23890510970979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191422ae67d991b3fa215f700db5edc8a008af7a_3ab9c248-ce97-4278-9f8e-6137ac807d44.webp?v=1714890148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191422ae67d991b3fa215f700db5edc8a008af7a_3ab9c248-ce97-4278-9f8e-6137ac807d44.webp?v=1714890148","width":2000},{"alt":null,"id":23890514477155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150","width":2000},{"alt":null,"id":23890518016099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978f39e67c8a8fe828546254816f20133a512e8b_7409815b-a2c4-4df9-82b2-41f7a64843eb.webp?v=1714890153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/978f39e67c8a8fe828546254816f20133a512e8b_7409815b-a2c4-4df9-82b2-41f7a64843eb.webp?v=1714890153","width":2000},{"alt":null,"id":23890521358435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc3746ae6775ada44cdb69e01aa988dbf0e34828_d9004b55-4266-4304-bb7c-27be8189005f.webp?v=1714890155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc3746ae6775ada44cdb69e01aa988dbf0e34828_d9004b55-4266-4304-bb7c-27be8189005f.webp?v=1714890155","width":2000},{"alt":null,"id":23890524635235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158","width":2000},{"alt":null,"id":23890528043107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae89bdfa90324950f62f8b84b365b8e9e85be9_cfe3224e-fd60-4bb8-904d-45024a8796f5.webp?v=1714890160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/feae89bdfa90324950f62f8b84b365b8e9e85be9_cfe3224e-fd60-4bb8-904d-45024a8796f5.webp?v=1714890160","width":2000},{"alt":null,"id":23890531188835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162","width":2000},{"alt":null,"id":23890534105187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f54d880ec5798deddd33dc4ae88a8aa0d494471c_485a6aea-41a3-4498-a117-08401e19614e.webp?v=1714890165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f54d880ec5798deddd33dc4ae88a8aa0d494471c_485a6aea-41a3-4498-a117-08401e19614e.webp?v=1714890165","width":2000},{"alt":null,"id":23890537381987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b037b9a3e8f3255be33bf8e6da1d1d17265407e_1bb4981f-63f1-4184-ac03-4f0b9adf1e21.webp?v=1714890167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b037b9a3e8f3255be33bf8e6da1d1d17265407e_1bb4981f-63f1-4184-ac03-4f0b9adf1e21.webp?v=1714890167","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41905804279907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485214916707,"product_id":7414335340643,"position":8,"created_at":"2024-05-05T14:22:42+08:00","updated_at":"2024-05-05T14:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162","variant_ids":[41905804279907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB0122824-PB27","featured_media":{"alt":null,"id":23890531188835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905804345443,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485197975651,"product_id":7414335340643,"position":3,"created_at":"2024-05-05T14:22:30+08:00","updated_at":"2024-05-05T14:22:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150","variant_ids":[41905804345443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB0122804-PB27","featured_media":{"alt":null,"id":23890514477155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7fd3bea12d621531ea16fa3d0fd487294b91c2_ea693ace-60fa-4860-b6a9-0d29a701e1a8.webp?v=1714890150"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905805131875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485208199267,"product_id":7414335340643,"position":6,"created_at":"2024-05-05T14:22:38+08:00","updated_at":"2024-05-05T14:22:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158","variant_ids":[41905805131875]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB01228J5-PB27","featured_media":{"alt":null,"id":23890524635235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd02984e25c450f10539b0b8cd942a5bd1bc1977_d45ab397-39c9-4db9-99f8-ed7bff28fa99.webp?v=1714890158"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905804279907,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB27","requires_shipping":true,"taxable":true,"featured_image":{"id":31485214916707,"product_id":7414335340643,"position":8,"created_at":"2024-05-05T14:22:42+08:00","updated_at":"2024-05-05T14:22:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162","variant_ids":[41905804279907]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP千年鷹 - 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":"MPB0122824-PB27","featured_media":{"alt":null,"id":23890531188835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b12f9a04d607d327aaa085968e33c8deb0901e0_4aae59b6-dd65-45b3-9903-17b310e2ba0d.webp?v=1714890162"}},"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: "停產"
}