The author
2 690
Автор дополнения
2 690
Version 1.0.3-pl
Release date 06.17.2017
Downloads 40
Views 661
Warning! This component requires PHP version 7.0 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.3 !
Accrual of bonuses for purchases and their further write-off as payment for new orders. On the whole store the bonus rate is set, for example: 10 rubles. Or 20% of the cost of goods, as well as each product you can set its own coefficient.

Charges and charges are displayed in the order window.

When creating an order, bonuses (the amount that the buyer decided to spend) are written off, the transaction is written off (the procurement for history is charged in the personal account). Bonuses are awarded when the status of the order is «paid». When canceling an order, the accrued bonuses are written off, and the spent ones are returned, just everything is logged in the transactions.

By default when paying an order bonuses, the buyer will not be credited bonuses, in the settings of the component, you can disable this.
I took it all in one plug-in for more convenient customization for any project.

On the checkout page
{var $msBonus = '!msBonus' | snippet}
{$msBonus.form} - a form for writing off bonuses
{$} - how many bonuses are "reserved"
{$msBonus.accrual} - How many bonuses will be credited

On the product page, the {$bonus} placeholder is available with the number of bonuses that will be received upon the purchase of the goods.

Discuss it in MODX.PRO community.


  • Выход из беты
  • Добавлена история транзакций (на странице заказов)
  • Добавлена панель счетов пользователей (на странице заказа, можно пополнять бонусы с админки)


  • Мелкие исправления


  • Добавлена возможность указать коэффициент оплаты заказа бонусами (максимум 500 руб или 50%)
  • Мелкие исправления


  • Первый релиз