$product = {"id":7407976251491,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-14-pro-mod-nx-printable-pb64","description":null,"published_at":"2024-06-11T16:28:06+08:00","created_at":"2024-05-03T11:27:11+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":41881278939235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470853816419,"product_id":7407976251491,"position":4,"created_at":"2024-05-03T11:27:20+08:00","updated_at":"2024-05-03T11:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840","variant_ids":[41881278939235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875758358627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881279070307,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470853062755,"product_id":7407976251491,"position":2,"created_at":"2024-05-03T11:27:15+08:00","updated_at":"2024-05-03T11:27:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835","variant_ids":[41881279070307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875757670499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881279299683,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470855848035,"product_id":7407976251491,"position":9,"created_at":"2024-05-03T11:27:31+08:00","updated_at":"2024-05-03T11:27:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851","variant_ids":[41881279299683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875760390243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a64381c19f851f54bf66c837f8c3d5ee733cebbc_97a90d8b-ac06-423f-80bd-258f5d86bdf0.webp?v=1714706833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041dba7975173b6b24128d749f9f396511b5e9bc_63555495-aaca-4e85-9bd8-ff74e9ad835d.webp?v=1714706837","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f5198252e4ecf2703fc0d00fb9d633d5d659b0_6ddef840-ac19-4020-9409-e54b0f87a578.webp?v=1714706842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6381984e957b85f40821b8b80ab9964f8d5ed0b6_944ace4c-2ab4-4072-a318-afe50cb2e63d.webp?v=1714706844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/811c66d3cf6341f45d60063233fb64e71d970078_2ada204b-7ece-471f-b127-5f5abd07aff7.webp?v=1714706846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a063b5602f08fefcaf06c89fef57b0464361f295_455634f9-8e51-4f93-a63d-9a5ce241940a.webp?v=1714706849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2024c40c9c82e99fdd01ff397c8cf284b80c3_7c37718c-3569-4627-bad6-fd343729ac4b.webp?v=1714706853"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a64381c19f851f54bf66c837f8c3d5ee733cebbc_97a90d8b-ac06-423f-80bd-258f5d86bdf0.webp?v=1714706833","options":["color"],"media":[{"alt":null,"id":23875757146211,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a64381c19f851f54bf66c837f8c3d5ee733cebbc_97a90d8b-ac06-423f-80bd-258f5d86bdf0.webp?v=1714706833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a64381c19f851f54bf66c837f8c3d5ee733cebbc_97a90d8b-ac06-423f-80bd-258f5d86bdf0.webp?v=1714706833","width":2000},{"alt":null,"id":23875757670499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835","width":2000},{"alt":null,"id":23875757965411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041dba7975173b6b24128d749f9f396511b5e9bc_63555495-aaca-4e85-9bd8-ff74e9ad835d.webp?v=1714706837"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/041dba7975173b6b24128d749f9f396511b5e9bc_63555495-aaca-4e85-9bd8-ff74e9ad835d.webp?v=1714706837","width":2000},{"alt":null,"id":23875758358627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840","width":2000},{"alt":null,"id":23875758751843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f5198252e4ecf2703fc0d00fb9d633d5d659b0_6ddef840-ac19-4020-9409-e54b0f87a578.webp?v=1714706842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f5198252e4ecf2703fc0d00fb9d633d5d659b0_6ddef840-ac19-4020-9409-e54b0f87a578.webp?v=1714706842","width":2000},{"alt":null,"id":23875759112291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6381984e957b85f40821b8b80ab9964f8d5ed0b6_944ace4c-2ab4-4072-a318-afe50cb2e63d.webp?v=1714706844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6381984e957b85f40821b8b80ab9964f8d5ed0b6_944ace4c-2ab4-4072-a318-afe50cb2e63d.webp?v=1714706844","width":2000},{"alt":null,"id":23875759636579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/811c66d3cf6341f45d60063233fb64e71d970078_2ada204b-7ece-471f-b127-5f5abd07aff7.webp?v=1714706846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/811c66d3cf6341f45d60063233fb64e71d970078_2ada204b-7ece-471f-b127-5f5abd07aff7.webp?v=1714706846","width":2000},{"alt":null,"id":23875759865955,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a063b5602f08fefcaf06c89fef57b0464361f295_455634f9-8e51-4f93-a63d-9a5ce241940a.webp?v=1714706849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a063b5602f08fefcaf06c89fef57b0464361f295_455634f9-8e51-4f93-a63d-9a5ce241940a.webp?v=1714706849","width":2000},{"alt":null,"id":23875760390243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851","width":2000},{"alt":null,"id":23875760848995,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2024c40c9c82e99fdd01ff397c8cf284b80c3_7c37718c-3569-4627-bad6-fd343729ac4b.webp?v=1714706853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93d2024c40c9c82e99fdd01ff397c8cf284b80c3_7c37718c-3569-4627-bad6-fd343729ac4b.webp?v=1714706853","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881278939235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470853816419,"product_id":7407976251491,"position":4,"created_at":"2024-05-03T11:27:20+08:00","updated_at":"2024-05-03T11:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840","variant_ids":[41881278939235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875758358627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881279070307,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470853062755,"product_id":7407976251491,"position":2,"created_at":"2024-05-03T11:27:15+08:00","updated_at":"2024-05-03T11:27:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835","variant_ids":[41881279070307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875757670499,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7158d1f160c01f61eb2b4c8adf0d4ec8854b3a0c_fd852fcd-cb86-4444-ace3-62ba7f07cc18.webp?v=1714706835"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881279299683,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470855848035,"product_id":7407976251491,"position":9,"created_at":"2024-05-03T11:27:31+08:00","updated_at":"2024-05-03T11:27:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851","variant_ids":[41881279299683]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875760390243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d27f6b9542e401b7ac6c6ba94c23122640d8c6_a6923784-9343-41a7-9048-e3b31f78d5ce.webp?v=1714706851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881278939235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31470853816419,"product_id":7407976251491,"position":4,"created_at":"2024-05-03T11:27:20+08:00","updated_at":"2024-05-03T11:27:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840","variant_ids":[41881278939235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23875758358627,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea31b7dc133340803980cc47fe984a81541ab63c_c66a22fd-371a-45cf-9d51-3b4fb6c93865.webp?v=1714706840"}},"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: "停產"
}