🔥Last Day 49%off🔥Gold Foil Peel-Off Mask
${function() {
const variantData = data.variant || {"id":"436223a3-0d99-477c-bdea-89847b63d491","product_id":"c5e35bdf-56df-456b-a00d-c5f57f4b9a16","title":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular","weight_unit":"kg","inventory_quantity":957,"sku":"ABOL9GPT-001*3","barcode":"","position":1,"option1":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"57.98","price":"28.99","retail_price":"57.98","available":true,"url":"\/products\/gold-foil-peel-off-mask-xc5z?variant=436223a3-0d99-477c-bdea-89847b63d491","available_quantity":999999999,"options":[{"name":"BUY MORE SAVE MORE","value":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Buy More Save More:
BUY 2 GET 1 FREE- 3PCS🔥Most Popular
${function(){
const optName = "BUY MORE SAVE MORE";
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
$28.99
${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":"436223a3-0d99-477c-bdea-89847b63d491","product_id":"c5e35bdf-56df-456b-a00d-c5f57f4b9a16","title":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular","weight_unit":"kg","inventory_quantity":957,"sku":"ABOL9GPT-001*3","barcode":"","position":1,"option1":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"57.98","price":"28.99","retail_price":"57.98","available":true,"url":"\/products\/gold-foil-peel-off-mask-xc5z?variant=436223a3-0d99-477c-bdea-89847b63d491","available_quantity":999999999,"options":[{"name":"BUY MORE SAVE MORE","value":"BUY 2 GET 1 FREE- 3PCS\ud83d\udd25Most Popular"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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 does not exist