Western feather cowboy mao
${function() {
const variantData = data.variant || {"id":"9da716bd-4820-4a1b-a79f-8a92903fc149","product_id":"fe6d192e-96d4-4163-a129-2cf5ec34e21a","title":"1#","weight_unit":"lb","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1#","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/19931a67ede21e1a353fe625d4e53eb4.jpeg","path":"19931a67ede21e1a353fe625d4e53eb4.jpeg","width":595,"height":561,"alt":"","aspect_ratio":1.0606060606060606},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"79.99","retail_price":"0","available":true,"url":"\/products\/western-feather-cowboy-mao9cc5d17b-c09f-49cd-ac5b-809766b43176-vzfk?variant=9da716bd-4820-4a1b-a79f-8a92903fc149","available_quantity":999999999,"options":[{"name":"color","value":"1#"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
1#
${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}
`
}()}
Add to cart
$79.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":"9da716bd-4820-4a1b-a79f-8a92903fc149","product_id":"fe6d192e-96d4-4163-a129-2cf5ec34e21a","title":"1#","weight_unit":"lb","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1#","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/19931a67ede21e1a353fe625d4e53eb4.jpeg","path":"19931a67ede21e1a353fe625d4e53eb4.jpeg","width":595,"height":561,"alt":"","aspect_ratio":1.0606060606060606},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"79.99","retail_price":"0","available":true,"url":"\/products\/western-feather-cowboy-mao9cc5d17b-c09f-49cd-ac5b-809766b43176-vzfk?variant=9da716bd-4820-4a1b-a79f-8a92903fc149","available_quantity":999999999,"options":[{"name":"color","value":"1#"}],"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":"9da716bd-4820-4a1b-a79f-8a92903fc149","product_id":"fe6d192e-96d4-4163-a129-2cf5ec34e21a","title":"1#","weight_unit":"lb","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1#","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/19931a67ede21e1a353fe625d4e53eb4.jpeg","path":"19931a67ede21e1a353fe625d4e53eb4.jpeg","width":595,"height":561,"alt":"","aspect_ratio":1.0606060606060606},"wholesale_price":[{"price":79.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"79.99","retail_price":"0","available":true,"url":"\/products\/western-feather-cowboy-mao9cc5d17b-c09f-49cd-ac5b-809766b43176-vzfk?variant=9da716bd-4820-4a1b-a79f-8a92903fc149","available_quantity":999999999,"options":[{"name":"color","value":"1#"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}