Edit PHTML template in Magento2Template file isn't inheriting from my block extending...
A question on the ultrafilter number
What are the pros and cons of practising figure-eight landings on perpendicular runways?
Examples of a statistic that is not independent of sample's distribution?
How do you like my writing?
Low budget alien movie about the Earth being cooked
PTIJ: How can I halachically kill a vampire?
Could you please stop shuffling the deck and play already?
What do you call the air that rushes into your car in the highway?
Solving "Resistance between two nodes on a grid" problem in Mathematica
Single word request: Harming the benefactor
Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?
Why doesn't this Google Translate ad use the word "Translation" instead of "Translate"?
Word for a person who has no opinion about whether god exists
Good for you! in Russian
What to do when during a meeting client people start to fight (even physically) with each others?
Placing subfig vertically
My story is written in English, but is set in my home country. What language should I use for the dialogue?
Should I take out a loan for a friend to invest on my behalf?
How does airport security verify that you can carry a battery bank over 100 Wh?
BitNot does not flip bits in the way I expected
Why is this plane circling around the Lucknow airport every day?
Built-In Shelves/Bookcases - IKEA vs Built
Space in array system equations
In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?
Edit PHTML template in Magento2
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 Magento2 ?
I am trying to Edit PHTML template in Magento2. 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 Magento2 ?
I am trying to Edit PHTML template in Magento2. 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 Magento2 ?
I am trying to Edit PHTML template in Magento2. 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 Magento2 ?
I am trying to Edit PHTML template in Magento2. 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 Oct 16 '17 at 10:10
abu abu
asked Oct 16 '17 at 8:22
abu abuabu abu
3521622
3521622
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%2fedit-phtml-template-in-magento2%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 14 mins ago
answered Oct 16 '17 at 8:42
ABHISHEK TRIPATHIABHISHEK TRIPATHI
1,8291726
1,8291726
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%2fedit-phtml-template-in-magento2%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