New button-up dress with striped flaps at the bottom | With functional pockets
${function() {
const variantData = data.variant || {"id":"e04268be-eefc-4272-9f1c-5befaf4d595f","product_id":"ecb3edb2-6791-4694-a36b-922f024baa10","title":"BLUE-S","weight_unit":"kg","inventory_quantity":1000,"sku":"QR2626750-\u84dd\u8272S","barcode":"","position":1,"option1":"BLUE","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e4045439ced4bb23342705a85a05c26b.jpeg","path":"e4045439ced4bb23342705a85a05c26b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.9,"min_quantity":1}],"weight":"0","compare_at_price":"68.4","price":"34.9","retail_price":"68.4","available":true,"url":"\/products\/new-button-up-dress-with-striped-flaps-at-the-bottom-with-functional-pockets?variant=e04268be-eefc-4272-9f1c-5befaf4d595f","available_quantity":999999999,"options":[{"name":"color","value":"BLUE"},{"name":"size","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
color:
BLUE
${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}
`
}()}
Add to cart
$34.90
${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":"e04268be-eefc-4272-9f1c-5befaf4d595f","product_id":"ecb3edb2-6791-4694-a36b-922f024baa10","title":"BLUE-S","weight_unit":"kg","inventory_quantity":1000,"sku":"QR2626750-\u84dd\u8272S","barcode":"","position":1,"option1":"BLUE","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e4045439ced4bb23342705a85a05c26b.jpeg","path":"e4045439ced4bb23342705a85a05c26b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.9,"min_quantity":1}],"weight":"0","compare_at_price":"68.4","price":"34.9","retail_price":"68.4","available":true,"url":"\/products\/new-button-up-dress-with-striped-flaps-at-the-bottom-with-functional-pockets?variant=e04268be-eefc-4272-9f1c-5befaf4d595f","available_quantity":999999999,"options":[{"name":"color","value":"BLUE"},{"name":"size","value":"S"}],"off_ratio":49,"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.