V-neck Half-button Printed Top
${function() {
const variantData = data.variant || {"id":"86b4ed29-f356-4ea4-ac90-04de653378a5","product_id":"dcc28850-cfe9-4f48-837e-88f525a097ed","title":"white-S(US 6-8)","weight_unit":"g","inventory_quantity":9999,"sku":"YSHHP242413-white-S(US 6-8)","barcode":"","position":1,"option1":"white","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/41c0696fc2b36f2395714e5cd05c89ac.jpeg","path":"41c0696fc2b36f2395714e5cd05c89ac.jpeg","width":562,"height":1000,"alt":"V-neck Half-button Printed Top","aspect_ratio":0.562},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"25.99","retail_price":"33.99","available":true,"url":"\/products\/v-neck-half-button-printed-top?variant=86b4ed29-f356-4ea4-ac90-04de653378a5","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":24,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const postageFreeAmount = 10;
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}
`
}()}
Product was out of stock.
Product is unavailable.
Sku : YSHHP242413-white-S(US 6-8)
${function(){
const variantData = data.variant || {"id":"86b4ed29-f356-4ea4-ac90-04de653378a5","product_id":"dcc28850-cfe9-4f48-837e-88f525a097ed","title":"white-S(US 6-8)","weight_unit":"g","inventory_quantity":9999,"sku":"YSHHP242413-white-S(US 6-8)","barcode":"","position":1,"option1":"white","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/41c0696fc2b36f2395714e5cd05c89ac.jpeg","path":"41c0696fc2b36f2395714e5cd05c89ac.jpeg","width":562,"height":1000,"alt":"V-neck Half-button Printed Top","aspect_ratio":0.562},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"25.99","retail_price":"33.99","available":true,"url":"\/products\/v-neck-half-button-printed-top?variant=86b4ed29-f356-4ea4-ac90-04de653378a5","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":24,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}