magvike-TMmagvikeTM-🔥🔥MEN'S LONG SLEEVE THICKENING CARDIGAN WARM CASUAL JACKET
${function() {
const variantData = data.variant || {"id":"f80f35b7-e6c2-43f1-a439-11dc4e1919d6","product_id":"defd326b-29d6-46b7-a75d-74210d74e86e","title":"Navy blue-S","weight_unit":"kg","inventory_quantity":998,"sku":"P--Navy blue-S-1","barcode":"","position":1,"option1":"Navy blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","path":"bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":57.98,"min_quantity":1}],"weight":"0","compare_at_price":"99.99","price":"57.98","retail_price":"99.99","available":true,"url":"\/products\/casual-jacket8f5130b5-9eae-4ac8-b9fb-0c91829df9c30c1186df-eb07-4222-b506-91a485b5e1dfae2978a0-9ff2-4527-9413-505cede221fd?variant=f80f35b7-e6c2-43f1-a439-11dc4e1919d6","available_quantity":999999999,"options":[{"name":"Color","value":"Navy blue"},{"name":"Size","value":"S"}],"off_ratio":42,"flashsale_info":[],"sales":3};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Navy 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:
S
${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
$57.98
${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":"f80f35b7-e6c2-43f1-a439-11dc4e1919d6","product_id":"defd326b-29d6-46b7-a75d-74210d74e86e","title":"Navy blue-S","weight_unit":"kg","inventory_quantity":998,"sku":"P--Navy blue-S-1","barcode":"","position":1,"option1":"Navy blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","path":"bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":57.98,"min_quantity":1}],"weight":"0","compare_at_price":"99.99","price":"57.98","retail_price":"99.99","available":true,"url":"\/products\/casual-jacket8f5130b5-9eae-4ac8-b9fb-0c91829df9c30c1186df-eb07-4222-b506-91a485b5e1dfae2978a0-9ff2-4527-9413-505cede221fd?variant=f80f35b7-e6c2-43f1-a439-11dc4e1919d6","available_quantity":999999999,"options":[{"name":"Color","value":"Navy blue"},{"name":"Size","value":"S"}],"off_ratio":42,"flashsale_info":[],"sales":3};
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":"f80f35b7-e6c2-43f1-a439-11dc4e1919d6","product_id":"defd326b-29d6-46b7-a75d-74210d74e86e","title":"Navy blue-S","weight_unit":"kg","inventory_quantity":998,"sku":"P--Navy blue-S-1","barcode":"","position":1,"option1":"Navy blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","path":"bb8d46061f3ddc1a8e52c9f5095a615e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":57.98,"min_quantity":1}],"weight":"0","compare_at_price":"99.99","price":"57.98","retail_price":"99.99","available":true,"url":"\/products\/casual-jacket8f5130b5-9eae-4ac8-b9fb-0c91829df9c30c1186df-eb07-4222-b506-91a485b5e1dfae2978a0-9ff2-4527-9413-505cede221fd?variant=f80f35b7-e6c2-43f1-a439-11dc4e1919d6","available_quantity":999999999,"options":[{"name":"Color","value":"Navy blue"},{"name":"Size","value":"S"}],"off_ratio":42,"flashsale_info":[],"sales":3};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}