${function() {
const variantData = data.variant || {"id":"af11f7d8-fb21-44e7-93a5-cc68e9b8758a","product_id":"422614bd-5458-4e11-8d63-d2eb54a65f23","title":"Orange-With rope.-XS(2-5kg)","weight_unit":"kg","inventory_quantity":10000,"sku":"LE1825395-XS","barcode":"","position":1,"option1":"Orange","option2":"With rope.","option3":"XS(2-5kg)","note":"","image":{"src":"\/\/img.staticdj.com\/d6d4554892c57a2f9b68dcf62dd204e9.jpeg","path":"d6d4554892c57a2f9b68dcf62dd204e9.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"34.98","retail_price":"0","available":true,"url":"\/products\/no-pull-dog-harness-for-pets0c2fafb0-7ada-42f9-8d82-cc9b5eb9b68b9353f17f-97ef-41f7-a398-9a152ba72f5b?variant=af11f7d8-fb21-44e7-93a5-cc68e9b8758a","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Style","value":"With rope."},{"name":"Size","value":"XS(2-5kg)"}],"off_ratio":0,"flashsale_info":[],"sales":2};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Orange
${function(){
const optName = "Color";
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}
`
}()}
Style
: With rope.
${function(){
const optName = "Style";
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}
`
}()}
Size
: XS(2-5kg)
${function(){
const optName = "Size";
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
$34.98
${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":"af11f7d8-fb21-44e7-93a5-cc68e9b8758a","product_id":"422614bd-5458-4e11-8d63-d2eb54a65f23","title":"Orange-With rope.-XS(2-5kg)","weight_unit":"kg","inventory_quantity":10000,"sku":"LE1825395-XS","barcode":"","position":1,"option1":"Orange","option2":"With rope.","option3":"XS(2-5kg)","note":"","image":{"src":"\/\/img.staticdj.com\/d6d4554892c57a2f9b68dcf62dd204e9.jpeg","path":"d6d4554892c57a2f9b68dcf62dd204e9.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"34.98","retail_price":"0","available":true,"url":"\/products\/no-pull-dog-harness-for-pets0c2fafb0-7ada-42f9-8d82-cc9b5eb9b68b9353f17f-97ef-41f7-a398-9a152ba72f5b?variant=af11f7d8-fb21-44e7-93a5-cc68e9b8758a","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Style","value":"With rope."},{"name":"Size","value":"XS(2-5kg)"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"af11f7d8-fb21-44e7-93a5-cc68e9b8758a","product_id":"422614bd-5458-4e11-8d63-d2eb54a65f23","title":"Orange-With rope.-XS(2-5kg)","weight_unit":"kg","inventory_quantity":10000,"sku":"LE1825395-XS","barcode":"","position":1,"option1":"Orange","option2":"With rope.","option3":"XS(2-5kg)","note":"","image":{"src":"\/\/img.staticdj.com\/d6d4554892c57a2f9b68dcf62dd204e9.jpeg","path":"d6d4554892c57a2f9b68dcf62dd204e9.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"34.98","retail_price":"0","available":true,"url":"\/products\/no-pull-dog-harness-for-pets0c2fafb0-7ada-42f9-8d82-cc9b5eb9b68b9353f17f-97ef-41f7-a398-9a152ba72f5b?variant=af11f7d8-fb21-44e7-93a5-cc68e9b8758a","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Style","value":"With rope."},{"name":"Size","value":"XS(2-5kg)"}],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
people are viewing this right now