$product = {"id":7407786426467,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-14-pro-mod-nx-printable-pb51","description":null,"published_at":"2024-06-11T16:23:10+08:00","created_at":"2024-05-03T10:51:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41878823960675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470382579811,"product_id":7407786426467,"position":5,"created_at":"2024-05-03T10:51:45+08:00","updated_at":"2024-05-03T10:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705","variant_ids":[41878823960675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB51","featured_media":{"alt":null,"id":23875285778531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878824026211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470385102947,"product_id":7407786426467,"position":10,"created_at":"2024-05-03T10:51:56+08:00","updated_at":"2024-05-03T10:51:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716","variant_ids":[41878824026211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB51","featured_media":{"alt":null,"id":23875288367203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878824255587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470381989987,"product_id":7407786426467,"position":4,"created_at":"2024-05-03T10:51:42+08:00","updated_at":"2024-05-03T10:51:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702","variant_ids":[41878824255587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB51","featured_media":{"alt":null,"id":23875285188707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f9cd9f933923b57cf39a167fbf118f62c3bd24_7b14c484-40e1-45bc-88e2-bc6e5ab3bd43.webp?v=1714704695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80f36e4e1d6500ad8a2a4684cfb6201edf6cbb3_772d1cf7-170d-40fb-9ab4-0351f27469f9.webp?v=1714704697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8f9f36a9fb0823ed036f8797a3e5e0a24545113_9cb6c182-bd7a-49a4-8a1b-80924bb74c6d.webp?v=1714704700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b7c899e800ed664090d5bd3a123efa81800bbd_27713b3f-8144-4b34-8721-7f9a8707af42.webp?v=1714704707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95ae690449462a29d1898bdd492ae31181bfd92_7d17cfc6-fd3d-4b02-afbd-49a53ec7b7ba.webp?v=1714704709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60518104bdd0b51cc1b032bb97165e6c7d3f360f_1a886e00-fc48-4799-9cf9-da668b5c00a3.webp?v=1714704712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9ed62fff82f662a4d342a69526b29a5d6faae9_10372a90-35f4-4baf-a71d-fdfb4114f1f7.webp?v=1714704714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f9cd9f933923b57cf39a167fbf118f62c3bd24_7b14c484-40e1-45bc-88e2-bc6e5ab3bd43.webp?v=1714704695","options":["color"],"media":[{"alt":null,"id":23875283058787,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f9cd9f933923b57cf39a167fbf118f62c3bd24_7b14c484-40e1-45bc-88e2-bc6e5ab3bd43.webp?v=1714704695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0f9cd9f933923b57cf39a167fbf118f62c3bd24_7b14c484-40e1-45bc-88e2-bc6e5ab3bd43.webp?v=1714704695","width":2000},{"alt":null,"id":23875283583075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80f36e4e1d6500ad8a2a4684cfb6201edf6cbb3_772d1cf7-170d-40fb-9ab4-0351f27469f9.webp?v=1714704697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b80f36e4e1d6500ad8a2a4684cfb6201edf6cbb3_772d1cf7-170d-40fb-9ab4-0351f27469f9.webp?v=1714704697","width":2000},{"alt":null,"id":23875284107363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8f9f36a9fb0823ed036f8797a3e5e0a24545113_9cb6c182-bd7a-49a4-8a1b-80924bb74c6d.webp?v=1714704700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8f9f36a9fb0823ed036f8797a3e5e0a24545113_9cb6c182-bd7a-49a4-8a1b-80924bb74c6d.webp?v=1714704700","width":2000},{"alt":null,"id":23875285188707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702","width":2000},{"alt":null,"id":23875285778531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705","width":2000},{"alt":null,"id":23875286171747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b7c899e800ed664090d5bd3a123efa81800bbd_27713b3f-8144-4b34-8721-7f9a8707af42.webp?v=1714704707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2b7c899e800ed664090d5bd3a123efa81800bbd_27713b3f-8144-4b34-8721-7f9a8707af42.webp?v=1714704707","width":2000},{"alt":null,"id":23875286827107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95ae690449462a29d1898bdd492ae31181bfd92_7d17cfc6-fd3d-4b02-afbd-49a53ec7b7ba.webp?v=1714704709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c95ae690449462a29d1898bdd492ae31181bfd92_7d17cfc6-fd3d-4b02-afbd-49a53ec7b7ba.webp?v=1714704709","width":2000},{"alt":null,"id":23875287416931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60518104bdd0b51cc1b032bb97165e6c7d3f360f_1a886e00-fc48-4799-9cf9-da668b5c00a3.webp?v=1714704712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60518104bdd0b51cc1b032bb97165e6c7d3f360f_1a886e00-fc48-4799-9cf9-da668b5c00a3.webp?v=1714704712","width":2000},{"alt":null,"id":23875287973987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9ed62fff82f662a4d342a69526b29a5d6faae9_10372a90-35f4-4baf-a71d-fdfb4114f1f7.webp?v=1714704714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9ed62fff82f662a4d342a69526b29a5d6faae9_10372a90-35f4-4baf-a71d-fdfb4114f1f7.webp?v=1714704714","width":2000},{"alt":null,"id":23875288367203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41878823960675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470382579811,"product_id":7407786426467,"position":5,"created_at":"2024-05-03T10:51:45+08:00","updated_at":"2024-05-03T10:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705","variant_ids":[41878823960675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB51","featured_media":{"alt":null,"id":23875285778531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878824026211,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470385102947,"product_id":7407786426467,"position":10,"created_at":"2024-05-03T10:51:56+08:00","updated_at":"2024-05-03T10:51:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716","variant_ids":[41878824026211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-PB51","featured_media":{"alt":null,"id":23875288367203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b740e4be30229e2fe5b17ab3f6b8d6e3b5bebc2_553d8716-e4cd-407d-b867-980424f2b793.webp?v=1714704716"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41878824255587,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470381989987,"product_id":7407786426467,"position":4,"created_at":"2024-05-03T10:51:42+08:00","updated_at":"2024-05-03T10:51:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702","variant_ids":[41878824255587]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-PB51","featured_media":{"alt":null,"id":23875285188707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f7785f5c91c4a84fbfc6c6c3f5f0c648ba6385_4ca63b01-4956-49dc-b89e-9a283f7c1740.webp?v=1714704702"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41878823960675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470382579811,"product_id":7407786426467,"position":5,"created_at":"2024-05-03T10:51:45+08:00","updated_at":"2024-05-03T10:51:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705","variant_ids":[41878823960675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-PB51","featured_media":{"alt":null,"id":23875285778531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f7f6e2d65f0aae089b1f3a21271c88857de90f3_8dbb73ed-36e8-468a-9a72-53e9f7402e3d.webp?v=1714704705"}},"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: "停產"
}