$product = {"id":7407990833251,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-剪紙系列","handle":"iphone-14-pro-mod-nx-printable-pb56","description":null,"published_at":"2024-06-11T16:28:30+08:00","created_at":"2024-05-03T11:30:19+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":41881457819747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470894841955,"product_id":7407990833251,"position":5,"created_at":"2024-05-03T11:30:32+08:00","updated_at":"2024-05-03T11:30:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032","variant_ids":[41881457819747]},"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-PB56","featured_media":{"alt":null,"id":23875799482467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881457885283,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470896906339,"product_id":7407990833251,"position":9,"created_at":"2024-05-03T11:30:42+08:00","updated_at":"2024-05-03T11:30:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042","variant_ids":[41881457885283]},"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-PB56","featured_media":{"alt":null,"id":23875801546851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881458114659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470893498467,"product_id":7407990833251,"position":2,"created_at":"2024-05-03T11:30:24+08:00","updated_at":"2024-05-03T11:30:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025","variant_ids":[41881458114659]},"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-PB56","featured_media":{"alt":null,"id":23875798171747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e309f7da09ab8ec857d5697ec32eecc895e2bd_987c865c-886e-4fce-acf1-c6193f6a0aaf.webp?v=1714707022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56caf7085fd60d2b9802176cedbd5abb2c70400_dd8f52a1-d7c1-4887-aefb-176cb919f4a5.webp?v=1714707027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd000ff981f3275b71691fd8d0c33d0b34a1a8_0b0e042b-6411-441b-a4a3-64111a60194d.webp?v=1714707029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156629c7fb080df9df4fa3046fd0df6048b00b5_c6f4c905-d57b-4bd5-877e-52a1f728b180.webp?v=1714707034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035d75c7564dc67156acfd09757a4b53afe12d36_39d8b8ca-fdc9-47ac-8d74-12f0da726b38.webp?v=1714707037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f7fba00f5e3aa5e415debf9de9ca361f2d5ecd_1bfffb35-6975-4e6b-acae-74b6678d0413.webp?v=1714707039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5836dd3e35c122b354950f3916c2401df14c9b_2ec3f687-e712-452f-bf3f-0c5f60d1c7f6.webp?v=1714707044"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e309f7da09ab8ec857d5697ec32eecc895e2bd_987c865c-886e-4fce-acf1-c6193f6a0aaf.webp?v=1714707022","options":["color"],"media":[{"alt":null,"id":23875797647459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e309f7da09ab8ec857d5697ec32eecc895e2bd_987c865c-886e-4fce-acf1-c6193f6a0aaf.webp?v=1714707022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9e309f7da09ab8ec857d5697ec32eecc895e2bd_987c865c-886e-4fce-acf1-c6193f6a0aaf.webp?v=1714707022","width":2000},{"alt":null,"id":23875798171747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025","width":2000},{"alt":null,"id":23875798433891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56caf7085fd60d2b9802176cedbd5abb2c70400_dd8f52a1-d7c1-4887-aefb-176cb919f4a5.webp?v=1714707027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56caf7085fd60d2b9802176cedbd5abb2c70400_dd8f52a1-d7c1-4887-aefb-176cb919f4a5.webp?v=1714707027","width":2000},{"alt":null,"id":23875799089251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd000ff981f3275b71691fd8d0c33d0b34a1a8_0b0e042b-6411-441b-a4a3-64111a60194d.webp?v=1714707029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd000ff981f3275b71691fd8d0c33d0b34a1a8_0b0e042b-6411-441b-a4a3-64111a60194d.webp?v=1714707029","width":2000},{"alt":null,"id":23875799482467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032","width":2000},{"alt":null,"id":23875800105059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156629c7fb080df9df4fa3046fd0df6048b00b5_c6f4c905-d57b-4bd5-877e-52a1f728b180.webp?v=1714707034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e156629c7fb080df9df4fa3046fd0df6048b00b5_c6f4c905-d57b-4bd5-877e-52a1f728b180.webp?v=1714707034","width":2000},{"alt":null,"id":23875800629347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035d75c7564dc67156acfd09757a4b53afe12d36_39d8b8ca-fdc9-47ac-8d74-12f0da726b38.webp?v=1714707037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/035d75c7564dc67156acfd09757a4b53afe12d36_39d8b8ca-fdc9-47ac-8d74-12f0da726b38.webp?v=1714707037","width":2000},{"alt":null,"id":23875801120867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f7fba00f5e3aa5e415debf9de9ca361f2d5ecd_1bfffb35-6975-4e6b-acae-74b6678d0413.webp?v=1714707039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66f7fba00f5e3aa5e415debf9de9ca361f2d5ecd_1bfffb35-6975-4e6b-acae-74b6678d0413.webp?v=1714707039","width":2000},{"alt":null,"id":23875801546851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042","width":2000},{"alt":null,"id":23875801972835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5836dd3e35c122b354950f3916c2401df14c9b_2ec3f687-e712-452f-bf3f-0c5f60d1c7f6.webp?v=1714707044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc5836dd3e35c122b354950f3916c2401df14c9b_2ec3f687-e712-452f-bf3f-0c5f60d1c7f6.webp?v=1714707044","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881457819747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470894841955,"product_id":7407990833251,"position":5,"created_at":"2024-05-03T11:30:32+08:00","updated_at":"2024-05-03T11:30:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032","variant_ids":[41881457819747]},"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-PB56","featured_media":{"alt":null,"id":23875799482467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881457885283,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470896906339,"product_id":7407990833251,"position":9,"created_at":"2024-05-03T11:30:42+08:00","updated_at":"2024-05-03T11:30:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042","variant_ids":[41881457885283]},"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-PB56","featured_media":{"alt":null,"id":23875801546851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944096e55aa6c7d920966748e4845a7eaf6de280_245785d9-9344-4c12-9a2f-e4ba39c4f347.webp?v=1714707042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881458114659,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470893498467,"product_id":7407990833251,"position":2,"created_at":"2024-05-03T11:30:24+08:00","updated_at":"2024-05-03T11:30:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025","variant_ids":[41881458114659]},"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-PB56","featured_media":{"alt":null,"id":23875798171747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f57d47852249eac8d622dad6c7b8cc1d90d1db_d1a1aabe-e727-4364-b65e-882f732a225a.webp?v=1714707025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881457819747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB56","requires_shipping":true,"taxable":true,"featured_image":{"id":31470894841955,"product_id":7407990833251,"position":5,"created_at":"2024-05-03T11:30:32+08:00","updated_at":"2024-05-03T11:30:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032","variant_ids":[41881457819747]},"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-PB56","featured_media":{"alt":null,"id":23875799482467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03a61eb874490e2d52644b885e28dd09a51f8ae0_31184097-b06f-4dbc-b163-4fe47d5d1686.webp?v=1714707032"}},"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: "停產"
}