We have downloadable products without price (0.00€) and added the mysterious price.phtml
. Everything works fine, except that the price isn't showed.
I checked with xdebug and the price is printed, but removed through JavaScript. So I dug deeper and found this:
//varien/product.js:728
if (price > 0 || this.displayZeroPrice) {
formattedPrice = this.formatPrice(price);
} else {
formattedPrice = '';
}
displayZeroPrice
is set to false
and I didn't know why, because it is set to true
in the beginning of the file.
dig... dig...
/app/design/frontend/base/default/template/downloadable/catalog/product/links.phtml:89
optionsPrice.displayZeroPrice = false;
Ok problem found, template copied and problem solved, BUT...
Is this intended? Is there maybe a configuration setting I didn't found and don't understand who it is injected into the JS configuration?