Price Rounding Rules in the Trade Catalog: Overview of Methods

The price rounding rule is a set of settings that define how to modify the price of a product or service in the cart. They help automatically round prices, for example, to the nearest whole number or to a specific decimal place.

There are three types of price rounding:

  • mathematical rounding
  • rounding up: the price increases, which benefits the store
  • rounding down: the price decreases, which benefits the customer

Quick navigation: all methods and events

Connection of Price Rounding Rules with Other Objects

Price Types. To create different types of prices: wholesale, retail, and partner, use the methods of the group catalog.priceType.* . For each price type, you can set your own rounding rules. This will allow you to control how prices will be displayed and applied.

Overview of Methods and Events

Scope: catalog

Who can execute the method: administrator

Method

Description

catalog.roundingRule.add

Adds a price rounding rule

catalog.roundingRule.update

Modifies a price rounding rule

catalog.roundingRule.get

Returns information about a price rounding rule by its identifier

catalog.roundingRule.list

Returns a list of price rounding rules

catalog.roundingRule.delete

Deletes a price rounding rule

catalog.roundingRule.getFields

Returns the fields of a price rounding rule

Event

Triggered

CATALOG.ROUNDING.ON.ADD

When a price rounding rule is added

CATALOG.ROUNDING.ON.UPDATE

When a price rounding rule is updated

CATALOG.ROUNDING.ON.DELETE

When a price rounding rule is deleted