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
-
Need to find all occurrences of
shopAffiliate::isEnabled()and replace it withshopBoPluginAdapter::isEnabled()in the Default theme this line appears in two places
-
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.









