Turtleneck Elegant Slim Jumpsuit
${function() {
const variantData = data.variant || {"id":"c1c0ece3-c137-49e5-b92e-3ab5649c86b4","product_id":"d9ac4a5c-1a34-4b78-9a9e-75137830b0a2","title":"M-Brown","weight_unit":"kg","inventory_quantity":100,"sku":"vj88-M-Brown","barcode":"","position":1,"option1":"M","option2":"Brown","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/65552f0cfe6c86c81154129a8f6d50fb.jpeg","path":"65552f0cfe6c86c81154129a8f6d50fb.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"30","retail_price":"0","available":true,"url":"\/products\/turtleneck-elegant-slim-jumpsuit?variant=c1c0ece3-c137-49e5-b92e-3ab5649c86b4","available_quantity":999999999,"options":[{"name":"Size","value":"M"},{"name":"Color","value":"Brown"}],"off_ratio":0,"flashsale_info":[],"sales":4};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
people are viewing this right now
Size:
M
${function(){
const optName = "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}
`
}()}
Color:
Brown
${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}
`
}()}
Add to cart
€30.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":"c1c0ece3-c137-49e5-b92e-3ab5649c86b4","product_id":"d9ac4a5c-1a34-4b78-9a9e-75137830b0a2","title":"M-Brown","weight_unit":"kg","inventory_quantity":100,"sku":"vj88-M-Brown","barcode":"","position":1,"option1":"M","option2":"Brown","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/65552f0cfe6c86c81154129a8f6d50fb.jpeg","path":"65552f0cfe6c86c81154129a8f6d50fb.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"30","retail_price":"0","available":true,"url":"\/products\/turtleneck-elegant-slim-jumpsuit?variant=c1c0ece3-c137-49e5-b92e-3ab5649c86b4","available_quantity":999999999,"options":[{"name":"Size","value":"M"},{"name":"Color","value":"Brown"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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":"c1c0ece3-c137-49e5-b92e-3ab5649c86b4","product_id":"d9ac4a5c-1a34-4b78-9a9e-75137830b0a2","title":"M-Brown","weight_unit":"kg","inventory_quantity":100,"sku":"vj88-M-Brown","barcode":"","position":1,"option1":"M","option2":"Brown","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/65552f0cfe6c86c81154129a8f6d50fb.jpeg","path":"65552f0cfe6c86c81154129a8f6d50fb.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":30,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"30","retail_price":"0","available":true,"url":"\/products\/turtleneck-elegant-slim-jumpsuit?variant=c1c0ece3-c137-49e5-b92e-3ab5649c86b4","available_quantity":999999999,"options":[{"name":"Size","value":"M"},{"name":"Color","value":"Brown"}],"off_ratio":0,"flashsale_info":[],"sales":4};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('2');
const maxDays = parseInt('7');
const customText = "Estimated time of shipment\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
${tipText}
`;
}()}
${function() {
const postageFreeAmount = 1;
const custom_text = "No minimum purchase, free shipping on all orders";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}