Testing our module
To test our newly created module we can apply these steps:
- We can now install our module via the BO modules manager controller.
- Then, we can add products to our cart on the FO of PrestaShop.
- Then, we can go to the checkout page. There, we can check in the payment options whether our Cash Payment module is available and displays the Pay by Cash option.
- By choosing it, we can check whether the confirmation page displays the appropriate information.
- Then, we can check whether the order was created with the
Awaiting cash payment
order state.