Craft CMS Asked by Taher on July 9, 2021
Recently Craft provide checkout without payment but not working for me. I followed the instruction of craft doc. set config variable: allowCheckoutWithoutPayment
https://craftcms.com/docs/commerce/3.x/making-payments.html#deferred-payment-at-checkout
Here is my code.
<form autocomplete="off" novalidate method="post" class="form" id="paymentForm">
<div class="hidden" style="display: none;">
{{ csrfInput() }}
{{ hiddenInput('action', 'commerce/cart/complete') }}
{{ redirectInput('/store/order-placed/{number}') }}
</div>
<div class="mt-2 flex items-center justify-between">
<div class="show-inline">
<button type="submit" name="submit" class="btn btn-sm btn-indigo">Submit Your Quote</button>
<img src="{{ siteUrl }}assets/images/ajax-loader.gif" class="ajax-loader">
</div>
</div>
</form>
Thanks for help cheers
I set config variable to general config instead of commerce config. That's all..
Correct answer by Taher on July 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP