GMBods pro2 True ANC earbuds TWS Bluetooth headphones Music Headset sport earphones Active noise cancelation cool Earbuds
${function() {
const variantData = data.variant || {"id":"681fbd9b-96cc-4893-9a92-8791b4baa058","product_id":"797c219e-96d5-4a87-af06-568b3f76d406","title":"pro2(NO ANC)","weight_unit":"kg","inventory_quantity":1099,"sku":"","barcode":"","position":2,"option1":"pro2(NO ANC)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f5ecd7e70794d37cf775597582d41d6.jpeg","path":"4f5ecd7e70794d37cf775597582d41d6.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.5,"min_quantity":1}],"weight":"0.18","compare_at_price":"38","price":"20.5","retail_price":"38","available":true,"url":"\/products\/gm-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-electronic-devices-west-proof-heavy-workout-in-ear-headphones-noise-cancellation-earbuds-1?variant=681fbd9b-96cc-4893-9a92-8791b4baa058","available_quantity":999999999,"options":[{"name":"\u6837\u5f0f","value":"pro2(NO ANC)"}],"off_ratio":46,"flashsale_info":[],"sales":13};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
样式:
pro2(NO ANC)
${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.50
${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":"681fbd9b-96cc-4893-9a92-8791b4baa058","product_id":"797c219e-96d5-4a87-af06-568b3f76d406","title":"pro2(NO ANC)","weight_unit":"kg","inventory_quantity":1099,"sku":"","barcode":"","position":2,"option1":"pro2(NO ANC)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f5ecd7e70794d37cf775597582d41d6.jpeg","path":"4f5ecd7e70794d37cf775597582d41d6.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.5,"min_quantity":1}],"weight":"0.18","compare_at_price":"38","price":"20.5","retail_price":"38","available":true,"url":"\/products\/gm-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-electronic-devices-west-proof-heavy-workout-in-ear-headphones-noise-cancellation-earbuds-1?variant=681fbd9b-96cc-4893-9a92-8791b4baa058","available_quantity":999999999,"options":[{"name":"\u6837\u5f0f","value":"pro2(NO ANC)"}],"off_ratio":46,"flashsale_info":[],"sales":13};
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":"681fbd9b-96cc-4893-9a92-8791b4baa058","product_id":"797c219e-96d5-4a87-af06-568b3f76d406","title":"pro2(NO ANC)","weight_unit":"kg","inventory_quantity":1099,"sku":"","barcode":"","position":2,"option1":"pro2(NO ANC)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f5ecd7e70794d37cf775597582d41d6.jpeg","path":"4f5ecd7e70794d37cf775597582d41d6.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.5,"min_quantity":1}],"weight":"0.18","compare_at_price":"38","price":"20.5","retail_price":"38","available":true,"url":"\/products\/gm-pro-true-wireless-buletooth-anc-earbuds-tws-bluetooth-headphones-music-headset-sport-earphones-active-noise-cancelation-cool-electronic-devices-west-proof-heavy-workout-in-ear-headphones-noise-cancellation-earbuds-1?variant=681fbd9b-96cc-4893-9a92-8791b4baa058","available_quantity":999999999,"options":[{"name":"\u6837\u5f0f","value":"pro2(NO ANC)"}],"off_ratio":46,"flashsale_info":[],"sales":13};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}