$product = {"id":7407986507875,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-14-pro-mod-nx-printable-pb34","description":null,"published_at":"2024-06-11T16:28:23+08:00","created_at":"2024-05-03T11:29:04+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":41881412894819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470878523491,"product_id":7407986507875,"position":3,"created_at":"2024-05-03T11:29:11+08:00","updated_at":"2024-05-03T11:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951","variant_ids":[41881412894819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875783131235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881412960355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470880882787,"product_id":7407986507875,"position":8,"created_at":"2024-05-03T11:29:23+08:00","updated_at":"2024-05-03T11:29:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963","variant_ids":[41881412960355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875785588835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881413189731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470881898595,"product_id":7407986507875,"position":10,"created_at":"2024-05-03T11:29:28+08:00","updated_at":"2024-05-03T11:29:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968","variant_ids":[41881413189731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875786571875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b3954bfda49db58c58bd58df5d39cd030d4b85_00580b35-956e-448d-b494-66e149cec012.webp?v=1714706946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bfb164ddc5878ca27ed5f1c1eb050141e68c55_c20c4cdb-87f2-47e3-972b-48987b132b76.webp?v=1714706949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d4cb7203f30035b2ec75d1f6daac7d6593e3a7_b0d242ac-42ef-44d7-b4f1-b3a45ac4c31e.webp?v=1714706954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d69ec13dbfc43567ebea6f2b21a6b7a447e6a80_d4df1072-a418-4c12-a68e-cb7c6077bae0.webp?v=1714706956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92281dfdb588d0e383cec9718f47adaf3f366e62_a86dc8bc-e53a-44f6-93ae-7a9b220d3b47.webp?v=1714706958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7eec12c0e6e7e23e1ebdfb19a65b43ce6223b1_3d32f1d0-d4c3-42c3-9856-b07e10753819.webp?v=1714706961","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc06ad7859151d0c9afa057724b61483773994_aa2ebcc4-1952-4427-a570-dee39d3688fa.webp?v=1714706965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b3954bfda49db58c58bd58df5d39cd030d4b85_00580b35-956e-448d-b494-66e149cec012.webp?v=1714706946","options":["color"],"media":[{"alt":null,"id":23875782115427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b3954bfda49db58c58bd58df5d39cd030d4b85_00580b35-956e-448d-b494-66e149cec012.webp?v=1714706946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21b3954bfda49db58c58bd58df5d39cd030d4b85_00580b35-956e-448d-b494-66e149cec012.webp?v=1714706946","width":2000},{"alt":null,"id":23875782606947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bfb164ddc5878ca27ed5f1c1eb050141e68c55_c20c4cdb-87f2-47e3-972b-48987b132b76.webp?v=1714706949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2bfb164ddc5878ca27ed5f1c1eb050141e68c55_c20c4cdb-87f2-47e3-972b-48987b132b76.webp?v=1714706949","width":2000},{"alt":null,"id":23875783131235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951","width":2000},{"alt":null,"id":23875783557219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d4cb7203f30035b2ec75d1f6daac7d6593e3a7_b0d242ac-42ef-44d7-b4f1-b3a45ac4c31e.webp?v=1714706954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d4cb7203f30035b2ec75d1f6daac7d6593e3a7_b0d242ac-42ef-44d7-b4f1-b3a45ac4c31e.webp?v=1714706954","width":2000},{"alt":null,"id":23875784114275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d69ec13dbfc43567ebea6f2b21a6b7a447e6a80_d4df1072-a418-4c12-a68e-cb7c6077bae0.webp?v=1714706956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d69ec13dbfc43567ebea6f2b21a6b7a447e6a80_d4df1072-a418-4c12-a68e-cb7c6077bae0.webp?v=1714706956","width":2000},{"alt":null,"id":23875784671331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92281dfdb588d0e383cec9718f47adaf3f366e62_a86dc8bc-e53a-44f6-93ae-7a9b220d3b47.webp?v=1714706958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92281dfdb588d0e383cec9718f47adaf3f366e62_a86dc8bc-e53a-44f6-93ae-7a9b220d3b47.webp?v=1714706958","width":2000},{"alt":null,"id":23875785130083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7eec12c0e6e7e23e1ebdfb19a65b43ce6223b1_3d32f1d0-d4c3-42c3-9856-b07e10753819.webp?v=1714706961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b7eec12c0e6e7e23e1ebdfb19a65b43ce6223b1_3d32f1d0-d4c3-42c3-9856-b07e10753819.webp?v=1714706961","width":2000},{"alt":null,"id":23875785588835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963","width":2000},{"alt":null,"id":23875785982051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc06ad7859151d0c9afa057724b61483773994_aa2ebcc4-1952-4427-a570-dee39d3688fa.webp?v=1714706965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9dc06ad7859151d0c9afa057724b61483773994_aa2ebcc4-1952-4427-a570-dee39d3688fa.webp?v=1714706965","width":2000},{"alt":null,"id":23875786571875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881412894819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470878523491,"product_id":7407986507875,"position":3,"created_at":"2024-05-03T11:29:11+08:00","updated_at":"2024-05-03T11:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951","variant_ids":[41881412894819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875783131235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881412960355,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0126204-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470880882787,"product_id":7407986507875,"position":8,"created_at":"2024-05-03T11:29:23+08:00","updated_at":"2024-05-03T11:29:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963","variant_ids":[41881412960355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875785588835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/febe464ca4aa5406df8d7cb703fc63d8bfabcf1e_567737b8-2f6a-433d-baa2-4d5f7c31e313.webp?v=1714706963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881413189731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01262J5-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470881898595,"product_id":7407986507875,"position":10,"created_at":"2024-05-03T11:29:28+08:00","updated_at":"2024-05-03T11:29:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968","variant_ids":[41881413189731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875786571875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87980ae0cefe6a2a2ffc97563240fe8aec85013a_01b55da8-4600-44dc-9188-db2ea5646c8a.webp?v=1714706968"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881412894819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126224-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31470878523491,"product_id":7407986507875,"position":3,"created_at":"2024-05-03T11:29:11+08:00","updated_at":"2024-05-03T11:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951","variant_ids":[41881412894819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Pro - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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-PB34","featured_media":{"alt":null,"id":23875783131235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5188e039551ffc3f27720827fcea9137bf1ac2db_05d4f172-5d3e-40bc-a410-1e41b00b81a4.webp?v=1714706951"}},"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: "停產"
}