Headphones Version S
${function() {
const variantData = data.variant || {"id":"64a0e115-53c7-4970-bc8a-8a516f0ae67d","product_id":"1b8a089e-da9e-42ca-beae-6861f8264e28","title":"","weight_unit":"kg","inventory_quantity":2997,"sku":"10","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":389.88,"min_quantity":1}],"weight":"1","compare_at_price":"390.99","price":"389.88","retail_price":"390.99","available":true,"url":"\/products\/headphones-version-s?variant=64a0e115-53c7-4970-bc8a-8a516f0ae67d","available_quantity":2997,"options":[],"off_ratio":0,"flashsale_info":[],"sales":299};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"64a0e115-53c7-4970-bc8a-8a516f0ae67d","product_id":"1b8a089e-da9e-42ca-beae-6861f8264e28","title":"","weight_unit":"kg","inventory_quantity":2997,"sku":"10","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":389.88,"min_quantity":1}],"weight":"1","compare_at_price":"390.99","price":"389.88","retail_price":"390.99","available":true,"url":"\/products\/headphones-version-s?variant=64a0e115-53c7-4970-bc8a-8a516f0ae67d","available_quantity":2997,"options":[],"off_ratio":0,"flashsale_info":[],"sales":299};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 399;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}