简体   繁体   中英

Issue with price format on Product Page (getPriceHtml)

I'm having troubles with the price formatting on a product page of a downloadable product. The format (as defined globally) should be EUR 15.23. It work's fine in the sidebars, category pages, homepage and so on. Anyway, on the product page the price is shown wrong (without space): EUR15.23

catalog/product/view.phtml:

//calling once - price EUR15.23
<?php echo $this->getPriceHtml($_product, true); ?>

//calling twice - first price EUR15.23 second price EUR 15.23 (correct)
<?php echo $this->getPriceHtml($_product, true); ?> 

same problem when calling:

<?php echo $this->getChildHtml('product_type_data'); ?>

I think it has to do with the reloadPrice : function() JavaScript Code in downloadable/catalog/product/links.phtml

Anyone also had this problem? Actually I don't want to get through the JavaScript-Code and change something here as I do not want to change the core files.

Thanks!

Sure it isn't right solution, but if I got you right and it is always true that "first price EUR15.23 second price EUR 15.23 (correct)", then why not just

<?php $this->getPriceHtml($_product, true); // no output  ?> 
<?php echo $this->getPriceHtml($_product, true); // correct output ?> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM