$product = {"id":7407866413155,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-14-pro-mod-nx-printable-pb19","description":null,"published_at":"2024-06-11T16:25:02+08:00","created_at":"2024-05-03T11:05:37+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":41879829315683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470574927971,"product_id":7407866413155,"position":10,"created_at":"2024-05-03T11:06:00+08:00","updated_at":"2024-05-03T11:06:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560","variant_ids":[41879829315683]},"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-PB19","featured_media":{"alt":null,"id":23875478782051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879829413987,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470571421795,"product_id":7407866413155,"position":2,"created_at":"2024-05-03T11:05:41+08:00","updated_at":"2024-05-03T11:05:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541","variant_ids":[41879829413987]},"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-PB19","featured_media":{"alt":null,"id":23875475275875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879829643363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470574043235,"product_id":7407866413155,"position":8,"created_at":"2024-05-03T11:05:55+08:00","updated_at":"2024-05-03T11:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555","variant_ids":[41879829643363]},"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-PB19","featured_media":{"alt":null,"id":23875477897315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710b6aba9a27389b324719afadbef42e7eb16b88_586bcba5-5e0f-49a9-90d6-b3902f68f184.webp?v=1714705539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba62d8ea6de4095ccec4a8dacd0a594a10a92c1_7d59021f-16c1-487c-a6a4-f4920420ae91.webp?v=1714705544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f225183bfd2a1504202214c3ded1ce8e1404d0c_3525dc5d-3d66-471d-a124-f234b6f0d55c.webp?v=1714705546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89491a421d82473dd907b60dbc1d2a13641b5976_0348dd2b-d86b-4bda-a68f-9f4448286b5c.webp?v=1714705548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06bd962ba43156204be6c5596686efadd222fed_e9b00e42-4772-49a8-b990-ba231d8eead8.webp?v=1714705551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21548998c9ea31b7a5eac3e6239f8ab5cb4d31a_c80d7e0a-37f1-4d00-a324-711f775bcc9d.webp?v=1714705553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc02463374dbd71555e6d2b0886d5fd205cebe81_22eed17a-74ab-42dc-b2f6-85de07b3a02c.webp?v=1714705558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710b6aba9a27389b324719afadbef42e7eb16b88_586bcba5-5e0f-49a9-90d6-b3902f68f184.webp?v=1714705539","options":["color"],"media":[{"alt":null,"id":23875474849891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710b6aba9a27389b324719afadbef42e7eb16b88_586bcba5-5e0f-49a9-90d6-b3902f68f184.webp?v=1714705539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710b6aba9a27389b324719afadbef42e7eb16b88_586bcba5-5e0f-49a9-90d6-b3902f68f184.webp?v=1714705539","width":2000},{"alt":null,"id":23875475275875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541","width":2000},{"alt":null,"id":23875475669091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba62d8ea6de4095ccec4a8dacd0a594a10a92c1_7d59021f-16c1-487c-a6a4-f4920420ae91.webp?v=1714705544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ba62d8ea6de4095ccec4a8dacd0a594a10a92c1_7d59021f-16c1-487c-a6a4-f4920420ae91.webp?v=1714705544","width":2000},{"alt":null,"id":23875476160611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f225183bfd2a1504202214c3ded1ce8e1404d0c_3525dc5d-3d66-471d-a124-f234b6f0d55c.webp?v=1714705546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f225183bfd2a1504202214c3ded1ce8e1404d0c_3525dc5d-3d66-471d-a124-f234b6f0d55c.webp?v=1714705546","width":2000},{"alt":null,"id":23875476521059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89491a421d82473dd907b60dbc1d2a13641b5976_0348dd2b-d86b-4bda-a68f-9f4448286b5c.webp?v=1714705548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89491a421d82473dd907b60dbc1d2a13641b5976_0348dd2b-d86b-4bda-a68f-9f4448286b5c.webp?v=1714705548","width":2000},{"alt":null,"id":23875477078115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06bd962ba43156204be6c5596686efadd222fed_e9b00e42-4772-49a8-b990-ba231d8eead8.webp?v=1714705551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06bd962ba43156204be6c5596686efadd222fed_e9b00e42-4772-49a8-b990-ba231d8eead8.webp?v=1714705551","width":2000},{"alt":null,"id":23875477569635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21548998c9ea31b7a5eac3e6239f8ab5cb4d31a_c80d7e0a-37f1-4d00-a324-711f775bcc9d.webp?v=1714705553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c21548998c9ea31b7a5eac3e6239f8ab5cb4d31a_c80d7e0a-37f1-4d00-a324-711f775bcc9d.webp?v=1714705553","width":2000},{"alt":null,"id":23875477897315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555","width":2000},{"alt":null,"id":23875478388835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc02463374dbd71555e6d2b0886d5fd205cebe81_22eed17a-74ab-42dc-b2f6-85de07b3a02c.webp?v=1714705558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc02463374dbd71555e6d2b0886d5fd205cebe81_22eed17a-74ab-42dc-b2f6-85de07b3a02c.webp?v=1714705558","width":2000},{"alt":null,"id":23875478782051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41879829315683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470574927971,"product_id":7407866413155,"position":10,"created_at":"2024-05-03T11:06:00+08:00","updated_at":"2024-05-03T11:06:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560","variant_ids":[41879829315683]},"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-PB19","featured_media":{"alt":null,"id":23875478782051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879829413987,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470571421795,"product_id":7407866413155,"position":2,"created_at":"2024-05-03T11:05:41+08:00","updated_at":"2024-05-03T11:05:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541","variant_ids":[41879829413987]},"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-PB19","featured_media":{"alt":null,"id":23875475275875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac73c71643439e02ce9f696a8a7d7d913c127ea7_f78d152d-68a5-4ee6-bffa-f3f4a9bd8c8b.webp?v=1714705541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41879829643363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470574043235,"product_id":7407866413155,"position":8,"created_at":"2024-05-03T11:05:55+08:00","updated_at":"2024-05-03T11:05:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555","variant_ids":[41879829643363]},"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-PB19","featured_media":{"alt":null,"id":23875477897315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7fffa4de7f1650e02a0834dc2c413e32ca658fd_87b1f1eb-2cf7-4f64-804f-224ee9ec6228.webp?v=1714705555"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41879829315683,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470574927971,"product_id":7407866413155,"position":10,"created_at":"2024-05-03T11:06:00+08:00","updated_at":"2024-05-03T11:06:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560","variant_ids":[41879829315683]},"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-PB19","featured_media":{"alt":null,"id":23875478782051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15da480800e0bb1eda4a914508b734d94476f213_7e3a1bda-74de-4106-befa-bdfcdf52375e.webp?v=1714705560"}},"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: "停產"
}