Home
›
犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年
$product = {"id":7407890661475,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年","handle":"iphone-14-pro-mod-nx-printable-eo05","description":null,"published_at":"2024-06-11T16:25:43+08:00","created_at":"2024-05-03T11:10:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 14 Pro","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41880147492963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633091171,"product_id":7407890661475,"position":10,"created_at":"2024-05-03T11:10:42+08:00","updated_at":"2024-05-03T11:10:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842","variant_ids":[41880147492963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO05","featured_media":{"alt":null,"id":23875537076323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880147558499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470630076515,"product_id":7407890661475,"position":4,"created_at":"2024-05-03T11:10:26+08:00","updated_at":"2024-05-03T11:10:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826","variant_ids":[41880147558499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EO05","featured_media":{"alt":null,"id":23875534028899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880147787875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470629453923,"product_id":7407890661475,"position":3,"created_at":"2024-05-03T11:10:24+08:00","updated_at":"2024-05-03T11:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824","variant_ids":[41880147787875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EO05","featured_media":{"alt":null,"id":23875533373539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af4bfedc70f2fc00a94015b802fdae65d5bf847_6cfa245f-ca9b-4378-a538-490e77d64f52.webp?v=1714705819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64dfc95323a14b7634ad990de57f922efeae6cca_37e9fe7e-5394-40ba-9199-1dcb2ab63ce1.webp?v=1714705821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7104900c40f8de480d34759d7a910d614fb2eaa_053fb0f2-645b-4521-9801-4edb43082a93.webp?v=1714705829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cbdcecbca699100922120cfca73bbcae52fa0a_3f5b3b8f-580d-4382-a4e6-ab8f0aaab62f.webp?v=1714705831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa42203c79f399ebd2984306a591dc1ddd87948c_6a9fe635-51ac-4df2-9d33-15ffbde4e778.webp?v=1714705834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad4db31148d28b591534447d71eae603d991f38_fe452dde-725d-433d-87b1-6e11f7bfc5fc.webp?v=1714705836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64421898da2dc850c328e3ccd8dcc6c1c1add3c1_0ab3db52-6904-4f29-8d8e-9a619c9a4965.webp?v=1714705839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af4bfedc70f2fc00a94015b802fdae65d5bf847_6cfa245f-ca9b-4378-a538-490e77d64f52.webp?v=1714705819","options":["color"],"media":[{"alt":null,"id":23875532488803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af4bfedc70f2fc00a94015b802fdae65d5bf847_6cfa245f-ca9b-4378-a538-490e77d64f52.webp?v=1714705819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af4bfedc70f2fc00a94015b802fdae65d5bf847_6cfa245f-ca9b-4378-a538-490e77d64f52.webp?v=1714705819","width":2000},{"alt":null,"id":23875532947555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64dfc95323a14b7634ad990de57f922efeae6cca_37e9fe7e-5394-40ba-9199-1dcb2ab63ce1.webp?v=1714705821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64dfc95323a14b7634ad990de57f922efeae6cca_37e9fe7e-5394-40ba-9199-1dcb2ab63ce1.webp?v=1714705821","width":2000},{"alt":null,"id":23875533373539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824","width":2000},{"alt":null,"id":23875534028899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826","width":2000},{"alt":null,"id":23875534356579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7104900c40f8de480d34759d7a910d614fb2eaa_053fb0f2-645b-4521-9801-4edb43082a93.webp?v=1714705829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7104900c40f8de480d34759d7a910d614fb2eaa_053fb0f2-645b-4521-9801-4edb43082a93.webp?v=1714705829","width":2000},{"alt":null,"id":23875535011939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cbdcecbca699100922120cfca73bbcae52fa0a_3f5b3b8f-580d-4382-a4e6-ab8f0aaab62f.webp?v=1714705831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cbdcecbca699100922120cfca73bbcae52fa0a_3f5b3b8f-580d-4382-a4e6-ab8f0aaab62f.webp?v=1714705831","width":2000},{"alt":null,"id":23875535372387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa42203c79f399ebd2984306a591dc1ddd87948c_6a9fe635-51ac-4df2-9d33-15ffbde4e778.webp?v=1714705834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa42203c79f399ebd2984306a591dc1ddd87948c_6a9fe635-51ac-4df2-9d33-15ffbde4e778.webp?v=1714705834","width":2000},{"alt":null,"id":23875535929443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad4db31148d28b591534447d71eae603d991f38_fe452dde-725d-433d-87b1-6e11f7bfc5fc.webp?v=1714705836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad4db31148d28b591534447d71eae603d991f38_fe452dde-725d-433d-87b1-6e11f7bfc5fc.webp?v=1714705836","width":2000},{"alt":null,"id":23875536420963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64421898da2dc850c328e3ccd8dcc6c1c1add3c1_0ab3db52-6904-4f29-8d8e-9a619c9a4965.webp?v=1714705839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64421898da2dc850c328e3ccd8dcc6c1c1add3c1_0ab3db52-6904-4f29-8d8e-9a619c9a4965.webp?v=1714705839","width":2000},{"alt":null,"id":23875537076323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41880147492963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633091171,"product_id":7407890661475,"position":10,"created_at":"2024-05-03T11:10:42+08:00","updated_at":"2024-05-03T11:10:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842","variant_ids":[41880147492963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO05","featured_media":{"alt":null,"id":23875537076323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880147558499,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470630076515,"product_id":7407890661475,"position":4,"created_at":"2024-05-03T11:10:26+08:00","updated_at":"2024-05-03T11:10:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826","variant_ids":[41880147558499]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-EO05","featured_media":{"alt":null,"id":23875534028899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3f151ccef72a185db41d84de2becd5cf9392c6c_e6f2f99f-a601-4cdc-a5f7-65c74a5898bc.webp?v=1714705826"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41880147787875,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470629453923,"product_id":7407890661475,"position":3,"created_at":"2024-05-03T11:10:24+08:00","updated_at":"2024-05-03T11:10:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824","variant_ids":[41880147787875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-EO05","featured_media":{"alt":null,"id":23875533373539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fdedbfcaad7b1d4993cb1e55cd1213c90ee3554_47700ece-d2ce-4723-ab8a-3c5c6f291112.webp?v=1714705824"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41880147492963,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633091171,"product_id":7407890661475,"position":10,"created_at":"2024-05-03T11:10:42+08:00","updated_at":"2024-05-03T11:10:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842","variant_ids":[41880147492963]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-EO05","featured_media":{"alt":null,"id":23875537076323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/549c2c8bf911494ba9aa4699dac0535ac74d1858_a824dde3-20ee-4ebb-8727-67d37a1f8d7c.webp?v=1714705842"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}