Skip to content

0.13.0 Product Rounding Configuration

Latest

Choose a tag to compare

@IlvarsSvanda IlvarsSvanda released this 25 Feb 15:37
37942af

What's Changed

  • LMM-111 Implement rounding in RON in #156

Full Changelog: 0.12.0...0.13.0

Overview

This release introduces a new configuration option that enables automatic product price rounding for the Romanian (RON) installment calculator. This feature ensures that product prices are always rounded up to the nearest value divisible by 5 before querying the installment rate table, resolving cases where products with prices not matching exact table values (e.g., 263 RON) would fail to display installment options.

What's New

Product Rounding Configuration

Location: Stores → Configuration → Sales → Payment Methods → Leanpay Installment price

A new admin configuration field "Enable Product Rounding" has been added to control automatic price rounding behavior.

How it works:

  • When enabled, product prices are automatically rounded up to the nearest value divisible by 5 before retrieving installment estimates
  • Example: A product priced at 263 RON will be rounded to 265 RON to match the installment table values (250, 255, 260, 265, etc.)
  • This feature only applies to the Romanian (RON) plugin and does not affect Slovenian or Croatian implementations

Default behavior: Disabled (opt-in feature)