Categories

Featured templates

PrestaShop 1.6.x. How to configure product price decimals

Ivy van Westerholt June 23, 2016
Rating: 4.0/5. From 4 votes.
Please wait...

The following tutorial will show you how to configure the product’s price decimals in PrestaShop 1.6.x.

  1. Please, log into your PrestaShop admin panel.

  2. Navigate to Preferences -> General section.

    PrestaShop-1.6.x.-How-to-configure-product-price-decimals-2
  3. Here you can set the preferable Round mode.

    PrestaShop-1.6.x.-How-to-configure-product-price-decimals-3

    Once taxes and discount are applied, a price can feature too many decimals, such as $42.333333333. The round mode is used throughout PrestaShop, in the front-office price display as well as during the price calculation process (taxes, discount, etc.). In and off themselves, they change little to the way things are calculated, but the impact is much bigger once taken into account in the invoice total, when many items are added up to taxes and discounts. There are six modes:

    • Round up away from zero, when it is half way there. This is the recommended mode. 42.55555555 becomes 42.56

    • Round down towards zero, when it is half way there. 42.55555555 becomes 42.56

    • Round towards the next even value. 42.55555555 becomes 42.56

    • Round towards the next odd value. 42.55555555 becomes 42.56

    • Round up to the nearest value. 42.55555555 becomes 42.56

    • Round down to the nearest value. 42.55555555 becomes 42.55

  4. You can also choose the Round type.

    PrestaShop-1.6.x.-How-to-configure-product-price-decimals-4

    This option allows you to choose the type of rounding, which can greatly impact the calculation of the total. There are three available types, in the progressive order:

    • Round on each item. Each item price will be rounded before the calculation of the total. If there is more than one of the same items, each of those will be rounded separately before the calculation.

    • Round on each line. Each line of items will be rounded before the calculation of the total. If there is more than one of the same items, the rounding will be done on their total value.

    • Round on the total. The rounding will only be done on the final calculation, after the values of all items have been added up.

  5. Now you can set the Number of decimals.

    PrestaShop-1.6.x.-How-to-configure-product-price-decimals-5

    You can choose the number of decimals that the value should be rounded to:

    • If you choose “3”, 42.333333333 becomes 42.334

    • If you choose “2”, 42.333333333 becomes 42.33

    • If you choose “1”, 42.333333333 becomes 42.3

    • If you choose “0”, 42.333333333 becomes 42

This is the end of the tutorial. Now you know how to configure the product’s price decimals in PrestaShop 1.6.x.

Feel free to check the detailed video tutorial below:

PrestaShop 1.6.x. How to configure product price decimals
Premium Prestashop Themes
This entry was posted in PrestaShop Tutorials and tagged decimal, Prestashop, price, product. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket