${function() {
const variantData = data.variant || {"id":"e103fe05-0128-4bbe-904f-6b5fcb0049e1","product_id":"30e52c02-7f09-4896-a780-757d37d6c7dd","title":"Grass Green-32A","weight_unit":"kg","inventory_quantity":0,"sku":"WX-053-Green-32A-M","barcode":"","position":1,"option1":"Grass Green","option2":"32A","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/572849ec6c9ccfe310b63cb01ac62b73.png","path":"572849ec6c9ccfe310b63cb01ac62b73.png","width":600,"height":800,"alt":"U-shape Wireless Silk Bra","aspect_ratio":0.75},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.4","compare_at_price":"39","price":"29.95","retail_price":"39","available":false,"url":"\/products\/u-shape-wireless-silk-bra?variant=e103fe05-0128-4bbe-904f-6b5fcb0049e1","available_quantity":0,"options":[{"name":"Color","value":"Grass Green"},{"name":"Size","value":"32A"}],"off_ratio":23,"flashsale_info":[],"sales":1706};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Grass Green
${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
Size Guide
32A
32B
32C
34A
34B
34C
36A
36B
36C
38A
38B
38C
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Sold out
$29.95
${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":"e103fe05-0128-4bbe-904f-6b5fcb0049e1","product_id":"30e52c02-7f09-4896-a780-757d37d6c7dd","title":"Grass Green-32A","weight_unit":"kg","inventory_quantity":0,"sku":"WX-053-Green-32A-M","barcode":"","position":1,"option1":"Grass Green","option2":"32A","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/572849ec6c9ccfe310b63cb01ac62b73.png","path":"572849ec6c9ccfe310b63cb01ac62b73.png","width":600,"height":800,"alt":"U-shape Wireless Silk Bra","aspect_ratio":0.75},"wholesale_price":[{"price":29.95,"min_quantity":1}],"weight":"0.4","compare_at_price":"39","price":"29.95","retail_price":"39","available":false,"url":"\/products\/u-shape-wireless-silk-bra?variant=e103fe05-0128-4bbe-904f-6b5fcb0049e1","available_quantity":0,"options":[{"name":"Color","value":"Grass Green"},{"name":"Size","value":"32A"}],"off_ratio":23,"flashsale_info":[],"sales":1706};
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 {
return `
`
}
}()}
Buy now
Product was out of stock.
Product is unavailable.