Custom Units + BurnEngine

ThemeBurn SupportForumsOpenCart ThemesBurnEngineCustom Units + BurnEngine

This topic has been marked as resolved.

Hi there, still have problems with integrating mod CustomUnits to my Pavillion theme. And this becomes as HUGE problem. Our shop can`t work properly without this mod…

Developer of Custom Units aswered me:

“The problem is due to your custom theme filtering the price output format. Because Custom Unit adds the unit after the price. Please do the following code modification to fix the issue on product page:
1. open & edit /catalog/view/theme/BurnEngine/template/product/product.tpl
2. look for the following code on line 317:
  <?php $price = $tbData->priceFormat($price); ?>
3. modify it by commenting out as such:
  <?php //$price = $tbData->priceFormat($price); ?>
4. look for the following code on line 321:
  <?php $special = $tbData->priceFormat($special); ?>
5. modify it by commenting out as such:
  <?php //$special = $tbData->priceFormat($special); ?>
As for category pages, I can’t find the relevant code to remove product price filtering. Maybe you can consult the developers of your custom theme for further support on the matter.

Need to provide this CustomUnits on whole site, not only product page >_<

Guys need help asap, loosing money and patience…

June 15, 2016 at 12:17 pm #48753

Open system/vendor/BurnEngine/library/PriceFormatter.php, go to line 37 and insert return $price; statement, so it becomes:

    public function format($price)
        return $price; 
        switch ($this->format_method) {
            case 'mb':

Try this workaround to see if it helps.

June 15, 2016 at 12:32 pm #48762

Thanx alot! Works!

June 15, 2016 at 12:52 pm #48765

Glad we’ve helped.

ThemeBurn team

June 21, 2016 at 3:08 pm #48938
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.