How edit PHTML template in Magento 2?Template file isn't inheriting from my block extending...
If the Captain's screens are out, does he switch seats with the co-pilot?
Latest web browser compatible with Windows 98
Does splitting a potentially monolithic application into several smaller ones help prevent bugs?
Am I not good enough for you?
Could a cubesat be propelled to the moon?
Who deserves to be first and second author? PhD student who collected data, research associate who wrote the paper or supervisor?
What do you call the air that rushes into your car in the highway?
What Happens when Passenger Refuses to Fly Boeing 737 Max?
What is the likely impact of grounding an entire aircraft series?
Do items de-spawn in Diablo?
Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?
Could a cubesat propel itself to Mars?
What is wrong with Escaped Shapeshifter's original wording?
How to create a hard link to an inode (ext4)?
String reversal in Python
How much stiffer are 23c tires over 28c?
How to pass a string to a command that expects a file?
A three room house but a three headED dog
Making a sword in the stone, in a medieval world without magic
show this identity with trigometric
BitNot does not flip bits in the way I expected
Is "history" a male-biased word ("his+story")?
How could our ancestors have domesticated a solitary predator?
PTIJ: How can I halachically kill a vampire?
How edit PHTML template in Magento 2?
Template file isn't inheriting from my block extending Mage_Core_Block_Template?How to edit a template file in Magento2?How is product data passed from a Block to knockout template?Display product base image in .phtml template fileHow to override adminhtml phtml in Magento2?Trying to override phtml templateOverride template phtml file in magento 2?How to initialize a block loader on an element which is being loaded by knockout.js in Magento 2?Magento2: Template how to edit headerHow to edit template header
How to Edit PHTML template in Magento 2?
I am trying to Edit PHTML template in Magento 2.
First I "Enabled Template Path Hints for Storefront" from Admin Panel.
Then I found that my template resides here "public_html/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml
". I went to that file and found below code there.
<div id="checkout" data-bind="scope:'checkout'" class="checkout-container">
<div id="checkout-loader" data-role="checkout-loader" class="loading-mask" data-mage-init='{"checkoutLoader": {}}'>
<div class="loader">
<img src="<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>"
alt="<?php /* @escapeNotVerified */ echo __('Loading...'); ?>"
style="position: absolute;">
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"#checkout": {
"Magento_Ui/js/core/app": <?php /* @escapeNotVerified */ echo $block->getJsLayout();?>
}
}
</script>
<script>
window.checkoutConfig = <?php /* @escapeNotVerified */ echo Zend_Json::encode($block->getCheckoutConfig()); ?>;
// Create aliases for customer.js model from customer module
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
window.customerData = window.checkoutConfig.customerData;
</script>
<script>
require([
'mage/url',
'Magento_Ui/js/block-loader'
], function(url, blockLoader) {
blockLoader("<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>");
return url.setBaseUrl('<?php /* @escapeNotVerified */ echo $block->getBaseUrl();?>');
})
</script>
</div>
I would like to edit PHTML template of Checkout Page. I would like to know the location of the PHTML file of Checkout Page.
magento2 template phtml
add a comment |
How to Edit PHTML template in Magento 2?
I am trying to Edit PHTML template in Magento 2.
First I "Enabled Template Path Hints for Storefront" from Admin Panel.
Then I found that my template resides here "public_html/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml
". I went to that file and found below code there.
<div id="checkout" data-bind="scope:'checkout'" class="checkout-container">
<div id="checkout-loader" data-role="checkout-loader" class="loading-mask" data-mage-init='{"checkoutLoader": {}}'>
<div class="loader">
<img src="<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>"
alt="<?php /* @escapeNotVerified */ echo __('Loading...'); ?>"
style="position: absolute;">
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"#checkout": {
"Magento_Ui/js/core/app": <?php /* @escapeNotVerified */ echo $block->getJsLayout();?>
}
}
</script>
<script>
window.checkoutConfig = <?php /* @escapeNotVerified */ echo Zend_Json::encode($block->getCheckoutConfig()); ?>;
// Create aliases for customer.js model from customer module
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
window.customerData = window.checkoutConfig.customerData;
</script>
<script>
require([
'mage/url',
'Magento_Ui/js/block-loader'
], function(url, blockLoader) {
blockLoader("<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>");
return url.setBaseUrl('<?php /* @escapeNotVerified */ echo $block->getBaseUrl();?>');
})
</script>
</div>
I would like to edit PHTML template of Checkout Page. I would like to know the location of the PHTML file of Checkout Page.
magento2 template phtml
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58
add a comment |
How to Edit PHTML template in Magento 2?
I am trying to Edit PHTML template in Magento 2.
First I "Enabled Template Path Hints for Storefront" from Admin Panel.
Then I found that my template resides here "public_html/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml
". I went to that file and found below code there.
<div id="checkout" data-bind="scope:'checkout'" class="checkout-container">
<div id="checkout-loader" data-role="checkout-loader" class="loading-mask" data-mage-init='{"checkoutLoader": {}}'>
<div class="loader">
<img src="<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>"
alt="<?php /* @escapeNotVerified */ echo __('Loading...'); ?>"
style="position: absolute;">
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"#checkout": {
"Magento_Ui/js/core/app": <?php /* @escapeNotVerified */ echo $block->getJsLayout();?>
}
}
</script>
<script>
window.checkoutConfig = <?php /* @escapeNotVerified */ echo Zend_Json::encode($block->getCheckoutConfig()); ?>;
// Create aliases for customer.js model from customer module
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
window.customerData = window.checkoutConfig.customerData;
</script>
<script>
require([
'mage/url',
'Magento_Ui/js/block-loader'
], function(url, blockLoader) {
blockLoader("<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>");
return url.setBaseUrl('<?php /* @escapeNotVerified */ echo $block->getBaseUrl();?>');
})
</script>
</div>
I would like to edit PHTML template of Checkout Page. I would like to know the location of the PHTML file of Checkout Page.
magento2 template phtml
How to Edit PHTML template in Magento 2?
I am trying to Edit PHTML template in Magento 2.
First I "Enabled Template Path Hints for Storefront" from Admin Panel.
Then I found that my template resides here "public_html/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml
". I went to that file and found below code there.
<div id="checkout" data-bind="scope:'checkout'" class="checkout-container">
<div id="checkout-loader" data-role="checkout-loader" class="loading-mask" data-mage-init='{"checkoutLoader": {}}'>
<div class="loader">
<img src="<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>"
alt="<?php /* @escapeNotVerified */ echo __('Loading...'); ?>"
style="position: absolute;">
</div>
</div>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"#checkout": {
"Magento_Ui/js/core/app": <?php /* @escapeNotVerified */ echo $block->getJsLayout();?>
}
}
</script>
<script>
window.checkoutConfig = <?php /* @escapeNotVerified */ echo Zend_Json::encode($block->getCheckoutConfig()); ?>;
// Create aliases for customer.js model from customer module
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
window.customerData = window.checkoutConfig.customerData;
</script>
<script>
require([
'mage/url',
'Magento_Ui/js/block-loader'
], function(url, blockLoader) {
blockLoader("<?php /* @escapeNotVerified */ echo $block->getViewFileUrl('images/loader-1.gif'); ?>");
return url.setBaseUrl('<?php /* @escapeNotVerified */ echo $block->getBaseUrl();?>');
})
</script>
</div>
I would like to edit PHTML template of Checkout Page. I would like to know the location of the PHTML file of Checkout Page.
magento2 template phtml
magento2 template phtml
edited 24 mins ago
magefms
1,439224
1,439224
asked Oct 16 '17 at 8:22
abu abuabu abu
3571622
3571622
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58
add a comment |
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58
add a comment |
3 Answers
3
active
oldest
votes
Copy the file to your theme. This will override the core template file.
New file should be located in below location where vendor and theme are your vendor name and theme name for custom theme.
app/design/frontend/vendor/theme/Magento_Checkout/templates/onepage.phtml
This file can then be modified accordingly.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
|
show 1 more comment
You can create HTML file or modify/override if exist from here.
app/design/frontend/vendor/theme/Magento_Checkout/web/template/onepage.html
and copy it from here
vendor/magento/module-checkout/web/template/onepage.html
Note :- In this file the contents are come from different file using knockout.js so you have to modify that file using knockout js.
I hope you get it what you want.
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is noweb
folder insidevendor/magento/module-checkout/
. Thanks
– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
add a comment |
Create your own theme at the location app/design/frontend/Vendor/Theme
& put your template file into it at the following location
app/design/frontend/Vendor/Theme/Magento_Checkout/templates/onepage.phtml
Copy the Code from
vendor/magento/module-Checkout/view/frontend/templates/onepage.phtml
And paste it to your template file in your own theme & edit it as of you want it to look like.
Note: You also need to take care of knockout js scripts as of in
checkout module of magento they used checkout for the template
rendering in frontend.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thephtml
file contains the html & php both the contents thats why it is saved as the.phtml
So the thing you got into this file it is your html with some amount of php
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to<div id=""checkout....
. There is Form with the idcheckout
. I am looking for that. Thanks.
– abu abu
Oct 16 '17 at 8:54
|
show 3 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f197390%2fhow-edit-phtml-template-in-magento-2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Copy the file to your theme. This will override the core template file.
New file should be located in below location where vendor and theme are your vendor name and theme name for custom theme.
app/design/frontend/vendor/theme/Magento_Checkout/templates/onepage.phtml
This file can then be modified accordingly.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
|
show 1 more comment
Copy the file to your theme. This will override the core template file.
New file should be located in below location where vendor and theme are your vendor name and theme name for custom theme.
app/design/frontend/vendor/theme/Magento_Checkout/templates/onepage.phtml
This file can then be modified accordingly.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
|
show 1 more comment
Copy the file to your theme. This will override the core template file.
New file should be located in below location where vendor and theme are your vendor name and theme name for custom theme.
app/design/frontend/vendor/theme/Magento_Checkout/templates/onepage.phtml
This file can then be modified accordingly.
Copy the file to your theme. This will override the core template file.
New file should be located in below location where vendor and theme are your vendor name and theme name for custom theme.
app/design/frontend/vendor/theme/Magento_Checkout/templates/onepage.phtml
This file can then be modified accordingly.
answered Oct 16 '17 at 8:35
harriharri
3,0011554
3,0011554
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
|
show 1 more comment
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
That is html and a bit of php, i think a lot of the checkout it loaded via ajax however. What do you need to modify?
– harri
Oct 16 '17 at 8:52
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
Thanks for your reply. I need to modify which is loaded via ajax. Thanks
– abu abu
Oct 16 '17 at 8:55
2
2
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@harri , checkout page load using knockout js.
– Sarfaraj
Oct 16 '17 at 8:57
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
@Sarfaraj, Could you please help to find out the HTML Code while checkout page load using knockout js. Thanks
– abu abu
Oct 18 '17 at 8:02
|
show 1 more comment
You can create HTML file or modify/override if exist from here.
app/design/frontend/vendor/theme/Magento_Checkout/web/template/onepage.html
and copy it from here
vendor/magento/module-checkout/web/template/onepage.html
Note :- In this file the contents are come from different file using knockout.js so you have to modify that file using knockout js.
I hope you get it what you want.
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is noweb
folder insidevendor/magento/module-checkout/
. Thanks
– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
add a comment |
You can create HTML file or modify/override if exist from here.
app/design/frontend/vendor/theme/Magento_Checkout/web/template/onepage.html
and copy it from here
vendor/magento/module-checkout/web/template/onepage.html
Note :- In this file the contents are come from different file using knockout.js so you have to modify that file using knockout js.
I hope you get it what you want.
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is noweb
folder insidevendor/magento/module-checkout/
. Thanks
– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
add a comment |
You can create HTML file or modify/override if exist from here.
app/design/frontend/vendor/theme/Magento_Checkout/web/template/onepage.html
and copy it from here
vendor/magento/module-checkout/web/template/onepage.html
Note :- In this file the contents are come from different file using knockout.js so you have to modify that file using knockout js.
I hope you get it what you want.
You can create HTML file or modify/override if exist from here.
app/design/frontend/vendor/theme/Magento_Checkout/web/template/onepage.html
and copy it from here
vendor/magento/module-checkout/web/template/onepage.html
Note :- In this file the contents are come from different file using knockout.js so you have to modify that file using knockout js.
I hope you get it what you want.
edited Oct 16 '17 at 9:19
Aasim Goriya
3,9471938
3,9471938
answered Oct 16 '17 at 8:53
SarfarajSarfaraj
405518
405518
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is noweb
folder insidevendor/magento/module-checkout/
. Thanks
– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
add a comment |
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is noweb
folder insidevendor/magento/module-checkout/
. Thanks
– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
Thanks @Sarfaraj. I am not getting any HTML file in your location. Thanks
– abu abu
Oct 16 '17 at 9:03
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
please checkout my answer i have update it. at this place "vendor/magento/module-checkout/web/template" you will get other html files also.
– Sarfaraj
Oct 16 '17 at 9:04
There is no
web
folder inside vendor/magento/module-checkout/
. Thanks– abu abu
Oct 16 '17 at 9:16
There is no
web
folder inside vendor/magento/module-checkout/
. Thanks– abu abu
Oct 16 '17 at 9:16
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
this is not possible inside a core module of magento vendor module there is available web folder with js and template files.
– Sarfaraj
Oct 16 '17 at 10:50
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
Thanks @Sarfaraj. What do you mean in your comment ? You said in your Answer, I have to copy the HTML and then edit that. But first of all I have to get the HTML. I didn't get the HTML so far.
– abu abu
Oct 16 '17 at 11:18
add a comment |
Create your own theme at the location app/design/frontend/Vendor/Theme
& put your template file into it at the following location
app/design/frontend/Vendor/Theme/Magento_Checkout/templates/onepage.phtml
Copy the Code from
vendor/magento/module-Checkout/view/frontend/templates/onepage.phtml
And paste it to your template file in your own theme & edit it as of you want it to look like.
Note: You also need to take care of knockout js scripts as of in
checkout module of magento they used checkout for the template
rendering in frontend.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thephtml
file contains the html & php both the contents thats why it is saved as the.phtml
So the thing you got into this file it is your html with some amount of php
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to<div id=""checkout....
. There is Form with the idcheckout
. I am looking for that. Thanks.
– abu abu
Oct 16 '17 at 8:54
|
show 3 more comments
Create your own theme at the location app/design/frontend/Vendor/Theme
& put your template file into it at the following location
app/design/frontend/Vendor/Theme/Magento_Checkout/templates/onepage.phtml
Copy the Code from
vendor/magento/module-Checkout/view/frontend/templates/onepage.phtml
And paste it to your template file in your own theme & edit it as of you want it to look like.
Note: You also need to take care of knockout js scripts as of in
checkout module of magento they used checkout for the template
rendering in frontend.
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thephtml
file contains the html & php both the contents thats why it is saved as the.phtml
So the thing you got into this file it is your html with some amount of php
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to<div id=""checkout....
. There is Form with the idcheckout
. I am looking for that. Thanks.
– abu abu
Oct 16 '17 at 8:54
|
show 3 more comments
Create your own theme at the location app/design/frontend/Vendor/Theme
& put your template file into it at the following location
app/design/frontend/Vendor/Theme/Magento_Checkout/templates/onepage.phtml
Copy the Code from
vendor/magento/module-Checkout/view/frontend/templates/onepage.phtml
And paste it to your template file in your own theme & edit it as of you want it to look like.
Note: You also need to take care of knockout js scripts as of in
checkout module of magento they used checkout for the template
rendering in frontend.
Create your own theme at the location app/design/frontend/Vendor/Theme
& put your template file into it at the following location
app/design/frontend/Vendor/Theme/Magento_Checkout/templates/onepage.phtml
Copy the Code from
vendor/magento/module-Checkout/view/frontend/templates/onepage.phtml
And paste it to your template file in your own theme & edit it as of you want it to look like.
Note: You also need to take care of knockout js scripts as of in
checkout module of magento they used checkout for the template
rendering in frontend.
edited 1 hour ago
answered Oct 16 '17 at 8:42
ABHISHEK TRIPATHIABHISHEK TRIPATHI
1,8431726
1,8431726
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thephtml
file contains the html & php both the contents thats why it is saved as the.phtml
So the thing you got into this file it is your html with some amount of php
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to<div id=""checkout....
. There is Form with the idcheckout
. I am looking for that. Thanks.
– abu abu
Oct 16 '17 at 8:54
|
show 3 more comments
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thephtml
file contains the html & php both the contents thats why it is saved as the.phtml
So the thing you got into this file it is your html with some amount of php
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?
– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to<div id=""checkout....
. There is Form with the idcheckout
. I am looking for that. Thanks.
– abu abu
Oct 16 '17 at 8:54
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
Thanks for reply. My question is Where is the HTML ? I am not getting any HTML code in that specific location/file.
– abu abu
Oct 16 '17 at 8:45
The
phtml
file contains the html & php both the contents thats why it is saved as the .phtml
So the thing you got into this file it is your html with some amount of php– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
The
phtml
file contains the html & php both the contents thats why it is saved as the .phtml
So the thing you got into this file it is your html with some amount of php– ABHISHEK TRIPATHI
Oct 16 '17 at 8:48
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
There is no HTML content. Please see my Question first.
– abu abu
Oct 16 '17 at 8:49
<div id="checkout"....
it is your html content What you are exactly looking for?– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
<div id="checkout"....
it is your html content What you are exactly looking for?– ABHISHEK TRIPATHI
Oct 16 '17 at 8:51
Thanks for reply. I am looking for HTML content which is adjacent to
<div id=""checkout....
. There is Form with the id checkout
. I am looking for that. Thanks.– abu abu
Oct 16 '17 at 8:54
Thanks for reply. I am looking for HTML content which is adjacent to
<div id=""checkout....
. There is Form with the id checkout
. I am looking for that. Thanks.– abu abu
Oct 16 '17 at 8:54
|
show 3 more comments
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f197390%2fhow-edit-phtml-template-in-magento-2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Update your question, with your exact requirement. Which thing you want to edit ?
– Keyur Shah
Oct 16 '17 at 8:58