${function() {
const variantData = data.variant || {"id":"9e5843ab-5f3a-4797-83a5-e6adaacca471","product_id":"4308edf9-7301-4a3a-b529-ff0bd0065e66","title":"Photo Color-2","weight_unit":"kg","inventory_quantity":1000,"sku":"50253852-photo-color-2","barcode":"","position":1,"option1":"Photo Color","option2":"2","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","path":"4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":139.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"139.99","retail_price":"0","available":true,"url":"\/products\/latest-on-sale-short-mother-of-the-bride-dresses-sleeveless-jewel-neck-pleating-wedding-party-dresses-knee-length-beaded-20243dd8ecbf-dd46-4210-873e-e45235409a98?variant=9e5843ab-5f3a-4797-83a5-e6adaacca471","available_quantity":999999999,"options":[{"name":"Color","value":"Photo Color"},{"name":"US Size","value":"2"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Photo Color
${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}
`
}()}
Us Size
: 2
${function(){
const optName = "US 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
$139.99
${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":"9e5843ab-5f3a-4797-83a5-e6adaacca471","product_id":"4308edf9-7301-4a3a-b529-ff0bd0065e66","title":"Photo Color-2","weight_unit":"kg","inventory_quantity":1000,"sku":"50253852-photo-color-2","barcode":"","position":1,"option1":"Photo Color","option2":"2","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","path":"4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":139.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"139.99","retail_price":"0","available":true,"url":"\/products\/latest-on-sale-short-mother-of-the-bride-dresses-sleeveless-jewel-neck-pleating-wedding-party-dresses-knee-length-beaded-20243dd8ecbf-dd46-4210-873e-e45235409a98?variant=9e5843ab-5f3a-4797-83a5-e6adaacca471","available_quantity":999999999,"options":[{"name":"Color","value":"Photo Color"},{"name":"US Size","value":"2"}],"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 is unavailable.
${function(){
const variantData = data.variant || {"id":"9e5843ab-5f3a-4797-83a5-e6adaacca471","product_id":"4308edf9-7301-4a3a-b529-ff0bd0065e66","title":"Photo Color-2","weight_unit":"kg","inventory_quantity":1000,"sku":"50253852-photo-color-2","barcode":"","position":1,"option1":"Photo Color","option2":"2","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","path":"4ef32bdb5bf8c2dcb0fbf3424b065f11.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":139.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"139.99","retail_price":"0","available":true,"url":"\/products\/latest-on-sale-short-mother-of-the-bride-dresses-sleeveless-jewel-neck-pleating-wedding-party-dresses-knee-length-beaded-20243dd8ecbf-dd46-4210-873e-e45235409a98?variant=9e5843ab-5f3a-4797-83a5-e6adaacca471","available_quantity":999999999,"options":[{"name":"Color","value":"Photo Color"},{"name":"US Size","value":"2"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
people are viewing this right now