$product = {"id":7407926116451,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款","handle":"iphone-14-pro-mod-nx-printable-pb45","description":null,"published_at":"2024-06-11T16:26:44+08:00","created_at":"2024-05-03T11:17:15+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":41880614174819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470718615651,"product_id":7407926116451,"position":6,"created_at":"2024-05-03T11:17:29+08:00","updated_at":"2024-05-03T11:17:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249","variant_ids":[41880614174819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875622666339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880614338659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470717403235,"product_id":7407926116451,"position":3,"created_at":"2024-05-03T11:17:22+08:00","updated_at":"2024-05-03T11:17:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242","variant_ids":[41880614338659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875621453923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880614830179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470720876643,"product_id":7407926116451,"position":10,"created_at":"2024-05-03T11:17:38+08:00","updated_at":"2024-05-03T11:17:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258","variant_ids":[41880614830179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875624927331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a3fe101588a804bd99b6389ff5bbe6815301530_843926a9-c6ea-447f-80a5-0c9d0bf6af22.webp?v=1714706238","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a565825101c60119d9828eef6f5de6ddd21dd_65db15bc-4d4c-4a07-9262-44456401a7ab.webp?v=1714706240","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd7379490a8faaec39ca25cb789435377c405e5_5dc94be8-5cdb-49f4-bc94-5346c7a98e6d.webp?v=1714706244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831af2c612e164a0c000b5155501c101f1773598_e6ce9ec5-2513-4b7a-8457-60e8002ad877.webp?v=1714706247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6795439b0d3e3e28179b685f0b13c2f6e6b377bb_0557868c-17bd-4169-aaf0-af7ebaba37a0.webp?v=1714706251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42196654eedcaa4c9f9f36ef3d0ea8f461087be_1aa774e4-6fc9-4721-885a-4f68f904c8c9.webp?v=1714706254","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c7200f454c482feae0a5189d0dfa1f948970316_074a12c0-a16d-4fd4-bd2b-6a0940d5be0d.webp?v=1714706256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a3fe101588a804bd99b6389ff5bbe6815301530_843926a9-c6ea-447f-80a5-0c9d0bf6af22.webp?v=1714706238","options":["color"],"media":[{"alt":null,"id":23875620470883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a3fe101588a804bd99b6389ff5bbe6815301530_843926a9-c6ea-447f-80a5-0c9d0bf6af22.webp?v=1714706238"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a3fe101588a804bd99b6389ff5bbe6815301530_843926a9-c6ea-447f-80a5-0c9d0bf6af22.webp?v=1714706238","width":2000},{"alt":null,"id":23875620995171,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a565825101c60119d9828eef6f5de6ddd21dd_65db15bc-4d4c-4a07-9262-44456401a7ab.webp?v=1714706240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e4a565825101c60119d9828eef6f5de6ddd21dd_65db15bc-4d4c-4a07-9262-44456401a7ab.webp?v=1714706240","width":2000},{"alt":null,"id":23875621453923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242","width":2000},{"alt":null,"id":23875621912675,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd7379490a8faaec39ca25cb789435377c405e5_5dc94be8-5cdb-49f4-bc94-5346c7a98e6d.webp?v=1714706244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fd7379490a8faaec39ca25cb789435377c405e5_5dc94be8-5cdb-49f4-bc94-5346c7a98e6d.webp?v=1714706244","width":2000},{"alt":null,"id":23875622273123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831af2c612e164a0c000b5155501c101f1773598_e6ce9ec5-2513-4b7a-8457-60e8002ad877.webp?v=1714706247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831af2c612e164a0c000b5155501c101f1773598_e6ce9ec5-2513-4b7a-8457-60e8002ad877.webp?v=1714706247","width":2000},{"alt":null,"id":23875622666339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249","width":2000},{"alt":null,"id":23875623092323,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6795439b0d3e3e28179b685f0b13c2f6e6b377bb_0557868c-17bd-4169-aaf0-af7ebaba37a0.webp?v=1714706251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6795439b0d3e3e28179b685f0b13c2f6e6b377bb_0557868c-17bd-4169-aaf0-af7ebaba37a0.webp?v=1714706251","width":2000},{"alt":null,"id":23875624042595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42196654eedcaa4c9f9f36ef3d0ea8f461087be_1aa774e4-6fc9-4721-885a-4f68f904c8c9.webp?v=1714706254"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b42196654eedcaa4c9f9f36ef3d0ea8f461087be_1aa774e4-6fc9-4721-885a-4f68f904c8c9.webp?v=1714706254","width":2000},{"alt":null,"id":23875624501347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c7200f454c482feae0a5189d0dfa1f948970316_074a12c0-a16d-4fd4-bd2b-6a0940d5be0d.webp?v=1714706256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c7200f454c482feae0a5189d0dfa1f948970316_074a12c0-a16d-4fd4-bd2b-6a0940d5be0d.webp?v=1714706256","width":2000},{"alt":null,"id":23875624927331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41880614174819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470718615651,"product_id":7407926116451,"position":6,"created_at":"2024-05-03T11:17:29+08:00","updated_at":"2024-05-03T11:17:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249","variant_ids":[41880614174819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875622666339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880614338659,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470717403235,"product_id":7407926116451,"position":3,"created_at":"2024-05-03T11:17:22+08:00","updated_at":"2024-05-03T11:17:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242","variant_ids":[41880614338659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875621453923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73811729f2f9e419b88d7ba3205a6727c7145294_dd6d026d-6f5a-4bb9-a5b4-4459f9dd3d77.webp?v=1714706242"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880614830179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470720876643,"product_id":7407926116451,"position":10,"created_at":"2024-05-03T11:17:38+08:00","updated_at":"2024-05-03T11:17:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258","variant_ids":[41880614830179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875624927331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97aa677562877110385dd7f068835846c3884815_272717af-2336-4887-878f-f1b5d278bdd9.webp?v=1714706258"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880614174819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470718615651,"product_id":7407926116451,"position":6,"created_at":"2024-05-03T11:17:29+08:00","updated_at":"2024-05-03T11:17:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249","variant_ids":[41880614174819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875622666339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038b4f1b62bb52e9b3830090d43c7f52ec70b6f8_cd324934-0240-44a9-b5e8-4d2f79d9e06d.webp?v=1714706249"}},"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: "停產"
}