PLUS LOFTS Men's Faux Leather Velvet Jacket
${function() {
const variantData = data.variant || {"id":"53b53591-c4aa-441c-b2b5-f970f9e830d0","product_id":"b18ff186-18ad-49a6-9d91-7a04e97c889e","title":"Red-XXL","weight_unit":"g","inventory_quantity":686,"sku":"","barcode":"","position":1,"option1":"Red","option2":"XXL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/45db948a31bbbf45b6138b213878c1a1.jpeg","path":"45db948a31bbbf45b6138b213878c1a1.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.8,"min_quantity":1}],"weight":"637","compare_at_price":"42.6","price":"29.8","retail_price":"42.6","available":true,"url":"\/products\/plus-lofts-mens-faux-leather-velvet-jacket-aui8?variant=53b53591-c4aa-441c-b2b5-f970f9e830d0","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"XXL"}],"off_ratio":30,"flashsale_info":[],"sales":546};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Red
${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:
XXL
${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
$29.80
${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":"53b53591-c4aa-441c-b2b5-f970f9e830d0","product_id":"b18ff186-18ad-49a6-9d91-7a04e97c889e","title":"Red-XXL","weight_unit":"g","inventory_quantity":686,"sku":"","barcode":"","position":1,"option1":"Red","option2":"XXL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/45db948a31bbbf45b6138b213878c1a1.jpeg","path":"45db948a31bbbf45b6138b213878c1a1.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.8,"min_quantity":1}],"weight":"637","compare_at_price":"42.6","price":"29.8","retail_price":"42.6","available":true,"url":"\/products\/plus-lofts-mens-faux-leather-velvet-jacket-aui8?variant=53b53591-c4aa-441c-b2b5-f970f9e830d0","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"XXL"}],"off_ratio":30,"flashsale_info":[],"sales":546};
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.