Home
›
犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐)
$product = {"id":7407653552227,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐)","handle":"iphone-14-pro-mod-nx-printable-af04","description":null,"published_at":"2024-06-11T16:21:34+08:00","created_at":"2024-05-03T10:37:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41877239234659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470162280547,"product_id":7407653552227,"position":7,"created_at":"2024-05-03T10:38:09+08:00","updated_at":"2024-05-03T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889","variant_ids":[41877239234659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-AF04","featured_media":{"alt":null,"id":23875065118819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877239431267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470163886179,"product_id":7407653552227,"position":10,"created_at":"2024-05-03T10:38:17+08:00","updated_at":"2024-05-03T10:38:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897","variant_ids":[41877239431267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-AF04","featured_media":{"alt":null,"id":23875066789987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877240086627,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470161723491,"product_id":7407653552227,"position":6,"created_at":"2024-05-03T10:38:06+08:00","updated_at":"2024-05-03T10:38:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886","variant_ids":[41877240086627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-AF04","featured_media":{"alt":null,"id":23875064594531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524c3eeeaf8fa633baa0b3c1b2f19e559e12185c_67bda93f-fed0-4602-a81b-55bfc525b4bb.webp?v=1714703874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d2719387ae64a729b39d01012d387d99ae0dc_ae4a2931-7809-498a-972e-4f80fd788fad.webp?v=1714703876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d358f06663483f49c582e3fa2181cdb36f83d15_b37b54ac-3f6c-41f2-8fb4-e57c456f9210.webp?v=1714703878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752f2cea415353660eb4aa6a6d1659f1cb2adeb5_a20de6f9-5bf7-4f01-87ea-99ec127c5879.webp?v=1714703881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06991e1b620adfc0f068a585b73cb08c50998281_b8d709a6-bcd3-42fd-b99e-0513abdaf7ae.webp?v=1714703883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa8327a6c42623f0489298d4aa50eefc30310d2_e1172e55-b006-4023-814b-790fcdcbe8ff.webp?v=1714703891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f5ffb9c90d50556e2626e77c2c8f6142262fe1_b4276992-57e3-4241-ada1-b343c80e44e5.webp?v=1714703894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524c3eeeaf8fa633baa0b3c1b2f19e559e12185c_67bda93f-fed0-4602-a81b-55bfc525b4bb.webp?v=1714703874","options":["color"],"media":[{"alt":null,"id":23875061022819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524c3eeeaf8fa633baa0b3c1b2f19e559e12185c_67bda93f-fed0-4602-a81b-55bfc525b4bb.webp?v=1714703874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/524c3eeeaf8fa633baa0b3c1b2f19e559e12185c_67bda93f-fed0-4602-a81b-55bfc525b4bb.webp?v=1714703874","width":2000},{"alt":null,"id":23875061743715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d2719387ae64a729b39d01012d387d99ae0dc_ae4a2931-7809-498a-972e-4f80fd788fad.webp?v=1714703876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d2719387ae64a729b39d01012d387d99ae0dc_ae4a2931-7809-498a-972e-4f80fd788fad.webp?v=1714703876","width":2000},{"alt":null,"id":23875062300771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d358f06663483f49c582e3fa2181cdb36f83d15_b37b54ac-3f6c-41f2-8fb4-e57c456f9210.webp?v=1714703878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d358f06663483f49c582e3fa2181cdb36f83d15_b37b54ac-3f6c-41f2-8fb4-e57c456f9210.webp?v=1714703878","width":2000},{"alt":null,"id":23875063251043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752f2cea415353660eb4aa6a6d1659f1cb2adeb5_a20de6f9-5bf7-4f01-87ea-99ec127c5879.webp?v=1714703881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752f2cea415353660eb4aa6a6d1659f1cb2adeb5_a20de6f9-5bf7-4f01-87ea-99ec127c5879.webp?v=1714703881","width":2000},{"alt":null,"id":23875063709795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06991e1b620adfc0f068a585b73cb08c50998281_b8d709a6-bcd3-42fd-b99e-0513abdaf7ae.webp?v=1714703883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06991e1b620adfc0f068a585b73cb08c50998281_b8d709a6-bcd3-42fd-b99e-0513abdaf7ae.webp?v=1714703883","width":2000},{"alt":null,"id":23875064594531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886","width":2000},{"alt":null,"id":23875065118819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889","width":2000},{"alt":null,"id":23875065413731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa8327a6c42623f0489298d4aa50eefc30310d2_e1172e55-b006-4023-814b-790fcdcbe8ff.webp?v=1714703891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfa8327a6c42623f0489298d4aa50eefc30310d2_e1172e55-b006-4023-814b-790fcdcbe8ff.webp?v=1714703891","width":2000},{"alt":null,"id":23875066232931,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f5ffb9c90d50556e2626e77c2c8f6142262fe1_b4276992-57e3-4241-ada1-b343c80e44e5.webp?v=1714703894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98f5ffb9c90d50556e2626e77c2c8f6142262fe1_b4276992-57e3-4241-ada1-b343c80e44e5.webp?v=1714703894","width":2000},{"alt":null,"id":23875066789987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41877239234659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470162280547,"product_id":7407653552227,"position":7,"created_at":"2024-05-03T10:38:09+08:00","updated_at":"2024-05-03T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889","variant_ids":[41877239234659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-AF04","featured_media":{"alt":null,"id":23875065118819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877239431267,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470163886179,"product_id":7407653552227,"position":10,"created_at":"2024-05-03T10:38:17+08:00","updated_at":"2024-05-03T10:38:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897","variant_ids":[41877239431267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-AF04","featured_media":{"alt":null,"id":23875066789987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/146e8af827cabe8c01ccff8ce2f7635aa83512ca_d6345e9f-b268-4cbf-8ebb-d6efa12f0f18.webp?v=1714703897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877240086627,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470161723491,"product_id":7407653552227,"position":6,"created_at":"2024-05-03T10:38:06+08:00","updated_at":"2024-05-03T10:38:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886","variant_ids":[41877240086627]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-AF04","featured_media":{"alt":null,"id":23875064594531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d20a9b0b28403533cdce05f954bc1aa580d8cc7_03ae8ef8-7954-4ff9-be19-17b09796f815.webp?v=1714703886"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877239234659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-AF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470162280547,"product_id":7407653552227,"position":7,"created_at":"2024-05-03T10:38:09+08:00","updated_at":"2024-05-03T10:38:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889","variant_ids":[41877239234659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Look - 願傷疤 有天開出花(泰國林地濫伐) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-AF04","featured_media":{"alt":null,"id":23875065118819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabcae833827221920e6d75f80220fee82f8f1e3_6d69804b-a253-41bd-a3e0-91bcd2f85e2d.webp?v=1714703889"}},"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: "停產"
}