people are viewing this right now
Tummy Control Cuffed Slim Fit Jeans (Buy 2 Free Shipping)
${function() {
const variantData = data.variant || {"id":"0cab146f-35f7-44ba-939a-efefb4f4d192","product_id":"1801dbcf-d44b-45a0-8ee9-e43645a11e89","title":"Black-Petite-XS (0-2)","weight_unit":"kg","inventory_quantity":26,"sku":"TTB4271","barcode":"","position":43,"option1":"Black","option2":"Petite","option3":"XS (0-2)","note":"","image":{"src":"\/\/img.staticdj.com\/0367171d7e65b32e52c651208a63a3f1.jpeg","path":"0367171d7e65b32e52c651208a63a3f1.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"77.99","price":"39.99","retail_price":"77.99","available":true,"url":"\/products\/tummy-control-cuffed-slim-fit-jeans-buy-2-free-shipping?variant=0cab146f-35f7-44ba-939a-efefb4f4d192","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Inseam","value":"Petite"},{"name":"Size","value":"XS (0-2)"}],"off_ratio":49,"flashsale_info":[],"sales":3928};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Free Shipping on orders over $49.99
Color:
Black
${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}
`
}()}
Inseam:
Petite
${function(){
const optName = "Inseam";
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:
XS (0-2)
${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}
`
}()}
Add to cart
$39.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":"0cab146f-35f7-44ba-939a-efefb4f4d192","product_id":"1801dbcf-d44b-45a0-8ee9-e43645a11e89","title":"Black-Petite-XS (0-2)","weight_unit":"kg","inventory_quantity":26,"sku":"TTB4271","barcode":"","position":43,"option1":"Black","option2":"Petite","option3":"XS (0-2)","note":"","image":{"src":"\/\/img.staticdj.com\/0367171d7e65b32e52c651208a63a3f1.jpeg","path":"0367171d7e65b32e52c651208a63a3f1.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"77.99","price":"39.99","retail_price":"77.99","available":true,"url":"\/products\/tummy-control-cuffed-slim-fit-jeans-buy-2-free-shipping?variant=0cab146f-35f7-44ba-939a-efefb4f4d192","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Inseam","value":"Petite"},{"name":"Size","value":"XS (0-2)"}],"off_ratio":49,"flashsale_info":[],"sales":3928};
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":"0cab146f-35f7-44ba-939a-efefb4f4d192","product_id":"1801dbcf-d44b-45a0-8ee9-e43645a11e89","title":"Black-Petite-XS (0-2)","weight_unit":"kg","inventory_quantity":26,"sku":"TTB4271","barcode":"","position":43,"option1":"Black","option2":"Petite","option3":"XS (0-2)","note":"","image":{"src":"\/\/img.staticdj.com\/0367171d7e65b32e52c651208a63a3f1.jpeg","path":"0367171d7e65b32e52c651208a63a3f1.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"77.99","price":"39.99","retail_price":"77.99","available":true,"url":"\/products\/tummy-control-cuffed-slim-fit-jeans-buy-2-free-shipping?variant=0cab146f-35f7-44ba-939a-efefb4f4d192","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Inseam","value":"Petite"},{"name":"Size","value":"XS (0-2)"}],"off_ratio":49,"flashsale_info":[],"sales":3928};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('12');
const maxDays = parseInt('15');
const customText = "Estimated Delivery\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}
`;
}()}