$product = {"id":7018304798819,"title":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light","handle":"google-pixel-8-pro-solidsuit-android-pm01","description":null,"published_at":"2023-10-05T14:51:45+08:00","created_at":"2023-09-20T14:49:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區殼老爹","tags":["10%","20%","30%","40%","50%","brand-Google","designer","designer-nba","device-Pixel 8 Pro","merge","reseller-nba"],"price":83000,"price_min":83000,"price_max":83000,"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":40891374600291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0230252-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255610979,"product_id":7018304798819,"position":13,"created_at":"2026-07-02T12:12:01+08:00","updated_at":"2026-07-02T12:12:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523","variant_ids":[40891374600291]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0230252-PM01","featured_media":{"alt":null,"id":27657129099363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40747832213603,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"SST02302Z7-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255414371,"product_id":7018304798819,"position":11,"created_at":"2026-07-02T12:12:00+08:00","updated_at":"2026-07-02T12:12:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522","variant_ids":[40747832213603]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST02302Z7-PM01","featured_media":{"alt":null,"id":27657128902755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40747832246371,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST023020B-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255578211,"product_id":7018304798819,"position":12,"created_at":"2026-07-02T12:12:01+08:00","updated_at":"2026-07-02T12:12:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522","variant_ids":[40747832246371]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST023020B-PM01","featured_media":{"alt":null,"id":27657129066595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-302-PM01.png?v=1695192551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877.webp?v=1782203402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293.webp?v=1782203402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e.webp?v=1782203403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_1b0ac779-3e38-4787-8a7a-5a57372b2e9a.webp?v=1782957194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_19892bd5-1414-4f2c-ae4a-e5f1cebb34dc.webp?v=1782957195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_40c5566b-20f1-40e0-b66d-862b1c163f5c.webp?v=1782957196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_fcf0329a-7897-49bd-91d4-b561387cd034.webp?v=1782961182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_4e27b847-770a-4b2a-88ac-5495db8c8bc5.webp?v=1782961183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_387addc7-66dc-4a07-932e-653c9157b00e.webp?v=1782961184","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-302-PM01.png?v=1695192551","options":["color"],"media":[{"alt":null,"id":22774782918755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-302-PM01.png?v=1695192551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidSuitTPE-53-302-PM01.png?v=1695192551","width":2000},{"alt":null,"id":27574443409507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877.webp?v=1782203402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877.webp?v=1782203402","width":2000},{"alt":null,"id":27574444064867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293.webp?v=1782203402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293.webp?v=1782203402","width":2000},{"alt":null,"id":27574444687459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e.webp?v=1782203403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e.webp?v=1782203403","width":2000},{"alt":null,"id":27655750680675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_1b0ac779-3e38-4787-8a7a-5a57372b2e9a.webp?v=1782957194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_1b0ac779-3e38-4787-8a7a-5a57372b2e9a.webp?v=1782957194","width":2000},{"alt":null,"id":27655751008355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_19892bd5-1414-4f2c-ae4a-e5f1cebb34dc.webp?v=1782957195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_19892bd5-1414-4f2c-ae4a-e5f1cebb34dc.webp?v=1782957195","width":2000},{"alt":null,"id":27655751204963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_40c5566b-20f1-40e0-b66d-862b1c163f5c.webp?v=1782957196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_40c5566b-20f1-40e0-b66d-862b1c163f5c.webp?v=1782957196","width":2000},{"alt":null,"id":27656680570979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_fcf0329a-7897-49bd-91d4-b561387cd034.webp?v=1782961182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_fcf0329a-7897-49bd-91d4-b561387cd034.webp?v=1782961182","width":2000},{"alt":null,"id":27656680898659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_4e27b847-770a-4b2a-88ac-5495db8c8bc5.webp?v=1782961183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_4e27b847-770a-4b2a-88ac-5495db8c8bc5.webp?v=1782961183","width":2000},{"alt":null,"id":27656681128035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_387addc7-66dc-4a07-932e-653c9157b00e.webp?v=1782961184"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_387addc7-66dc-4a07-932e-653c9157b00e.webp?v=1782961184","width":2000},{"alt":null,"id":27657128902755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522","width":2000},{"alt":null,"id":27657129066595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522","width":2000},{"alt":null,"id":27657129099363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":40891374600291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0230252-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255610979,"product_id":7018304798819,"position":13,"created_at":"2026-07-02T12:12:01+08:00","updated_at":"2026-07-02T12:12:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523","variant_ids":[40891374600291]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0230252-PM01","featured_media":{"alt":null,"id":27657129099363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40747832213603,"title":"Glacier Blue","option1":"Glacier Blue","option2":null,"option3":null,"sku":"SST02302Z7-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255414371,"product_id":7018304798819,"position":11,"created_at":"2026-07-02T12:12:00+08:00","updated_at":"2026-07-02T12:12:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522","variant_ids":[40747832213603]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Glacier Blue","public_title":"Glacier Blue","options":["Glacier Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST02302Z7-PM01","featured_media":{"alt":null,"id":27657128902755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e5f3ca8eef9492e58f1dafa10b600aba6aa0293_86c460d3-f418-4e04-98e7-2b7fa5ba68b2.webp?v=1782965522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":40747832246371,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST023020B-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255578211,"product_id":7018304798819,"position":12,"created_at":"2026-07-02T12:12:01+08:00","updated_at":"2026-07-02T12:12:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522","variant_ids":[40747832246371]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST023020B-PM01","featured_media":{"alt":null,"id":27657129066595,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a0093e7a8c5c6d1af0a4e8877cfb478c7e64e_d7af52ec-cae5-4c7f-9893-83366ea7cd9d.webp?v=1782965522"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":40891374600291,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0230252-PM01","requires_shipping":true,"taxable":true,"featured_image":{"id":36152255610979,"product_id":7018304798819,"position":13,"created_at":"2026-07-02T12:12:01+08:00","updated_at":"2026-07-02T12:12:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523","variant_ids":[40891374600291]},"available":true,"name":"Pixel 8 Pro SolidSuit NBA Logo-金州勇士 Golden State Warriors - Light - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0230252-PM01","featured_media":{"alt":null,"id":27657129099363,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40105a5400d44e38c095d10ca21612f8f262877_8df9d4cc-308c-4b34-90c0-a31eb4080003.webp?v=1782965523"}},"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: "停產"
}