Home
›
犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐)
$product = {"id":7411284738147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐)","handle":"iphone-14-pro-mod-nx-magsafe-printable-af04","description":null,"published_at":"2024-06-11T17:40:48+08:00","created_at":"2024-05-05T00:00:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41896958591075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480046387299,"product_id":7411284738147,"position":5,"created_at":"2024-05-05T00:00:21+08:00","updated_at":"2024-05-05T00:00:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421","variant_ids":[41896958591075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF04","featured_media":{"alt":null,"id":23885297123427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896958722147,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480046026851,"product_id":7411284738147,"position":4,"created_at":"2024-05-05T00:00:19+08:00","updated_at":"2024-05-05T00:00:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419","variant_ids":[41896958722147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF04","featured_media":{"alt":null,"id":23885296697443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896959049827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480048877667,"product_id":7411284738147,"position":10,"created_at":"2024-05-05T00:00:33+08:00","updated_at":"2024-05-05T00:00:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433","variant_ids":[41896959049827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF04","featured_media":{"alt":null,"id":23885299548259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50cbb4e20e0d8358912e4d9f91863a1a016c2b67_ef1477e9-f777-41b1-80c5-4c50b01f8742.webp?v=1714838410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cca5686850648ee441c0e37a56fa1c5b269ebc_04855663-170d-4564-8c79-fca47bfd4175.webp?v=1714838414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b99cd225d018b82103087b128f2fffe189bc14_47d01108-9738-4bce-855b-20098e940611.webp?v=1714838416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721acd0cb889661b5e6dfbfbd78f7cd56f9ce3c_80e52c4c-0c46-4f2f-b20c-4046ebaca28b.webp?v=1714838423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675b41202710f6fa6f01cb30831b8defb4d34c1c_5d268a29-1136-4871-a3ac-c6d5c34dd01c.webp?v=1714838426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0903b2e7859a204cf6f3d9d08ae90ad331879ee0_e3a630d7-2dbf-4733-a5af-b2247f719421.webp?v=1714838428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c899e25d673e83d0f59f05cffb7584f4c329bb75_4ec022d4-7cb5-4b4f-9bc0-bcece40c72c7.webp?v=1714838431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50cbb4e20e0d8358912e4d9f91863a1a016c2b67_ef1477e9-f777-41b1-80c5-4c50b01f8742.webp?v=1714838410","options":["color"],"media":[{"alt":null,"id":23885294993507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50cbb4e20e0d8358912e4d9f91863a1a016c2b67_ef1477e9-f777-41b1-80c5-4c50b01f8742.webp?v=1714838410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50cbb4e20e0d8358912e4d9f91863a1a016c2b67_ef1477e9-f777-41b1-80c5-4c50b01f8742.webp?v=1714838410","width":2000},{"alt":null,"id":23885295747171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cca5686850648ee441c0e37a56fa1c5b269ebc_04855663-170d-4564-8c79-fca47bfd4175.webp?v=1714838414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cca5686850648ee441c0e37a56fa1c5b269ebc_04855663-170d-4564-8c79-fca47bfd4175.webp?v=1714838414","width":2000},{"alt":null,"id":23885296173155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b99cd225d018b82103087b128f2fffe189bc14_47d01108-9738-4bce-855b-20098e940611.webp?v=1714838416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45b99cd225d018b82103087b128f2fffe189bc14_47d01108-9738-4bce-855b-20098e940611.webp?v=1714838416","width":2000},{"alt":null,"id":23885296697443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419","width":2000},{"alt":null,"id":23885297123427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421","width":2000},{"alt":null,"id":23885297549411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721acd0cb889661b5e6dfbfbd78f7cd56f9ce3c_80e52c4c-0c46-4f2f-b20c-4046ebaca28b.webp?v=1714838423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2721acd0cb889661b5e6dfbfbd78f7cd56f9ce3c_80e52c4c-0c46-4f2f-b20c-4046ebaca28b.webp?v=1714838423","width":2000},{"alt":null,"id":23885297877091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675b41202710f6fa6f01cb30831b8defb4d34c1c_5d268a29-1136-4871-a3ac-c6d5c34dd01c.webp?v=1714838426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/675b41202710f6fa6f01cb30831b8defb4d34c1c_5d268a29-1136-4871-a3ac-c6d5c34dd01c.webp?v=1714838426","width":2000},{"alt":null,"id":23885298597987,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0903b2e7859a204cf6f3d9d08ae90ad331879ee0_e3a630d7-2dbf-4733-a5af-b2247f719421.webp?v=1714838428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0903b2e7859a204cf6f3d9d08ae90ad331879ee0_e3a630d7-2dbf-4733-a5af-b2247f719421.webp?v=1714838428","width":2000},{"alt":null,"id":23885299023971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c899e25d673e83d0f59f05cffb7584f4c329bb75_4ec022d4-7cb5-4b4f-9bc0-bcece40c72c7.webp?v=1714838431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c899e25d673e83d0f59f05cffb7584f4c329bb75_4ec022d4-7cb5-4b4f-9bc0-bcece40c72c7.webp?v=1714838431","width":2000},{"alt":null,"id":23885299548259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896958591075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480046387299,"product_id":7411284738147,"position":5,"created_at":"2024-05-05T00:00:21+08:00","updated_at":"2024-05-05T00:00:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421","variant_ids":[41896958591075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF04","featured_media":{"alt":null,"id":23885297123427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896958722147,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480046026851,"product_id":7411284738147,"position":4,"created_at":"2024-05-05T00:00:19+08:00","updated_at":"2024-05-05T00:00:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419","variant_ids":[41896958722147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-AF04","featured_media":{"alt":null,"id":23885296697443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8deda8df2071c9612b093148fc628bd1425986_8bfeddaf-ac6c-4c91-87c5-e70dfe517cd4.webp?v=1714838419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896959049827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480048877667,"product_id":7411284738147,"position":10,"created_at":"2024-05-05T00:00:33+08:00","updated_at":"2024-05-05T00:00:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433","variant_ids":[41896959049827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-AF04","featured_media":{"alt":null,"id":23885299548259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ae02de6aa48e1d3a9770be177561e5ffbe126e8_c639ca96-7fb8-49d3-85e4-6264aaf2a21f.webp?v=1714838433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896958591075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31480046387299,"product_id":7411284738147,"position":5,"created_at":"2024-05-05T00:00:21+08:00","updated_at":"2024-05-05T00:00:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421","variant_ids":[41896958591075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-AF04","featured_media":{"alt":null,"id":23885297123427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7954eb0d30e35a750cbacde86186d7b18aa20b3_dd70045a-f94f-41c1-b210-cfb64111c026.webp?v=1714838421"}},"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: "停產"
}