${function() {
const variantData = data.variant || {"id":"a9427b31-8cbd-4675-93d0-1579e98daf77","product_id":"ff29c83b-74b7-4d47-b349-d7b92a82e755","title":"Pillow Custom text","weight_unit":"kg","inventory_quantity":-289,"sku":"Pillow Custom text","barcode":"","position":1,"option1":"Pillow Custom text","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":2.95,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"2.95","retail_price":"0","available":true,"url":"\/products\/pillow-custom-text?variant=a9427b31-8cbd-4675-93d0-1579e98daf77","available_quantity":999999999,"options":[{"name":"Title","value":"Pillow Custom text"}],"off_ratio":0,"flashsale_info":[],"sales":5};
const saveType = 'amount';
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
${function(){
const variantData = data.variant || {"id":"a9427b31-8cbd-4675-93d0-1579e98daf77","product_id":"ff29c83b-74b7-4d47-b349-d7b92a82e755","title":"Pillow Custom text","weight_unit":"kg","inventory_quantity":-289,"sku":"Pillow Custom text","barcode":"","position":1,"option1":"Pillow Custom text","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":2.95,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"2.95","retail_price":"0","available":true,"url":"\/products\/pillow-custom-text?variant=a9427b31-8cbd-4675-93d0-1579e98daf77","available_quantity":999999999,"options":[{"name":"Title","value":"Pillow Custom text"}],"off_ratio":0,"flashsale_info":[],"sales":5};
return `
Sku : ${variantData && variantData.sku}
`
}()}
[{configure.optionName1}]
[{configure.optionName2}]
[{item.title}]
Title
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Want more styles we don't have? Let us know here.
Let us know the character or styles you need
Submit
${function() {
const postageFreeAmount = 49;
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 `
`;
}()}