Bonus system

Bonus system for Shop-Script

flexibly manage accrual and write-off

4.5 4 ratings

7 days free

To try out this plugin, open it in the Installer app in your Webasyst.

Basic version Premium version
Your review
Installs
100+
Developer
Integration in "Checkout in cart"

If you want to enable payment with bonuses on the "Checkout in the cart" page, simply enable the corresponding profile. No additional action is required. The plugin uses a standard form for applying bonuses to an order.


Integration into "Step by step checkout"

To enable the "Bonus System" you need to make 2 changes to the template responsible for the cart. For the Default theme (and most other themes), this is the cart.html file located at the address from the root directory of the site (using the Default theme as an example) /wa-data/public/shop/themes/default/cart.html

  1. Need to find all occurrences of shopAffiliate::isEnabled() and replace it with shopBoPluginAdapter::isEnabled() in the Default theme this line appears in two places

  2. At the very top of the cart.html file (or similar) add the following code:

    {$add_affiliate_bonus = $wa->shop->boPlugin->get('add_affiliate_bonus')} {$affiliate_bonus = $wa->shop->boPlugin->get('affiliate_bonus')} {$potential_affiliate_discount = $wa->shop->boPlugin->get('potential_affiliate_discount')} {$use_affiliate = $wa->shop->boPlugin->get('use_affiliate')} {$used_affiliate_bonus = $wa->shop->boPlugin->get('used_affiliate_bonus')}

After making these changes, the Bonus System will start using the standard form of applying bonuses

Since the "Payment with Bonuses" profile uses the same form of points as the standard affiliate program, they cannot work together. After enabling the "Payment with bonuses" Profile, the affiliate program will be automatically disabled.