Product was successfully added to your shopping cart.
' +
'' +
'
' + product.name + '' +
'
' + formatSuggestionPrice(product, priceFormat) + '
' +
'
' +
'' +
'';
}
}
});
jQuery('#search').bind('typeahead:selected', function(obj, product, name) {
window.location.href = baseUrl + product.url_path;
});
function formatSuggestionPrice(product, priceFormat) {
var price = '';
switch (product.type_id) {
case 'grouped':
case 'configurable':
case 'bundle':
price = '' +
'Začetek: ' +
'' + formatCurrency(product.final_price, priceFormat, false) + '' +
'
';
break;
default:
price += '' +
formatCurrency(product.final_price, priceFormat, false) +
'';
}
return price;
}