oc-shopaholic / oc-orders-shopaholic-plugin

🛒 Orders (cart) extension for Shopaholic plugin
https://octobercms.com/plugin/lovata-ordersshopaholic
GNU General Public License v3.0
27 stars 18 forks source link

Add a setting for disabling the automatic cart clearing functionality #150

Closed SebastiaanKloos closed 3 years ago

SebastiaanKloos commented 3 years ago

Some users might want to clear the cart after the payment is done instead of before. This PR adds a setting for that. Users that disable this, can manually clear the cart by using the PaymentGateway::EVENT_PROCESS_RETURN_URL event.

kharanenka commented 3 years ago

Thanks for your contribution

SebastiaanKloos commented 3 years ago

@kharanenka @lautsevich Thank you so much for the quick review!