Does not correctly display the value on the product page

ThemeBurn SupportForumsOpenCart ThemesTechnopolis OpenCart ThemeDoes not correctly display the value on the product page

This topic has been marked as resolved.

Good morning, I’m working in the store with a minimum amount. In the product registration I specify a minimum quantity of 1000. The unit price is 0.058. When accessing the page it shows as follows 0.06 for 1000 pieces but when increasing to 1001 it calculates correctly and goes to 58.00. segue o print quando acessa pela primeira vez http://prntscr.com/jlkbbs. Now the print of how I said add plus one in the amount it calculates correct http://prntscr.com/jlkcfo.

print of administrative area http://prntscr.com/jlkd6r. How to solve this error? and if it is possible to make the price not round?

 wdevel
May 23, 2018 at 2:46 pm #64310

Hi,

The price rounding is controlled from Admin > System > Localization > Currencies > Your currency > Decimal places:

https://i.imgur.com/hFUOynR.png

You need to choose how many symbols you wan to show after the decimal point. The default value is 2.

BR,
ThemeBurn team

May 25, 2018 at 2:45 pm #64356

We need that when the product page is loaded, the value is loaded calculated with the minimum quantity that is 1000, but it is not what is happening, it loads with value as if the quantity were 1, even being “1000″ in quantity.

Noting that when you change the quantity through the arrows, it calculates the value correctly according to the quantity.

 wdevel
May 28, 2018 at 6:23 pm #64429

Hi,

1) Open catalog/view/theme/BurnEngine/template/product/product.tpl

2) Find this code block:

<script type="text/javascript">
$(document).ready(function() {
    $('#content').find('select[name="profile_id"], :input[name^="option"], :input[name^="quantity"]').change(function(){

        .......................

    });
});
</script>

3) Insert an event trigger trigger

<script type="text/javascript">
$(document).ready(function() {
    $('#content').find('select[name="profile_id"], :input[name^="option"], :input[name^="quantity"]').change(function(){

        .......................

    }).trigger('change');
});
</script>

This should do the job.

BR,
ThemeBurn team

May 29, 2018 at 1:14 pm #64455

Thank you.

 wdevel
May 29, 2018 at 2:19 pm #64462

I’m working with 3 decimal places. But I wanted to show the value in the page of products with 2 houses by matching the value of the 3 decimal places up. How do I do that?

EXAMPLE: http://prntscr.com/jo1wda

 wdevel
May 29, 2018 at 3:43 pm #64465

Hi,

Unfortunately this is not possible.

BR,
ThemeBurn team

June 4, 2018 at 12:22 pm #64511
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.