I wanted to know where the button from the image is defined (The place order button in the payment step of checkout)

And also where is the discount code section defined?

enter image description here

3 Answers 3


In each payment, it defines its own the place order button, for example, for Cash On Delivery payment: vendor/magento/module-offline-payments/view/frontend/web/template/payment/cashondelivery.html.

For the discount: vendor/magento/module-sales-rule/view/frontend/web/template/payment/discount.html.

We need to override these templates.

  • Thanks for your replies ! How Do I know the type of payement ?
    – Devios
    Nov 8, 2016 at 10:37
  • You can go to admin STORE > Configuration > SALES > Payment Methods, you can see the payment methods. If you want to see some payment methods code, you can take a look at the vendor/magento folder. You can find some offline payment methods: vendor/magento/module-offline-payments/Model Nov 8, 2016 at 10:41

Place order button filepath comes from Checkout module:


Apply discount code field comes from template file,


You will get the Place order for zero subtotal method in file :


and after static content deploy it will go under


And for the discount:


and after static content deploy it will go under


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.