$product = {"id":7408113746019,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-13-mini-mod-nx-printable-pb37","description":null,"published_at":"2024-06-11T16:31:45+08:00","created_at":"2024-05-03T12:02:43+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 13 mini","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":41882829684835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471227469923,"product_id":7408113746019,"position":3,"created_at":"2024-05-03T12:02:50+08:00","updated_at":"2024-05-03T12:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970","variant_ids":[41882829684835]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0122824-PB37","featured_media":{"alt":null,"id":23876132765795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882829750371,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471230713955,"product_id":7408113746019,"position":10,"created_at":"2024-05-03T12:03:06+08:00","updated_at":"2024-05-03T12:03:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986","variant_ids":[41882829750371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0122804-PB37","featured_media":{"alt":null,"id":23876136075363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882829979747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471228321891,"product_id":7408113746019,"position":5,"created_at":"2024-05-03T12:02:54+08:00","updated_at":"2024-05-03T12:02:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974","variant_ids":[41882829979747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB01228J5-PB37","featured_media":{"alt":null,"id":23876133683299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b78841072683e2deebb10b5f972951c40cfea3_59a89d30-221c-446b-b117-19db1e08d435.webp?v=1714708965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d30a7cdcd931c3d0e5a658ace40c5b18721d61b_3eb5c5fb-002e-4cb5-9338-6dfcc5e31e2b.webp?v=1714708967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a6945ff9abb00b582366d3277e72c809ff3ff5_27e4a4c7-c9e7-4e16-afa8-add1ca07b525.webp?v=1714708972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7000275836b0d797f2db3ae20a8e84e40c99b35_bc569a6a-8b73-4b44-a5a2-65149300fba2.webp?v=1714708977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4777b9c729c639fa31778efafdfda2a0a4bad6_f77f8693-2217-4326-9309-0be630baa044.webp?v=1714708979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2370d8833957a758dc0faadc7567f9a0f8cd4ff2_e8efc612-fd1b-427d-aabd-9ebb420d9fed.webp?v=1714708981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab767d38c81a793507045f497c764bf7e8f550a_ba5f5d89-b81a-491d-813b-4b573a9d100c.webp?v=1714708983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b78841072683e2deebb10b5f972951c40cfea3_59a89d30-221c-446b-b117-19db1e08d435.webp?v=1714708965","options":["color"],"media":[{"alt":null,"id":23876131749987,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b78841072683e2deebb10b5f972951c40cfea3_59a89d30-221c-446b-b117-19db1e08d435.webp?v=1714708965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b78841072683e2deebb10b5f972951c40cfea3_59a89d30-221c-446b-b117-19db1e08d435.webp?v=1714708965","width":2000},{"alt":null,"id":23876132274275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d30a7cdcd931c3d0e5a658ace40c5b18721d61b_3eb5c5fb-002e-4cb5-9338-6dfcc5e31e2b.webp?v=1714708967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d30a7cdcd931c3d0e5a658ace40c5b18721d61b_3eb5c5fb-002e-4cb5-9338-6dfcc5e31e2b.webp?v=1714708967","width":2000},{"alt":null,"id":23876132765795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970","width":2000},{"alt":null,"id":23876133191779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a6945ff9abb00b582366d3277e72c809ff3ff5_27e4a4c7-c9e7-4e16-afa8-add1ca07b525.webp?v=1714708972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a6945ff9abb00b582366d3277e72c809ff3ff5_27e4a4c7-c9e7-4e16-afa8-add1ca07b525.webp?v=1714708972","width":2000},{"alt":null,"id":23876133683299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974","width":2000},{"alt":null,"id":23876134240355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7000275836b0d797f2db3ae20a8e84e40c99b35_bc569a6a-8b73-4b44-a5a2-65149300fba2.webp?v=1714708977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7000275836b0d797f2db3ae20a8e84e40c99b35_bc569a6a-8b73-4b44-a5a2-65149300fba2.webp?v=1714708977","width":2000},{"alt":null,"id":23876134600803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4777b9c729c639fa31778efafdfda2a0a4bad6_f77f8693-2217-4326-9309-0be630baa044.webp?v=1714708979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef4777b9c729c639fa31778efafdfda2a0a4bad6_f77f8693-2217-4326-9309-0be630baa044.webp?v=1714708979","width":2000},{"alt":null,"id":23876135223395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2370d8833957a758dc0faadc7567f9a0f8cd4ff2_e8efc612-fd1b-427d-aabd-9ebb420d9fed.webp?v=1714708981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2370d8833957a758dc0faadc7567f9a0f8cd4ff2_e8efc612-fd1b-427d-aabd-9ebb420d9fed.webp?v=1714708981","width":2000},{"alt":null,"id":23876135616611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab767d38c81a793507045f497c764bf7e8f550a_ba5f5d89-b81a-491d-813b-4b573a9d100c.webp?v=1714708983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ab767d38c81a793507045f497c764bf7e8f550a_ba5f5d89-b81a-491d-813b-4b573a9d100c.webp?v=1714708983","width":2000},{"alt":null,"id":23876136075363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882829684835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471227469923,"product_id":7408113746019,"position":3,"created_at":"2024-05-03T12:02:50+08:00","updated_at":"2024-05-03T12:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970","variant_ids":[41882829684835]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0122824-PB37","featured_media":{"alt":null,"id":23876132765795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882829750371,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471230713955,"product_id":7408113746019,"position":10,"created_at":"2024-05-03T12:03:06+08:00","updated_at":"2024-05-03T12:03:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986","variant_ids":[41882829750371]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0122804-PB37","featured_media":{"alt":null,"id":23876136075363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daec46c0c6b8ab9e03e0adb9441861b01ee511ec_1531293a-abf5-4bfe-ab82-6cf1f8086429.webp?v=1714708986"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882829979747,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471228321891,"product_id":7408113746019,"position":5,"created_at":"2024-05-03T12:02:54+08:00","updated_at":"2024-05-03T12:02:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974","variant_ids":[41882829979747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB01228J5-PB37","featured_media":{"alt":null,"id":23876133683299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668045d5f516282bdf86c7d35871e676ce758044_3c6b6d3d-b255-44cc-927c-9cf50eabe668.webp?v=1714708974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882829684835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471227469923,"product_id":7408113746019,"position":3,"created_at":"2024-05-03T12:02:50+08:00","updated_at":"2024-05-03T12:02:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970","variant_ids":[41882829684835]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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":"NPB0122824-PB37","featured_media":{"alt":null,"id":23876132765795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/701be2d30f2a2f4406d9536f2067daa864152ed2_40edf60b-c424-40e9-80ae-9306b6d53e1d.webp?v=1714708970"}},"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: "停產"
}