Vintage Mid-rise Straight-leg Print Pants
${function() {
const variantData = data.variant || {"id":"831c22cc-c61c-444b-a50e-a8049663666d","product_id":"f4553de9-8d45-4bd9-906d-33abff7dd57e","title":"Blue-US6","weight_unit":"kg","inventory_quantity":200,"sku":"YJ5365-Blue-US6","barcode":"","position":1,"option1":"Blue","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ba5bc0fda25c85523307290f2a5a95f.jpeg","path":"0ba5bc0fda25c85523307290f2a5a95f.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"55.99","price":"38.99","retail_price":"55.99","available":true,"url":"\/products\/retro-mid-rise-jeans-flare-slit-denim-pants-3?variant=831c22cc-c61c-444b-a50e-a8049663666d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"US6"}],"off_ratio":30,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Blue
${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:
US6
${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
$38.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":"831c22cc-c61c-444b-a50e-a8049663666d","product_id":"f4553de9-8d45-4bd9-906d-33abff7dd57e","title":"Blue-US6","weight_unit":"kg","inventory_quantity":200,"sku":"YJ5365-Blue-US6","barcode":"","position":1,"option1":"Blue","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ba5bc0fda25c85523307290f2a5a95f.jpeg","path":"0ba5bc0fda25c85523307290f2a5a95f.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"55.99","price":"38.99","retail_price":"55.99","available":true,"url":"\/products\/retro-mid-rise-jeans-flare-slit-denim-pants-3?variant=831c22cc-c61c-444b-a50e-a8049663666d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"US6"}],"off_ratio":30,"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":"831c22cc-c61c-444b-a50e-a8049663666d","product_id":"f4553de9-8d45-4bd9-906d-33abff7dd57e","title":"Blue-US6","weight_unit":"kg","inventory_quantity":200,"sku":"YJ5365-Blue-US6","barcode":"","position":1,"option1":"Blue","option2":"US6","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0ba5bc0fda25c85523307290f2a5a95f.jpeg","path":"0ba5bc0fda25c85523307290f2a5a95f.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"55.99","price":"38.99","retail_price":"55.99","available":true,"url":"\/products\/retro-mid-rise-jeans-flare-slit-denim-pants-3?variant=831c22cc-c61c-444b-a50e-a8049663666d","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"US6"}],"off_ratio":30,"flashsale_info":[],"sales":0};
return `
`
}()}