Women’s Longline Sports Bra Wirefree Padded Hollow Out Medium Support Yoga Bras for Running Workout Tank Tops
${function() {
const variantData = data.variant || {"id":"fd99fa50-191b-4550-b894-0ef5a1ad6074","product_id":"603b925e-ade2-4230-acef-9acbccde2f86","title":"Black-Medium","weight_unit":"kg","inventory_quantity":999,"sku":"W112BCM","barcode":"","position":5,"option1":"Black","option2":"Medium","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/66894e03dc1571109afac146f08bd6a6.jpeg","path":"66894e03dc1571109afac146f08bd6a6.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":43.55,"min_quantity":1}],"weight":"0","compare_at_price":"51.05","price":"43.55","retail_price":"51.05","available":true,"url":"\/products\/women-s-longline-sports-bra-wirefree-padded-hollow-out-medium-support-yoga-bras-for-running-workout-tank-tops?variant=fd99fa50-191b-4550-b894-0ef5a1ad6074","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Medium"}],"off_ratio":15,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Black
${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}
`
}()}
Size:
Medium
${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
$43.55
${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":"fd99fa50-191b-4550-b894-0ef5a1ad6074","product_id":"603b925e-ade2-4230-acef-9acbccde2f86","title":"Black-Medium","weight_unit":"kg","inventory_quantity":999,"sku":"W112BCM","barcode":"","position":5,"option1":"Black","option2":"Medium","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/66894e03dc1571109afac146f08bd6a6.jpeg","path":"66894e03dc1571109afac146f08bd6a6.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":43.55,"min_quantity":1}],"weight":"0","compare_at_price":"51.05","price":"43.55","retail_price":"51.05","available":true,"url":"\/products\/women-s-longline-sports-bra-wirefree-padded-hollow-out-medium-support-yoga-bras-for-running-workout-tank-tops?variant=fd99fa50-191b-4550-b894-0ef5a1ad6074","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Medium"}],"off_ratio":15,"flashsale_info":[],"sales":0};
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":"fd99fa50-191b-4550-b894-0ef5a1ad6074","product_id":"603b925e-ade2-4230-acef-9acbccde2f86","title":"Black-Medium","weight_unit":"kg","inventory_quantity":999,"sku":"W112BCM","barcode":"","position":5,"option1":"Black","option2":"Medium","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/66894e03dc1571109afac146f08bd6a6.jpeg","path":"66894e03dc1571109afac146f08bd6a6.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":43.55,"min_quantity":1}],"weight":"0","compare_at_price":"51.05","price":"43.55","retail_price":"51.05","available":true,"url":"\/products\/women-s-longline-sports-bra-wirefree-padded-hollow-out-medium-support-yoga-bras-for-running-workout-tank-tops?variant=fd99fa50-191b-4550-b894-0ef5a1ad6074","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Medium"}],"off_ratio":15,"flashsale_info":[],"sales":0};
return `
`
}()}
${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 `
`;
}()}