Retro Buffalo Plaid Stripe Pattern Shirt Jacket
${function() {
const variantData = data.variant || {"id":"6ec67f9f-da57-4d1a-8ed6-0db7a1972904","product_id":"2af099d7-5c6b-4065-beda-12b8b5284fd9","title":"Red-M","weight_unit":"g","inventory_quantity":1,"sku":"DZ-182732-LSX-Red-M","barcode":"","position":1,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4db14ce56d2560088bb146eb5813127b.png","path":"4db14ce56d2560088bb146eb5813127b.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"500","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/retro-buffalo-plaid-stripe-pattern-shirt-jacket?variant=6ec67f9f-da57-4d1a-8ed6-0db7a1972904","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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:
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
$59.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":"6ec67f9f-da57-4d1a-8ed6-0db7a1972904","product_id":"2af099d7-5c6b-4065-beda-12b8b5284fd9","title":"Red-M","weight_unit":"g","inventory_quantity":1,"sku":"DZ-182732-LSX-Red-M","barcode":"","position":1,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4db14ce56d2560088bb146eb5813127b.png","path":"4db14ce56d2560088bb146eb5813127b.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"500","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/retro-buffalo-plaid-stripe-pattern-shirt-jacket?variant=6ec67f9f-da57-4d1a-8ed6-0db7a1972904","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"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.
${function(){
const variantData = data.variant || {"id":"6ec67f9f-da57-4d1a-8ed6-0db7a1972904","product_id":"2af099d7-5c6b-4065-beda-12b8b5284fd9","title":"Red-M","weight_unit":"g","inventory_quantity":1,"sku":"DZ-182732-LSX-Red-M","barcode":"","position":1,"option1":"Red","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4db14ce56d2560088bb146eb5813127b.png","path":"4db14ce56d2560088bb146eb5813127b.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"500","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/retro-buffalo-plaid-stripe-pattern-shirt-jacket?variant=6ec67f9f-da57-4d1a-8ed6-0db7a1972904","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}