2

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

Ares
  • 105
  • 7
Devios
  • 87
  • 2
  • 9

3 Answers3

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.

Khoa TruongDinh
  • 32,054
  • 11
  • 88
  • 155
  • Thanks for your replies ! How Do I know the type of payement ? – Devios Nov 08 '16 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 – Khoa TruongDinh Nov 08 '16 at 10:41
2

Place order button filepath comes from Checkout module:

vendor/magento/module-checkout/view/frontend/web/template/review/actions/default.html

Apply discount code field comes from template file,

vendor/magento/module-sales-rule/view/frontend/web/template/payment/discount.html
Rakesh Jesadiya
  • 42,221
  • 18
  • 132
  • 183
0

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

vendor/magento/module-payment/view/frontend/web/template/payment/free.html

and after static content deploy it will go under

pub/static/frontend/{package}/{theme}/en_US/Magento_Payment/template/payment/free.html

And for the discount:

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

and after static content deploy it will go under

pub/static/frontend/{package}/{theme}/en_US/Magento_SalesRule/template/payment/discount.html

Ashish Jagnani
  • 6,266
  • 7
  • 33
  • 70