OpenCart 2.3–4.1 extension

Supreme Price Rounding and Price Floor Rules

Make every price look the way you want it to, and make sure no sale or discount price ever falls below a floor. Rules round prices to .99, .00, .50 or any step such as 0.05 by category, you preview exactly what would change, apply it with one click and undo it later. No core files are changed: the new prices are written to the normal price fields, so every page, the cart and the order show the same price.

$20
Supreme Price Rounding and Price Floor Rules — overview

What you can do

  • Rules for one category (with its sub-categories) or the whole shop.
  • Round to an ending (.99, .95, .49, .00 ...) or to a step (0.05, 0.50, 1, 5 ...). Choose nearest, up or down.
  • A price floor: any price below it is lifted to the first rounded price at or above the floor. Use it to keep sale and discount prices from going too low.
  • Choose which prices a rule changes: the product price, the special prices, the customer-group discount prices.
  • Many rules: the first rule in sort order that covers a price decides it, so a special category rule can come before a general one.
  • Preview first: see every product with its old and new price, and the number of changes, before anything is written.
  • Apply a single rule or every active rule. Every run is saved in a history, and one click puts all prices back (a price you changed by hand since is left alone and counted as skipped).
  • Optional: apply the rules whenever you add or save a product in the admin, so new prices always fit.
  • Admin permissions: opening and previewing need view rights, saving rules, applying and undoing need change rights. A switch turns the page off.

Works with

OpenCart 2.3, 3.0, 4.0 and 4.1 (one zip for each). On 4.1 the special and discount prices are read from the product discount table; percentage and amount-off rows are never changed.

Good to know

Screenshots are still to be added.

  • Prices are changed in the shop default currency. Other currencies are converted from it as usual, so a .99 price in the default currency can show another ending in a converted currency.
  • A run changes at most 20000 price rows; the page tells you when that limit was reached and you run it again for the rest.
  • The rules apply when you press Apply (or on a product save when you switch that option on). Prices that a bulk import or a feed writes later are not touched until you apply again.
  • The history keeps one year.
  • A "was" price needs no extra code: the shop already shows the normal price struck through next to a special price.
  • The rules, the history and the undo log stay in your database when you uninstall the module.
  • Tested on the four versions with the real admin installer, 92 to 102 checks each: every ending and step in every direction, the floor, rule priority, sub-categories, preview without changes, apply and exact undo, undo when a price was changed by hand, the automatic run on a real product save, permissions, the on/off switch, uninstall and reinstall. The page was also opened in a real browser on 4.1.

Screenshots

Supreme Price Rounding and Price Floor Rules — Admin settings part 1
Admin settings part 1
Supreme Price Rounding and Price Floor Rules — Backend settings
Backend settings

More modules

You May Also Need.

Supreme Purchase Orders and Suppliers

Buy stock the organised way, inside your OpenCart admin: keep your suppliers and their prices, send purchase orders by e-mail, book deliveries straight into stock, record what you paid and see what to reorder before it runs out. One admin page, no monthly fee, no outside service, no core files changed.

See all OpenCart modules