The author
but1head
Packages
8
Downloads
2 073
Автор дополнения
Packages
8
Downloads
2 073
Version 1.0.3-pl
Release date 06.17.2017
Downloads 27
Views 193
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.


<cut/>
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.




Installation
On the checkout page
{var $msBonus = '!msBonus' | snippet}
{$msBonus.form} - a form for writing off bonuses
{$msBonus.discount} - 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.

1.0.3-pl

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

1.0.2-beta

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

1.0.1-beta

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

1.0.0-beta

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