Women's Floral, Blue, Patchwork 2 Piece Outfits Set Summer Sleeveless Top Vest and Shorts
${function() {
const variantData = data.variant || {"id":"da3860ad-44bc-4f56-a5ff-73a5da42270b","product_id":"a4b7016d-c78b-4b04-85e8-0faa3f1277ff","title":"Top and Shorts-S","weight_unit":"kg","inventory_quantity":1000,"sku":"A001","barcode":"","position":1,"option1":"Top and Shorts","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb8228839c7559de8641348ce9368a7.jpeg","path":"7cb8228839c7559de8641348ce9368a7.jpeg","width":1800,"height":1800,"alt":"Women's Floral, Blue, Patchwork 2 Piece Outfits Set Summer Sleeveless Top Vest and Shorts James Yang","aspect_ratio":1},"wholesale_price":[{"price":36,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"36","retail_price":"0","available":true,"url":"\/products\/women-plus-size-printed-vest-tops-shorts-set-ypaa0047-1?variant=da3860ad-44bc-4f56-a5ff-73a5da42270b","available_quantity":1000,"options":[{"name":"Color","value":"Top and Shorts"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Color:
Top and Shorts
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
S
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const variantData = data.variant || {"id":"da3860ad-44bc-4f56-a5ff-73a5da42270b","product_id":"a4b7016d-c78b-4b04-85e8-0faa3f1277ff","title":"Top and Shorts-S","weight_unit":"kg","inventory_quantity":1000,"sku":"A001","barcode":"","position":1,"option1":"Top and Shorts","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb8228839c7559de8641348ce9368a7.jpeg","path":"7cb8228839c7559de8641348ce9368a7.jpeg","width":1800,"height":1800,"alt":"Women's Floral, Blue, Patchwork 2 Piece Outfits Set Summer Sleeveless Top Vest and Shorts James Yang","aspect_ratio":1},"wholesale_price":[{"price":36,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"36","retail_price":"0","available":true,"url":"\/products\/women-plus-size-printed-vest-tops-shorts-set-ypaa0047-1?variant=da3860ad-44bc-4f56-a5ff-73a5da42270b","available_quantity":1000,"options":[{"name":"Color","value":"Top and Shorts"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Inventory : ${variantData && variantData.available_quantity}
`
}()}
Add to cart
$36.00
${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":"da3860ad-44bc-4f56-a5ff-73a5da42270b","product_id":"a4b7016d-c78b-4b04-85e8-0faa3f1277ff","title":"Top and Shorts-S","weight_unit":"kg","inventory_quantity":1000,"sku":"A001","barcode":"","position":1,"option1":"Top and Shorts","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb8228839c7559de8641348ce9368a7.jpeg","path":"7cb8228839c7559de8641348ce9368a7.jpeg","width":1800,"height":1800,"alt":"Women's Floral, Blue, Patchwork 2 Piece Outfits Set Summer Sleeveless Top Vest and Shorts James Yang","aspect_ratio":1},"wholesale_price":[{"price":36,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"36","retail_price":"0","available":true,"url":"\/products\/women-plus-size-printed-vest-tops-shorts-set-ypaa0047-1?variant=da3860ad-44bc-4f56-a5ff-73a5da42270b","available_quantity":1000,"options":[{"name":"Color","value":"Top and Shorts"},{"name":"Size","value":"S"}],"off_ratio":0,"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 does not exist
SKU : A001
Weight : 0.25kg
${function(){
const variantData = data.variant || {"id":"da3860ad-44bc-4f56-a5ff-73a5da42270b","product_id":"a4b7016d-c78b-4b04-85e8-0faa3f1277ff","title":"Top and Shorts-S","weight_unit":"kg","inventory_quantity":1000,"sku":"A001","barcode":"","position":1,"option1":"Top and Shorts","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7cb8228839c7559de8641348ce9368a7.jpeg","path":"7cb8228839c7559de8641348ce9368a7.jpeg","width":1800,"height":1800,"alt":"Women's Floral, Blue, Patchwork 2 Piece Outfits Set Summer Sleeveless Top Vest and Shorts James Yang","aspect_ratio":1},"wholesale_price":[{"price":36,"min_quantity":1}],"weight":"0.25","compare_at_price":"0","price":"36","retail_price":"0","available":true,"url":"\/products\/women-plus-size-printed-vest-tops-shorts-set-ypaa0047-1?variant=da3860ad-44bc-4f56-a5ff-73a5da42270b","available_quantity":1000,"options":[{"name":"Color","value":"Top and Shorts"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
SKU : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}