Blog Sections Open

Applying Markups and Rounding Rules to Shopkeeper Prices Automatically

If pricing depends on repeatable rules such as a fixed markup plus rounding, encode the rule once and let the product data follow it.

When a catalog needs a standard markup rule, such as adding 20% and rounding to the nearest ten, the safest solution is not manual editing. It is a repeatable pricing rule that runs on save, on import, or through a controlled batch update.

Whether the update happens through SQL, a save hook, or an import helper, the key is to make the rule explicit and reproducible. That way price logic lives in one place instead of being scattered through product records.

Newer post

Sorting Ditto Results with AJAX After autoFilter Selection

How to add AJAX-driven sorting on top of an already filtered Ditto result set without rebuilding the whole page experience.

Older post

Adding Price Sorting to autoFilter Product Listings

How to combine autoFilter with explicit price sorting controls without breaking the current filter state.