$product = {"id":7411263635555,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-14-pro-mod-nx-magsafe-printable-pc07","description":null,"published_at":"2024-06-11T17:40:15+08:00","created_at":"2024-05-04T23:56:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Pro","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41896693334115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479992746083,"product_id":7411263635555,"position":8,"created_at":"2024-05-04T23:56:28+08:00","updated_at":"2024-05-04T23:56:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188","variant_ids":[41896693334115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PC07","featured_media":{"alt":null,"id":23885243285603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896693497955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479993172067,"product_id":7411263635555,"position":9,"created_at":"2024-05-04T23:56:30+08:00","updated_at":"2024-05-04T23:56:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190","variant_ids":[41896693497955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PC07","featured_media":{"alt":null,"id":23885243711587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896693923939,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479989502051,"product_id":7411263635555,"position":2,"created_at":"2024-05-04T23:56:14+08:00","updated_at":"2024-05-04T23:56:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174","variant_ids":[41896693923939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PC07","featured_media":{"alt":null,"id":23885240369251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88ba462f0b3b654fc1f4084c5b789b31419aa6c_9bec3d8e-6b9d-4d4a-af14-986016925052.webp?v=1714838172","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92356073b9009438e684a34117070732825e831e_22b2b55b-9856-4706-a462-80041b158729.webp?v=1714838176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f523cc7a7f16fbd0358b2eb1357a6d7d153287_abc18ff4-274f-4955-99a7-ee2247a14eba.webp?v=1714838179","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac3ffaa4aad2a54faa4fa50adb7aceaf881916e_1e2b7e42-c9b6-4974-a9bc-7225eabfdf1c.webp?v=1714838181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae997a268384e0d0290a94d7606f9d5697dba7c4_5a39f780-4a07-4671-9614-b465d6af21b8.webp?v=1714838183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7337b826bf8d6bce2df8f600a17958124eb200f1_b5eb7c33-1af4-4e0f-9949-d6a572806b65.webp?v=1714838186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4129e79f0bb45e6346026c4dde7166b848f794d3_151ed559-4f8a-472b-995e-2dcb7ef89a16.webp?v=1714838193"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88ba462f0b3b654fc1f4084c5b789b31419aa6c_9bec3d8e-6b9d-4d4a-af14-986016925052.webp?v=1714838172","options":["color"],"media":[{"alt":null,"id":23885239353443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88ba462f0b3b654fc1f4084c5b789b31419aa6c_9bec3d8e-6b9d-4d4a-af14-986016925052.webp?v=1714838172"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88ba462f0b3b654fc1f4084c5b789b31419aa6c_9bec3d8e-6b9d-4d4a-af14-986016925052.webp?v=1714838172","width":2000},{"alt":null,"id":23885240369251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174","width":2000},{"alt":null,"id":23885240696931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92356073b9009438e684a34117070732825e831e_22b2b55b-9856-4706-a462-80041b158729.webp?v=1714838176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92356073b9009438e684a34117070732825e831e_22b2b55b-9856-4706-a462-80041b158729.webp?v=1714838176","width":2000},{"alt":null,"id":23885241417827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f523cc7a7f16fbd0358b2eb1357a6d7d153287_abc18ff4-274f-4955-99a7-ee2247a14eba.webp?v=1714838179"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f523cc7a7f16fbd0358b2eb1357a6d7d153287_abc18ff4-274f-4955-99a7-ee2247a14eba.webp?v=1714838179","width":2000},{"alt":null,"id":23885241843811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac3ffaa4aad2a54faa4fa50adb7aceaf881916e_1e2b7e42-c9b6-4974-a9bc-7225eabfdf1c.webp?v=1714838181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac3ffaa4aad2a54faa4fa50adb7aceaf881916e_1e2b7e42-c9b6-4974-a9bc-7225eabfdf1c.webp?v=1714838181","width":2000},{"alt":null,"id":23885242368099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae997a268384e0d0290a94d7606f9d5697dba7c4_5a39f780-4a07-4671-9614-b465d6af21b8.webp?v=1714838183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae997a268384e0d0290a94d7606f9d5697dba7c4_5a39f780-4a07-4671-9614-b465d6af21b8.webp?v=1714838183","width":2000},{"alt":null,"id":23885242892387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7337b826bf8d6bce2df8f600a17958124eb200f1_b5eb7c33-1af4-4e0f-9949-d6a572806b65.webp?v=1714838186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7337b826bf8d6bce2df8f600a17958124eb200f1_b5eb7c33-1af4-4e0f-9949-d6a572806b65.webp?v=1714838186","width":2000},{"alt":null,"id":23885243285603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188","width":2000},{"alt":null,"id":23885243711587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190","width":2000},{"alt":null,"id":23885244268643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4129e79f0bb45e6346026c4dde7166b848f794d3_151ed559-4f8a-472b-995e-2dcb7ef89a16.webp?v=1714838193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4129e79f0bb45e6346026c4dde7166b848f794d3_151ed559-4f8a-472b-995e-2dcb7ef89a16.webp?v=1714838193","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896693334115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479992746083,"product_id":7411263635555,"position":8,"created_at":"2024-05-04T23:56:28+08:00","updated_at":"2024-05-04T23:56:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188","variant_ids":[41896693334115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PC07","featured_media":{"alt":null,"id":23885243285603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896693497955,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479993172067,"product_id":7411263635555,"position":9,"created_at":"2024-05-04T23:56:30+08:00","updated_at":"2024-05-04T23:56:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190","variant_ids":[41896693497955]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-PC07","featured_media":{"alt":null,"id":23885243711587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36e3b31f9acb54a99ff67b20cced532b580fe7ca_0256274f-068a-4e71-9986-ed95c4ceb5e5.webp?v=1714838190"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41896693923939,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479989502051,"product_id":7411263635555,"position":2,"created_at":"2024-05-04T23:56:14+08:00","updated_at":"2024-05-04T23:56:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174","variant_ids":[41896693923939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-PC07","featured_media":{"alt":null,"id":23885240369251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c52c91269bb11a147974322b9758e0b109e0e77_309d0141-8ed8-48ea-bf0d-4752d6f1de89.webp?v=1714838174"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896693334115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479992746083,"product_id":7411263635555,"position":8,"created_at":"2024-05-04T23:56:28+08:00","updated_at":"2024-05-04T23:56:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188","variant_ids":[41896693334115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-PC07","featured_media":{"alt":null,"id":23885243285603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da6dca5ecd9ee9725d6068ee50c1771aa045c4f9_88f71183-a278-46b4-98af-17bf362486c7.webp?v=1714838188"}},"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: "停產"
}