$product = {"id":7411291258979,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格","handle":"iphone-14-pro-mod-nx-magsafe-printable-pb53","description":null,"published_at":"2024-06-11T17:40:59+08:00","created_at":"2024-05-05T00:01:14+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":41897039954019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060641379,"product_id":7411291258979,"position":5,"created_at":"2024-05-05T00:01:26+08:00","updated_at":"2024-05-05T00:01:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486","variant_ids":[41897039954019]},"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-PB53","featured_media":{"alt":null,"id":23885311311971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897040019555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480059592803,"product_id":7411291258979,"position":3,"created_at":"2024-05-05T00:01:21+08:00","updated_at":"2024-05-05T00:01:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481","variant_ids":[41897040019555]},"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-PB53","featured_media":{"alt":null,"id":23885310296163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897040248931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480062345315,"product_id":7411291258979,"position":9,"created_at":"2024-05-05T00:01:35+08:00","updated_at":"2024-05-05T00:01:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495","variant_ids":[41897040248931]},"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-PB53","featured_media":{"alt":null,"id":23885313048675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31482af25a17f2022f912110d4a9a876ac6b2159_4a4d0bd1-41d7-470e-83c2-722a1c5c227a.webp?v=1714838477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea43672ef04495caea86227b4739642e7954a3f_f3510495-21cf-4db9-9415-adb5079da092.webp?v=1714838479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/001d93af806a3c7e6c998c3a494dcd4386508ddb_0d353146-83b2-40ca-949b-bae04cb73083.webp?v=1714838483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cd34f522ccca6a39d0a1f5eaef596d02c8726a2_48940344-656a-454e-b4e0-5f4ed97952d4.webp?v=1714838488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71cc9f008cac2f85cda1e5e4542641761da81147_ed230a51-450a-4cb1-81cd-a842850f02bd.webp?v=1714838490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da62a2ed9ddd37bbc5bc2da7b492f04a7c7ce77_8ec983a3-327a-49f0-878c-35e7941cdd25.webp?v=1714838493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a2783ac3c34d2af8f1ac0eb8641805ca4242f0_75207c7b-83ea-4eb9-84eb-65e2c2d24d73.webp?v=1714838497"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31482af25a17f2022f912110d4a9a876ac6b2159_4a4d0bd1-41d7-470e-83c2-722a1c5c227a.webp?v=1714838477","options":["color"],"media":[{"alt":null,"id":23885309444195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31482af25a17f2022f912110d4a9a876ac6b2159_4a4d0bd1-41d7-470e-83c2-722a1c5c227a.webp?v=1714838477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31482af25a17f2022f912110d4a9a876ac6b2159_4a4d0bd1-41d7-470e-83c2-722a1c5c227a.webp?v=1714838477","width":2000},{"alt":null,"id":23885309837411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea43672ef04495caea86227b4739642e7954a3f_f3510495-21cf-4db9-9415-adb5079da092.webp?v=1714838479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea43672ef04495caea86227b4739642e7954a3f_f3510495-21cf-4db9-9415-adb5079da092.webp?v=1714838479","width":2000},{"alt":null,"id":23885310296163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481","width":2000},{"alt":null,"id":23885310656611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/001d93af806a3c7e6c998c3a494dcd4386508ddb_0d353146-83b2-40ca-949b-bae04cb73083.webp?v=1714838483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/001d93af806a3c7e6c998c3a494dcd4386508ddb_0d353146-83b2-40ca-949b-bae04cb73083.webp?v=1714838483","width":2000},{"alt":null,"id":23885311311971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486","width":2000},{"alt":null,"id":23885311574115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cd34f522ccca6a39d0a1f5eaef596d02c8726a2_48940344-656a-454e-b4e0-5f4ed97952d4.webp?v=1714838488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cd34f522ccca6a39d0a1f5eaef596d02c8726a2_48940344-656a-454e-b4e0-5f4ed97952d4.webp?v=1714838488","width":2000},{"alt":null,"id":23885312032867,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71cc9f008cac2f85cda1e5e4542641761da81147_ed230a51-450a-4cb1-81cd-a842850f02bd.webp?v=1714838490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71cc9f008cac2f85cda1e5e4542641761da81147_ed230a51-450a-4cb1-81cd-a842850f02bd.webp?v=1714838490","width":2000},{"alt":null,"id":23885312589923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da62a2ed9ddd37bbc5bc2da7b492f04a7c7ce77_8ec983a3-327a-49f0-878c-35e7941cdd25.webp?v=1714838493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da62a2ed9ddd37bbc5bc2da7b492f04a7c7ce77_8ec983a3-327a-49f0-878c-35e7941cdd25.webp?v=1714838493","width":2000},{"alt":null,"id":23885313048675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495","width":2000},{"alt":null,"id":23885313474659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a2783ac3c34d2af8f1ac0eb8641805ca4242f0_75207c7b-83ea-4eb9-84eb-65e2c2d24d73.webp?v=1714838497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a2783ac3c34d2af8f1ac0eb8641805ca4242f0_75207c7b-83ea-4eb9-84eb-65e2c2d24d73.webp?v=1714838497","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41897039954019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060641379,"product_id":7411291258979,"position":5,"created_at":"2024-05-05T00:01:26+08:00","updated_at":"2024-05-05T00:01:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486","variant_ids":[41897039954019]},"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-PB53","featured_media":{"alt":null,"id":23885311311971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897040019555,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480059592803,"product_id":7411291258979,"position":3,"created_at":"2024-05-05T00:01:21+08:00","updated_at":"2024-05-05T00:01:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481","variant_ids":[41897040019555]},"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-PB53","featured_media":{"alt":null,"id":23885310296163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/281dd982ed29055f5fa48046f0b0f7728507b5df_e38ba69e-34cd-4246-bf9a-211b7a139101.webp?v=1714838481"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41897040248931,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480062345315,"product_id":7411291258979,"position":9,"created_at":"2024-05-05T00:01:35+08:00","updated_at":"2024-05-05T00:01:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495","variant_ids":[41897040248931]},"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-PB53","featured_media":{"alt":null,"id":23885313048675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bd4338820726acf437254e734d21adad6c2c88_4dc3b922-f555-46ff-9437-78518f34759c.webp?v=1714838495"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41897039954019,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31480060641379,"product_id":7411291258979,"position":5,"created_at":"2024-05-05T00:01:26+08:00","updated_at":"2024-05-05T00:01:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486","variant_ids":[41897039954019]},"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-PB53","featured_media":{"alt":null,"id":23885311311971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4a1590f54f19ff30aac2d91ac76cfa8d524a5f0_c59cedb4-4b3b-418b-ac32-39e049d675c5.webp?v=1714838486"}},"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: "停產"
}