magvikeTM Men's Solid Color Ripped Knit Cardigan
${function() {
const variantData = data.variant || {"id":"ce7f8ea6-f52d-4646-961b-5799ce96d96f","product_id":"469b7774-5d2e-49c2-840b-b34e9d3e2d4a","title":"Cardigan-Army Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"09269612D_Cardigan||Army Green||M||G","barcode":"","position":1,"option1":"Cardigan","option2":"Army Green","option3":"M","note":"","image":{"src":"\/\/img.staticdj.com\/168fb8d0990c440a95e166e51caf61b1.jpeg","path":"168fb8d0990c440a95e166e51caf61b1.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":118.95,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"118.95","retail_price":"0","available":true,"url":"\/products\/mens-solid-color-ripped-knit-cardigan?variant=ce7f8ea6-f52d-4646-961b-5799ce96d96f","available_quantity":999999999,"options":[{"name":"PRODUCT TYPE","value":"Cardigan"},{"name":"COLOR","value":"Army Green"},{"name":"SIZE","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Product Type:
Cardigan
${function(){
const optName = "PRODUCT TYPE";
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:
Army Green
${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:
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}
`
}()}
Add to cart
$118.95
${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":"ce7f8ea6-f52d-4646-961b-5799ce96d96f","product_id":"469b7774-5d2e-49c2-840b-b34e9d3e2d4a","title":"Cardigan-Army Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"09269612D_Cardigan||Army Green||M||G","barcode":"","position":1,"option1":"Cardigan","option2":"Army Green","option3":"M","note":"","image":{"src":"\/\/img.staticdj.com\/168fb8d0990c440a95e166e51caf61b1.jpeg","path":"168fb8d0990c440a95e166e51caf61b1.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":118.95,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"118.95","retail_price":"0","available":true,"url":"\/products\/mens-solid-color-ripped-knit-cardigan?variant=ce7f8ea6-f52d-4646-961b-5799ce96d96f","available_quantity":999999999,"options":[{"name":"PRODUCT TYPE","value":"Cardigan"},{"name":"COLOR","value":"Army Green"},{"name":"SIZE","value":"M"}],"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.
Sku : 09269612D_Cardigan||Army Green||M||G
${function(){
const variantData = data.variant || {"id":"ce7f8ea6-f52d-4646-961b-5799ce96d96f","product_id":"469b7774-5d2e-49c2-840b-b34e9d3e2d4a","title":"Cardigan-Army Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"09269612D_Cardigan||Army Green||M||G","barcode":"","position":1,"option1":"Cardigan","option2":"Army Green","option3":"M","note":"","image":{"src":"\/\/img.staticdj.com\/168fb8d0990c440a95e166e51caf61b1.jpeg","path":"168fb8d0990c440a95e166e51caf61b1.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":118.95,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"118.95","retail_price":"0","available":true,"url":"\/products\/mens-solid-color-ripped-knit-cardigan?variant=ce7f8ea6-f52d-4646-961b-5799ce96d96f","available_quantity":999999999,"options":[{"name":"PRODUCT TYPE","value":"Cardigan"},{"name":"COLOR","value":"Army Green"},{"name":"SIZE","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}