Home
›
犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版)
$product = {"id":7411445399651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-14-pro-mod-nx-magsafe-printable-ae05","description":null,"published_at":"2024-06-11T17:45:13+08:00","created_at":"2024-05-05T00:31:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Pro","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41898982604899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443764835,"product_id":7411445399651,"position":3,"created_at":"2024-05-05T00:31:23+08:00","updated_at":"2024-05-05T00:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283","variant_ids":[41898982604899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885695484003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898982670435,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480444780643,"product_id":7411445399651,"position":5,"created_at":"2024-05-05T00:31:27+08:00","updated_at":"2024-05-05T00:31:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287","variant_ids":[41898982670435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885696532579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898982899811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443240547,"product_id":7411445399651,"position":2,"created_at":"2024-05-05T00:31:20+08:00","updated_at":"2024-05-05T00:31:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280","variant_ids":[41898982899811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885694992483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23645b60d3dceb6beb6965d8be17c01ccce0524_a2aafdaa-65e7-4413-a4e9-b5286c815901.webp?v=1714840278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad6d05dc293ada7f9ec6a792cb73a944831a41d_6e038149-888a-4188-840b-f124bc75a675.webp?v=1714840285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12dbf74733ea976a3d0ab6d57e3945fb270dadb_eb51c9d4-1749-48ae-8c66-1af1622b2d90.webp?v=1714840290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814d762b86e9a56a4979f6d0e50db1b3f1810d43_bd7ae64a-7964-4b42-b86e-e4c1d5f03e48.webp?v=1714840292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73a1da2ee6fb2ba226db5b8aa8c72b419a7ce86_086ee80e-dddf-43af-be49-27e651f2f8e4.webp?v=1714840294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b93a73066fb1cf4a7f68082d45ffc559f4a539_fb38de85-697d-4c1b-b0ad-069cad7543fc.webp?v=1714840297","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d843beb05f103fafe557d988ae889dc0931bc_af932fbc-5ddc-4c1b-8323-ce627b0fb384.webp?v=1714840299"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23645b60d3dceb6beb6965d8be17c01ccce0524_a2aafdaa-65e7-4413-a4e9-b5286c815901.webp?v=1714840278","options":["color"],"media":[{"alt":null,"id":23885694500963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23645b60d3dceb6beb6965d8be17c01ccce0524_a2aafdaa-65e7-4413-a4e9-b5286c815901.webp?v=1714840278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b23645b60d3dceb6beb6965d8be17c01ccce0524_a2aafdaa-65e7-4413-a4e9-b5286c815901.webp?v=1714840278","width":2000},{"alt":null,"id":23885694992483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280","width":2000},{"alt":null,"id":23885695484003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283","width":2000},{"alt":null,"id":23885695942755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad6d05dc293ada7f9ec6a792cb73a944831a41d_6e038149-888a-4188-840b-f124bc75a675.webp?v=1714840285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad6d05dc293ada7f9ec6a792cb73a944831a41d_6e038149-888a-4188-840b-f124bc75a675.webp?v=1714840285","width":2000},{"alt":null,"id":23885696532579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287","width":2000},{"alt":null,"id":23885697024099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12dbf74733ea976a3d0ab6d57e3945fb270dadb_eb51c9d4-1749-48ae-8c66-1af1622b2d90.webp?v=1714840290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e12dbf74733ea976a3d0ab6d57e3945fb270dadb_eb51c9d4-1749-48ae-8c66-1af1622b2d90.webp?v=1714840290","width":2000},{"alt":null,"id":23885697581155,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814d762b86e9a56a4979f6d0e50db1b3f1810d43_bd7ae64a-7964-4b42-b86e-e4c1d5f03e48.webp?v=1714840292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/814d762b86e9a56a4979f6d0e50db1b3f1810d43_bd7ae64a-7964-4b42-b86e-e4c1d5f03e48.webp?v=1714840292","width":2000},{"alt":null,"id":23885698334819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73a1da2ee6fb2ba226db5b8aa8c72b419a7ce86_086ee80e-dddf-43af-be49-27e651f2f8e4.webp?v=1714840294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73a1da2ee6fb2ba226db5b8aa8c72b419a7ce86_086ee80e-dddf-43af-be49-27e651f2f8e4.webp?v=1714840294","width":2000},{"alt":null,"id":23885698826339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b93a73066fb1cf4a7f68082d45ffc559f4a539_fb38de85-697d-4c1b-b0ad-069cad7543fc.webp?v=1714840297"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36b93a73066fb1cf4a7f68082d45ffc559f4a539_fb38de85-697d-4c1b-b0ad-069cad7543fc.webp?v=1714840297","width":2000},{"alt":null,"id":23885699383395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d843beb05f103fafe557d988ae889dc0931bc_af932fbc-5ddc-4c1b-8323-ce627b0fb384.webp?v=1714840299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d843beb05f103fafe557d988ae889dc0931bc_af932fbc-5ddc-4c1b-8323-ce627b0fb384.webp?v=1714840299","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898982604899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443764835,"product_id":7411445399651,"position":3,"created_at":"2024-05-05T00:31:23+08:00","updated_at":"2024-05-05T00:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283","variant_ids":[41898982604899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885695484003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898982670435,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0126204-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480444780643,"product_id":7411445399651,"position":5,"created_at":"2024-05-05T00:31:27+08:00","updated_at":"2024-05-05T00:31:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287","variant_ids":[41898982670435]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885696532579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24ed55e9d24a3a017ac200df2a2bf0e858637d62_6b779029-e712-41c7-8495-6af8672fd8bb.webp?v=1714840287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41898982899811,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01262J5-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443240547,"product_id":7411445399651,"position":2,"created_at":"2024-05-05T00:31:20+08:00","updated_at":"2024-05-05T00:31:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280","variant_ids":[41898982899811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885694992483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75ccd3db6d3e01d9ad1677b44856dadd3b9f31e6_6496c85b-b26e-41e7-bc8e-920d8087f2d6.webp?v=1714840280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898982604899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126224-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31480443764835,"product_id":7411445399651,"position":3,"created_at":"2024-05-05T00:31:23+08:00","updated_at":"2024-05-05T00:31:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283","variant_ids":[41898982604899]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Pro - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23885695484003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68dacf31fe2f4eb0091c5d1173e9b823a916dcf7_9c3f1c43-2ec2-46ae-8edb-5fdc8b19364d.webp?v=1714840283"}},"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: "停產"
}