${function() {
const variantData = data.variant || {"id":"269d6b45-b908-43f5-8620-45650705b8b8","product_id":"f5f7738e-d86b-419d-919c-02428344536f","title":"White-S","weight_unit":"kg","inventory_quantity":1,"sku":"CY-2104DB30064A-White-S","barcode":"","position":2,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/28a97a41be7e293e1aa78e9d9737797b.png","path":"28a97a41be7e293e1aa78e9d9737797b.png","width":600,"height":800,"alt":"White Silk Camisole V-neck Bottoming Top","aspect_ratio":0.75},"wholesale_price":[{"price":95.2,"min_quantity":1}],"weight":"0.4","compare_at_price":"195","price":"95.2","retail_price":"195","available":true,"url":"\/products\/silk-camisole-v-neck-bottoming-top?variant=269d6b45-b908-43f5-8620-45650705b8b8","available_quantity":1,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":51,"flashsale_info":[],"sales":1434};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = false;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: White
${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
XS
S
M
L
XL
XXL
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$95.20
${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":"269d6b45-b908-43f5-8620-45650705b8b8","product_id":"f5f7738e-d86b-419d-919c-02428344536f","title":"White-S","weight_unit":"kg","inventory_quantity":1,"sku":"CY-2104DB30064A-White-S","barcode":"","position":2,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/28a97a41be7e293e1aa78e9d9737797b.png","path":"28a97a41be7e293e1aa78e9d9737797b.png","width":600,"height":800,"alt":"White Silk Camisole V-neck Bottoming Top","aspect_ratio":0.75},"wholesale_price":[{"price":95.2,"min_quantity":1}],"weight":"0.4","compare_at_price":"195","price":"95.2","retail_price":"195","available":true,"url":"\/products\/silk-camisole-v-neck-bottoming-top?variant=269d6b45-b908-43f5-8620-45650705b8b8","available_quantity":1,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":51,"flashsale_info":[],"sales":1434};
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.