cancel
Showing results for 
Search instead for 
Did you mean: 

Edit PHTML template in Magento2

Edit PHTML template in Magento2

I would like to edit Checkout Page. I need the location of the HTML Template of Checkout Page.

Tags (2)
3 REPLIES

Re: Edit PHTML template in Magento2

@foysal,

By default most of the content is coming from Knockout js in magento 2.

Main entry point of checkout page phtml file is,

vendor/magento/module-checkout/view/frontend/templates/onepage.phtml

But its doen't contain all logic of checkout page, Its just initialization of Magento 2 Knockout templates,

You can got it from 

/vendor/magento/module-checkout/view/frontend/web/template
and 
/vendor/magento/module-checkout/view/frontend/web/js

Hope you will helpful.

If Issue Solved, Click Kudos/Accept As solutions.

Re: Edit PHTML template in Magento2

Thanks @Rakesh Jesadiya for your reply. Actually I am looking for the HTML of the below Form to Edit the Form.

chekout_form.png


But I am not getting any HTML at the location you mentioned. 

Thanks

Re: Edit PHTML template in Magento2

Above all of the field is coming from Magento_Ui module.

 

Just go to folder at below path,

 

vendor/magento/module-ui/view/frontend/web/templates/form/element

All textfield is coming from input.html file, Dropdown field is coming from select.html file.

 

Above all the field is coming dynamically so one input.html file is responsible for all textfield of shipping and billing form.

If Issue Solved, Click Kudos/Accept As solutions.