${function() {
const variantData = data.variant || {"id":"170f4fee-972f-4b39-b84d-39e255e1e0a3","product_id":"6de37836-88f7-457a-bbbf-779f2d797eb8","title":"White-S","weight_unit":"kg","inventory_quantity":99999,"sku":"10073573-White-S-A0015906","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7a65186c495a79ec6df53b336ec2a2d.webp","path":"b7a65186c495a79ec6df53b336ec2a2d.webp","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"15.98","retail_price":"27.98","available":true,"url":"\/products\/sea-monster-print-t-shirt-designer?variant=170f4fee-972f-4b39-b84d-39e255e1e0a3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const postageFreeAmount = 79;
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 `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"170f4fee-972f-4b39-b84d-39e255e1e0a3","product_id":"6de37836-88f7-457a-bbbf-779f2d797eb8","title":"White-S","weight_unit":"kg","inventory_quantity":99999,"sku":"10073573-White-S-A0015906","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b7a65186c495a79ec6df53b336ec2a2d.webp","path":"b7a65186c495a79ec6df53b336ec2a2d.webp","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.98,"min_quantity":1}],"weight":"0","compare_at_price":"27.98","price":"15.98","retail_price":"27.98","available":true,"url":"\/products\/sea-monster-print-t-shirt-designer?variant=170f4fee-972f-4b39-b84d-39e255e1e0a3","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":0};
return `
`
}()}