$product = {"id":7407673180259,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-14-pro-mod-nx-printable-pc06","description":null,"published_at":"2024-06-11T16:21:48+08:00","created_at":"2024-05-03T10:40:03+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":41877474672739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470197538915,"product_id":7407673180259,"position":10,"created_at":"2024-05-03T10:40:28+08:00","updated_at":"2024-05-03T10:40:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028","variant_ids":[41877474672739]},"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-PC06","featured_media":{"alt":null,"id":23875100508259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877474836579,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470196752483,"product_id":7407673180259,"position":9,"created_at":"2024-05-03T10:40:25+08:00","updated_at":"2024-05-03T10:40:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025","variant_ids":[41877474836579]},"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-PC06","featured_media":{"alt":null,"id":23875099754595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877475164259,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470192492643,"product_id":7407673180259,"position":2,"created_at":"2024-05-03T10:40:08+08:00","updated_at":"2024-05-03T10:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008","variant_ids":[41877475164259]},"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-PC06","featured_media":{"alt":null,"id":23875095593059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846fd828fbbeaf83c93b10b65c13672891bfe79f_bd0c75d5-888a-47ba-8be9-311e3e214a6c.webp?v=1714704005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d330d65d348c6d684ac5d0ef16f28ac0598107_cc8c666a-5d3b-42d7-857b-4b1e9829b83f.webp?v=1714704010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71b399dfa57029587060548813d5876f2986004f_7e4954bc-e9da-4e5c-a3d2-df9e57bd8696.webp?v=1714704013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb0e015bbedb1c40bbe93074028650d45c83f27_f451175b-036c-4f69-a836-a1aa470b8e39.webp?v=1714704015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8efbffe54e4a86199bf19f52bac85f618e6e55c3_69518641-7ac4-43de-a8be-c85b3f96bc44.webp?v=1714704018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6116bc8f324f9154c6c48fb0b1d5ae6d8bf5e93_29eb2d29-f03d-41a9-8b4b-1c88026430a3.webp?v=1714704020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbc09e9757a0ecb136f3dfc6d69b0b8c3f6eb2e_48a15bc3-9f85-4470-8739-8f8d2cd3fc5f.webp?v=1714704023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846fd828fbbeaf83c93b10b65c13672891bfe79f_bd0c75d5-888a-47ba-8be9-311e3e214a6c.webp?v=1714704005","options":["color"],"media":[{"alt":null,"id":23875094773859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846fd828fbbeaf83c93b10b65c13672891bfe79f_bd0c75d5-888a-47ba-8be9-311e3e214a6c.webp?v=1714704005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/846fd828fbbeaf83c93b10b65c13672891bfe79f_bd0c75d5-888a-47ba-8be9-311e3e214a6c.webp?v=1714704005","width":2000},{"alt":null,"id":23875095593059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008","width":2000},{"alt":null,"id":23875096084579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d330d65d348c6d684ac5d0ef16f28ac0598107_cc8c666a-5d3b-42d7-857b-4b1e9829b83f.webp?v=1714704010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6d330d65d348c6d684ac5d0ef16f28ac0598107_cc8c666a-5d3b-42d7-857b-4b1e9829b83f.webp?v=1714704010","width":2000},{"alt":null,"id":23875097002083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71b399dfa57029587060548813d5876f2986004f_7e4954bc-e9da-4e5c-a3d2-df9e57bd8696.webp?v=1714704013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71b399dfa57029587060548813d5876f2986004f_7e4954bc-e9da-4e5c-a3d2-df9e57bd8696.webp?v=1714704013","width":2000},{"alt":null,"id":23875097559139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb0e015bbedb1c40bbe93074028650d45c83f27_f451175b-036c-4f69-a836-a1aa470b8e39.webp?v=1714704015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbb0e015bbedb1c40bbe93074028650d45c83f27_f451175b-036c-4f69-a836-a1aa470b8e39.webp?v=1714704015","width":2000},{"alt":null,"id":23875097985123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8efbffe54e4a86199bf19f52bac85f618e6e55c3_69518641-7ac4-43de-a8be-c85b3f96bc44.webp?v=1714704018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8efbffe54e4a86199bf19f52bac85f618e6e55c3_69518641-7ac4-43de-a8be-c85b3f96bc44.webp?v=1714704018","width":2000},{"alt":null,"id":23875098673251,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6116bc8f324f9154c6c48fb0b1d5ae6d8bf5e93_29eb2d29-f03d-41a9-8b4b-1c88026430a3.webp?v=1714704020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6116bc8f324f9154c6c48fb0b1d5ae6d8bf5e93_29eb2d29-f03d-41a9-8b4b-1c88026430a3.webp?v=1714704020","width":2000},{"alt":null,"id":23875099295843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbc09e9757a0ecb136f3dfc6d69b0b8c3f6eb2e_48a15bc3-9f85-4470-8739-8f8d2cd3fc5f.webp?v=1714704023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adbc09e9757a0ecb136f3dfc6d69b0b8c3f6eb2e_48a15bc3-9f85-4470-8739-8f8d2cd3fc5f.webp?v=1714704023","width":2000},{"alt":null,"id":23875099754595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025","width":2000},{"alt":null,"id":23875100508259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41877474672739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470197538915,"product_id":7407673180259,"position":10,"created_at":"2024-05-03T10:40:28+08:00","updated_at":"2024-05-03T10:40:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028","variant_ids":[41877474672739]},"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-PC06","featured_media":{"alt":null,"id":23875100508259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877474836579,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470196752483,"product_id":7407673180259,"position":9,"created_at":"2024-05-03T10:40:25+08:00","updated_at":"2024-05-03T10:40:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025","variant_ids":[41877474836579]},"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-PC06","featured_media":{"alt":null,"id":23875099754595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bfd0027d2e2ef017ab57ed62d4b32d19394e4fa_1369bac6-bc0f-495e-b892-a9e444ae7f82.webp?v=1714704025"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41877475164259,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470192492643,"product_id":7407673180259,"position":2,"created_at":"2024-05-03T10:40:08+08:00","updated_at":"2024-05-03T10:40:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008","variant_ids":[41877475164259]},"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-PC06","featured_media":{"alt":null,"id":23875095593059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2057b1b9928e940def2cd157fca8cf063dd5781f_9362e7b5-e0f7-4b26-a034-ba5d486a92dd.webp?v=1714704008"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41877474672739,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470197538915,"product_id":7407673180259,"position":10,"created_at":"2024-05-03T10:40:28+08:00","updated_at":"2024-05-03T10:40:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028","variant_ids":[41877474672739]},"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-PC06","featured_media":{"alt":null,"id":23875100508259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ac24056a8dbd7ddaabe2bd7fd5eef632b95005b_8cc886cd-f36f-448a-9066-c1cb776ac0e1.webp?v=1714704028"}},"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: "停產"
}