🎁Hot Sale 49% OFF⏳Quick-wear Tool Bag Belt🛠️
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"c1cb1227-530c-467a-9b9c-5a483eab662a","product_id":"965b0b58-2981-4875-82a0-4a449c542a8f","title":"Buy 1","weight_unit":"lb","inventory_quantity":988,"sku":"DS2057181-\u00b9\u00a4\u00be\u00df\u00d1\u00fc\u00b0\u00fc","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0764e480df3b13119c8937bc7309c2a6.jpeg","path":"0764e480df3b13119c8937bc7309c2a6.jpeg","width":1200,"height":1800,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"58.99","price":"29.99","retail_price":"58.99","available":true,"url":"\/products\/tool-bag-3?variant=c1cb1227-530c-467a-9b9c-5a483eab662a","available_quantity":999999999,"options":[{"name":"Quantity","value":"Buy 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Quantity:
Buy 1
${function(){
const optName = "Quantity";
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
$29.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":"c1cb1227-530c-467a-9b9c-5a483eab662a","product_id":"965b0b58-2981-4875-82a0-4a449c542a8f","title":"Buy 1","weight_unit":"lb","inventory_quantity":988,"sku":"DS2057181-\u00b9\u00a4\u00be\u00df\u00d1\u00fc\u00b0\u00fc","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0764e480df3b13119c8937bc7309c2a6.jpeg","path":"0764e480df3b13119c8937bc7309c2a6.jpeg","width":1200,"height":1800,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"58.99","price":"29.99","retail_price":"58.99","available":true,"url":"\/products\/tool-bag-3?variant=c1cb1227-530c-467a-9b9c-5a483eab662a","available_quantity":999999999,"options":[{"name":"Quantity","value":"Buy 1"}],"off_ratio":49,"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 is unavailable.
${function(){
const variantData = data.variant || {"id":"c1cb1227-530c-467a-9b9c-5a483eab662a","product_id":"965b0b58-2981-4875-82a0-4a449c542a8f","title":"Buy 1","weight_unit":"lb","inventory_quantity":988,"sku":"DS2057181-\u00b9\u00a4\u00be\u00df\u00d1\u00fc\u00b0\u00fc","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0764e480df3b13119c8937bc7309c2a6.jpeg","path":"0764e480df3b13119c8937bc7309c2a6.jpeg","width":1200,"height":1800,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"58.99","price":"29.99","retail_price":"58.99","available":true,"url":"\/products\/tool-bag-3?variant=c1cb1227-530c-467a-9b9c-5a483eab662a","available_quantity":999999999,"options":[{"name":"Quantity","value":"Buy 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}