GMAir pro True Wireless Buletooth ANC earbuds TWS Bluetooth headphones Music Headset sport earphones Active noise cancelation cool Noise Cancellation earbuds
${function() {
const variantData = data.variant || {"id":"5a869a1c-8f92-4fe7-b439-ff2989b598ea","product_id":"a17c1a17-9c7b-40d5-b112-a76178d7e834","title":"APro","weight_unit":"kg","inventory_quantity":347,"sku":"","barcode":"","position":1,"option1":"APro","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0.15","compare_at_price":"50","price":"20","retail_price":"50","available":true,"url":"\/products\/gmair-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-noise-cancellation-earbuds?variant=5a869a1c-8f92-4fe7-b439-ff2989b598ea","available_quantity":347,"options":[{"name":"\u6837\u5f0f","value":"APro"}],"off_ratio":60,"flashsale_info":[],"sales":6};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
样式:
APro
${function(){
const optName = "样式";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$20.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"5a869a1c-8f92-4fe7-b439-ff2989b598ea","product_id":"a17c1a17-9c7b-40d5-b112-a76178d7e834","title":"APro","weight_unit":"kg","inventory_quantity":347,"sku":"","barcode":"","position":1,"option1":"APro","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0.15","compare_at_price":"50","price":"20","retail_price":"50","available":true,"url":"\/products\/gmair-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-noise-cancellation-earbuds?variant=5a869a1c-8f92-4fe7-b439-ff2989b598ea","available_quantity":347,"options":[{"name":"\u6837\u5f0f","value":"APro"}],"off_ratio":60,"flashsale_info":[],"sales":6};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"5a869a1c-8f92-4fe7-b439-ff2989b598ea","product_id":"a17c1a17-9c7b-40d5-b112-a76178d7e834","title":"APro","weight_unit":"kg","inventory_quantity":347,"sku":"","barcode":"","position":1,"option1":"APro","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"0.15","compare_at_price":"50","price":"20","retail_price":"50","available":true,"url":"\/products\/gmair-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-noise-cancellation-earbuds?variant=5a869a1c-8f92-4fe7-b439-ff2989b598ea","available_quantity":347,"options":[{"name":"\u6837\u5f0f","value":"APro"}],"off_ratio":60,"flashsale_info":[],"sales":6};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}