$product = {"id":7413982593123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb54","description":null,"published_at":"2024-06-11T17:46:50+08:00","created_at":"2024-05-05T13:55:10+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":41902979973219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388311139,"product_id":7413982593123,"position":9,"created_at":"2024-05-05T13:55:30+08:00","updated_at":"2024-05-05T13:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530","variant_ids":[41902979973219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889682268259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902980038755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387688547,"product_id":7413982593123,"position":8,"created_at":"2024-05-05T13:55:28+08:00","updated_at":"2024-05-05T13:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528","variant_ids":[41902980038755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889681612899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902980268131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387393635,"product_id":7413982593123,"position":7,"created_at":"2024-05-05T13:55:26+08:00","updated_at":"2024-05-05T13:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526","variant_ids":[41902980268131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889681383523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca129476a1a79af5d77faaa10d9ada8d72a7224a_387c4543-1307-4b52-a63c-28f0b9275c59.webp?v=1714888512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7612bf61732603ba459764de938c57e4d35239_6d6fe081-0814-46a4-a801-c6b198047cc2.webp?v=1714888515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f15aca047065bef0d2453a66b8990afbedb54b6_f71c91c9-8555-4696-b2b2-0b329a5af062.webp?v=1714888517","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb543c74df4edd214d4a7584fd1a9740380cc77_d569fda4-e160-4773-b8de-e51d7bb5f9ee.webp?v=1714888519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8606ad23b566bcca5f041c577b441782b59bd4fc_08a87a3e-712a-4844-a244-d0666139753c.webp?v=1714888521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6034a9387d4db590f92fc37d1bce477bb757dddc_da10a260-426b-4b39-8a8d-8057957dc8d3.webp?v=1714888524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cc922c3849411db34fc13c64ae83a1b4f31253_ce15bd8c-673a-4589-a462-e23775b95e23.webp?v=1714888532"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca129476a1a79af5d77faaa10d9ada8d72a7224a_387c4543-1307-4b52-a63c-28f0b9275c59.webp?v=1714888512","options":["color"],"media":[{"alt":null,"id":23889678598243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca129476a1a79af5d77faaa10d9ada8d72a7224a_387c4543-1307-4b52-a63c-28f0b9275c59.webp?v=1714888512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca129476a1a79af5d77faaa10d9ada8d72a7224a_387c4543-1307-4b52-a63c-28f0b9275c59.webp?v=1714888512","width":2000},{"alt":null,"id":23889679122531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7612bf61732603ba459764de938c57e4d35239_6d6fe081-0814-46a4-a801-c6b198047cc2.webp?v=1714888515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7612bf61732603ba459764de938c57e4d35239_6d6fe081-0814-46a4-a801-c6b198047cc2.webp?v=1714888515","width":2000},{"alt":null,"id":23889679581283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f15aca047065bef0d2453a66b8990afbedb54b6_f71c91c9-8555-4696-b2b2-0b329a5af062.webp?v=1714888517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f15aca047065bef0d2453a66b8990afbedb54b6_f71c91c9-8555-4696-b2b2-0b329a5af062.webp?v=1714888517","width":2000},{"alt":null,"id":23889680072803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb543c74df4edd214d4a7584fd1a9740380cc77_d569fda4-e160-4773-b8de-e51d7bb5f9ee.webp?v=1714888519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fb543c74df4edd214d4a7584fd1a9740380cc77_d569fda4-e160-4773-b8de-e51d7bb5f9ee.webp?v=1714888519","width":2000},{"alt":null,"id":23889680531555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8606ad23b566bcca5f041c577b441782b59bd4fc_08a87a3e-712a-4844-a244-d0666139753c.webp?v=1714888521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8606ad23b566bcca5f041c577b441782b59bd4fc_08a87a3e-712a-4844-a244-d0666139753c.webp?v=1714888521","width":2000},{"alt":null,"id":23889680957539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6034a9387d4db590f92fc37d1bce477bb757dddc_da10a260-426b-4b39-8a8d-8057957dc8d3.webp?v=1714888524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6034a9387d4db590f92fc37d1bce477bb757dddc_da10a260-426b-4b39-8a8d-8057957dc8d3.webp?v=1714888524","width":2000},{"alt":null,"id":23889681383523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526","width":2000},{"alt":null,"id":23889681612899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528","width":2000},{"alt":null,"id":23889682268259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530","width":2000},{"alt":null,"id":23889682530403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cc922c3849411db34fc13c64ae83a1b4f31253_ce15bd8c-673a-4589-a462-e23775b95e23.webp?v=1714888532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cc922c3849411db34fc13c64ae83a1b4f31253_ce15bd8c-673a-4589-a462-e23775b95e23.webp?v=1714888532","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902979973219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388311139,"product_id":7413982593123,"position":9,"created_at":"2024-05-05T13:55:30+08:00","updated_at":"2024-05-05T13:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530","variant_ids":[41902979973219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889682268259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902980038755,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387688547,"product_id":7413982593123,"position":8,"created_at":"2024-05-05T13:55:28+08:00","updated_at":"2024-05-05T13:55:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528","variant_ids":[41902980038755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889681612899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cef97c512d91ead33802f282d2dfe862a6c3876_6997f2d6-8126-4a68-a272-dfb5240f2960.webp?v=1714888528"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902980268131,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484387393635,"product_id":7413982593123,"position":7,"created_at":"2024-05-05T13:55:26+08:00","updated_at":"2024-05-05T13:55:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526","variant_ids":[41902980268131]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889681383523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55e4eb15eb219c6fe5d7a0f06d428cff8901dd8_0c252246-d873-4021-9dbb-ec3c86ab11a9.webp?v=1714888526"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902979973219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31484388311139,"product_id":7413982593123,"position":9,"created_at":"2024-05-05T13:55:30+08:00","updated_at":"2024-05-05T13:55:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530","variant_ids":[41902979973219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23889682268259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7243a44b6bb7cddab9efbeb3b523b7f353c9a6_ea4f0c8f-fc2d-4bd9-8424-2f0586426cbb.webp?v=1714888530"}},"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: "停產"
}