-->
{{{product_cats}}}
<#
var product_cats = [];
if(data._highlightResult !== undefined && data._highlightResult.taxonomies !== undefined && data._highlightResult.taxonomies.product_cat !== undefined) {
for (var index in data._highlightResult.taxonomies.product_cat) {
product_cats.push(data._highlightResult.taxonomies.product_cat[index].value);
}
}
product_cats = product_cats.join(', ');
#>
<# if(data.is_on_sale === true && data.product_type !== 'variable') { #>
{{data.formatted_regular_price}}
<# } #>
<# if(data.is_on_sale === true){ #>
Sale Price:
<# }else{ #>
Price:
<# } #>
{{data.formatted_price}}<# if(data.product_type === 'variable' && data.price !== data.max_price) { #> - {{data.formatted_max_price}}<# } #>
<# if( data.product_type === 'variable' && data.members_formatted_price_min && data.members_formatted_price_max ) { #>
<# if( data.price < data._hb_members_discount_value_min ) { #>
<# var min_price = data.formatted_price; #>
<# }else{ #>
<# var min_price = data.members_formatted_price_min; #>
<# } #>
<# if( data.max_price < data._hb_members_discount_value_max ) { #>
<# var max_price = data.formatted_max_price; #>
<# }else{ #>
<# var max_price = data.members_formatted_price_max; #>
<# } #>
{{min_price}} - {{max_price}}
<# }else if( data.members_formatted_price ){ #>
<# if( data.price < data._hb_members_discount_value ) { #>
{{data.formatted_price}}
<# }else{ #>
{{data.members_formatted_price}}
<# } #>
<# } #>
<# if(data.is_on_sale === true && data.product_type !== 'variable') { #> <# } #>
<#
var rate_in_percentage = (data.average_rating * 2 * 10);
//this will round the result to 2 decimal float
var multiplier = Math.pow(10, 2 || 0);
var rating_percentage = Math.round(rate_in_percentage * multiplier) / multiplier;
#>
<# if(data.rating_count > 0) { #>
Rated {{data.average_rating}} out of 5
<# } #>
<# if(data.product_type !== 'variable') { #>
<# } #>
Brewed with birch. Smoky sappy Grassy.