Casual Personalized Cartoon Pattern Shorts
${function() {
const variantData = data.variant || {"id":"df9f8954-4b21-4be8-804e-9080ec031309","product_id":"26388faf-4ca3-4ba1-b432-b2759b8ee1b6","title":"Apricot-S","weight_unit":"g","inventory_quantity":999,"sku":"XHA5DJf8Z-Apricot-S","barcode":"","position":1,"option1":"Apricot","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2bd86bbf46243dc639d06cd0825ca740.jpeg","path":"2bd86bbf46243dc639d06cd0825ca740.jpeg","width":602,"height":602,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"200","compare_at_price":"21","price":"18.89","retail_price":"21","available":true,"url":"\/products\/casual-personalized-cartoon-pattern-shorts?variant=df9f8954-4b21-4be8-804e-9080ec031309","available_quantity":999999999,"options":[{"name":"Color","value":"Apricot"},{"name":"Size","value":"S"}],"off_ratio":10,"flashsale_info":[],"sales":4};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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 postageFreeAmount = 69;
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 `
`;
}()}