O-neck Ruffle Top Shorts Suit
${function() {
const variantData = data.variant || {"id":"66a5d353-059f-4da6-afe1-f5f9445d1606","product_id":"4f2f26f1-5c25-445c-b8fd-51cbe5c6a665","title":"Beige-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WP00060SM-Beige-S","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b233e9fbb43369bea1af18d5f310ba0.jpg","path":"1b233e9fbb43369bea1af18d5f310ba0.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":42.62,"min_quantity":1}],"weight":"0","compare_at_price":"44.78","price":"42.62","retail_price":"44.78","available":true,"url":"\/products\/women-summer-cotton-suit-sets-loose-sleeveless-o-neck-ruffle-tops-side-zipper-vintage-elegant-casual-holiday-tracksuits?variant=66a5d353-059f-4da6-afe1-f5f9445d1606","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":5,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Beige
${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:
S
${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
$42.62
${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":"66a5d353-059f-4da6-afe1-f5f9445d1606","product_id":"4f2f26f1-5c25-445c-b8fd-51cbe5c6a665","title":"Beige-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WP00060SM-Beige-S","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b233e9fbb43369bea1af18d5f310ba0.jpg","path":"1b233e9fbb43369bea1af18d5f310ba0.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":42.62,"min_quantity":1}],"weight":"0","compare_at_price":"44.78","price":"42.62","retail_price":"44.78","available":true,"url":"\/products\/women-summer-cotton-suit-sets-loose-sleeveless-o-neck-ruffle-tops-side-zipper-vintage-elegant-casual-holiday-tracksuits?variant=66a5d353-059f-4da6-afe1-f5f9445d1606","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":5,"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":"66a5d353-059f-4da6-afe1-f5f9445d1606","product_id":"4f2f26f1-5c25-445c-b8fd-51cbe5c6a665","title":"Beige-S","weight_unit":"kg","inventory_quantity":1000,"sku":"WP00060SM-Beige-S","barcode":"","position":1,"option1":"Beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1b233e9fbb43369bea1af18d5f310ba0.jpg","path":"1b233e9fbb43369bea1af18d5f310ba0.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":42.62,"min_quantity":1}],"weight":"0","compare_at_price":"44.78","price":"42.62","retail_price":"44.78","available":true,"url":"\/products\/women-summer-cotton-suit-sets-loose-sleeveless-o-neck-ruffle-tops-side-zipper-vintage-elegant-casual-holiday-tracksuits?variant=66a5d353-059f-4da6-afe1-f5f9445d1606","available_quantity":999999999,"options":[{"name":"Color","value":"Beige"},{"name":"Size","value":"S"}],"off_ratio":5,"flashsale_info":[],"sales":0};
return `
`
}()}