How can I add custom success page The 2019 Stack Overflow Developer Survey Results Are InCall custom phtml on success page without overridehow can i add a function in magento2 success page?Magento 2 : How to load the order success pageCan we turn the checkout success page into a checkout step in Magento 2?How to test or style the order success page Or how to stop success Page redirecting in Magento2Add Bank Details to success pageHow to customize checkout success pageget payment method in the success page Magento 2 programmaticallyGet order id (not increment id) on success page?How to customize order succes page url and add some order details
If I can cast sorceries at instant speed, can I use sorcery-speed activated abilities at instant speed?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
What's the name of these plastic connectors
Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?
How to type a long/em dash `—`
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Is it okay to consider publishing in my first year of PhD?
What is this sharp, curved notch on my knife for?
APIPA and LAN Broadcast Domain
Why can't devices on different VLANs, but on the same subnet, communicate?
writing variables above the numbers in tikz picture
Relationship between Gromov-Witten and Taubes' Gromov invariant
How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?
Getting crown tickets for Statue of Liberty
What do hard-Brexiteers want with respect to the Irish border?
How to notate time signature switching consistently every measure
What is this business jet?
Did any laptop computers have a built-in 5 1/4 inch floppy drive?
"as much details as you can remember"
Loose spokes after only a few rides
If a sorcerer casts the Banishment spell on a PC while in Avernus, does the PC return to their home plane?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
How to support a colleague who finds meetings extremely tiring?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
How can I add custom success page
The 2019 Stack Overflow Developer Survey Results Are InCall custom phtml on success page without overridehow can i add a function in magento2 success page?Magento 2 : How to load the order success pageCan we turn the checkout success page into a checkout step in Magento 2?How to test or style the order success page Or how to stop success Page redirecting in Magento2Add Bank Details to success pageHow to customize checkout success pageget payment method in the success page Magento 2 programmaticallyGet order id (not increment id) on success page?How to customize order succes page url and add some order details
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to add custom success page by overriding it's phtml.
Can anyone guide me how can I do this?
magento2 order-success-page
add a comment |
I want to add custom success page by overriding it's phtml.
Can anyone guide me how can I do this?
magento2 order-success-page
add a comment |
I want to add custom success page by overriding it's phtml.
Can anyone guide me how can I do this?
magento2 order-success-page
I want to add custom success page by overriding it's phtml.
Can anyone guide me how can I do this?
magento2 order-success-page
magento2 order-success-page
asked Apr 8 at 11:32
Muhammad AnasMuhammad Anas
550317
550317
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Copy This File :-
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In Your Theme :-
app/design/frontend/your/theme/Magento_Checkout/view/frontend/templates/
After This You Can Change Success Page As Per Your Requirement
Magento_Catalog
orMagento_Checkout
?
– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
add a comment |
You can do it by overriding or extending checkout_onepage_success.xml
with your custom module.
Follow these steps:
- Create your Success.php Block file in vendormoduleBlockOnePage
<?php
namespace vendormoduleBlockOnePage;
class Success extends MagentoFrameworkViewElementTemplate
public function getCustomSuccess()
return 'Your custom contents.';
- Create checkout_onepage_success.xml layout file in vendormoduleviewfrontendlayout
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="vendormoduleBlockOnePageSuccess"
name="custom.order.success"
template="Vendor_Module::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
- Lastly, create phtml template file in vendormoduleviewfrontendtemplatesordersuccess.phtml
<?php /* @var $block vendormoduleBlockOnePageSuccess */?>
<?php echo __('This is a custom content.'); ?>
<?php echo $block->getCustomSuccess(); ?>
After done with the above steps, run the upgrade command and redeploy static view files.
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
you need to copy
vendor/magento/module-checkout/view/frontend/templates/success.phtml
into
app/design/frotend/<your package name/<your theme name>/Magento_Checkout/templates/success.phtml
then do cache flush using below command
php bin/mageno c:f
Then check it
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
Go to magento core file given path and Copy This File
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In below path
app/design/frontend/theme_package/theme_name/Magento_Checkout/view/frontend/templates/
Run below command
php bin/magento c:c
php bin/magento c:f
You can also do it in module way
app/code/Namespace/Modulename/view/frontend/layout/checkout_onepage_success.xml
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="NamespaceModulenameBlockSuccess"
name="test.order.success"
template="Namespace_Modulename::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
app/code/Namespace/Modulename/view/frontend/templates/order/success.phtml
<?php echo __('Custom template file content.'); ?>
<?php echo $block->getSomething(); ?>
I hope it helps
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
add a comment |
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%2f269161%2fhow-can-i-add-custom-success-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Copy This File :-
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In Your Theme :-
app/design/frontend/your/theme/Magento_Checkout/view/frontend/templates/
After This You Can Change Success Page As Per Your Requirement
Magento_Catalog
orMagento_Checkout
?
– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
add a comment |
Copy This File :-
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In Your Theme :-
app/design/frontend/your/theme/Magento_Checkout/view/frontend/templates/
After This You Can Change Success Page As Per Your Requirement
Magento_Catalog
orMagento_Checkout
?
– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
add a comment |
Copy This File :-
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In Your Theme :-
app/design/frontend/your/theme/Magento_Checkout/view/frontend/templates/
After This You Can Change Success Page As Per Your Requirement
Copy This File :-
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In Your Theme :-
app/design/frontend/your/theme/Magento_Checkout/view/frontend/templates/
After This You Can Change Success Page As Per Your Requirement
edited Apr 8 at 11:38
answered Apr 8 at 11:36
Rk RathodRk Rathod
1,346213
1,346213
Magento_Catalog
orMagento_Checkout
?
– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
add a comment |
Magento_Catalog
orMagento_Checkout
?
– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
Magento_Catalog
or Magento_Checkout
?– Muhammad Anas
Apr 8 at 11:38
Magento_Catalog
or Magento_Checkout
?– Muhammad Anas
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Magento_Checkout
– Rk Rathod
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
Thanks Ronak Rathod, will try this one
– Muhammad Anas
Apr 8 at 11:38
most welcome...
– Rk Rathod
Apr 8 at 11:39
most welcome...
– Rk Rathod
Apr 8 at 11:39
add a comment |
You can do it by overriding or extending checkout_onepage_success.xml
with your custom module.
Follow these steps:
- Create your Success.php Block file in vendormoduleBlockOnePage
<?php
namespace vendormoduleBlockOnePage;
class Success extends MagentoFrameworkViewElementTemplate
public function getCustomSuccess()
return 'Your custom contents.';
- Create checkout_onepage_success.xml layout file in vendormoduleviewfrontendlayout
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="vendormoduleBlockOnePageSuccess"
name="custom.order.success"
template="Vendor_Module::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
- Lastly, create phtml template file in vendormoduleviewfrontendtemplatesordersuccess.phtml
<?php /* @var $block vendormoduleBlockOnePageSuccess */?>
<?php echo __('This is a custom content.'); ?>
<?php echo $block->getCustomSuccess(); ?>
After done with the above steps, run the upgrade command and redeploy static view files.
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
You can do it by overriding or extending checkout_onepage_success.xml
with your custom module.
Follow these steps:
- Create your Success.php Block file in vendormoduleBlockOnePage
<?php
namespace vendormoduleBlockOnePage;
class Success extends MagentoFrameworkViewElementTemplate
public function getCustomSuccess()
return 'Your custom contents.';
- Create checkout_onepage_success.xml layout file in vendormoduleviewfrontendlayout
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="vendormoduleBlockOnePageSuccess"
name="custom.order.success"
template="Vendor_Module::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
- Lastly, create phtml template file in vendormoduleviewfrontendtemplatesordersuccess.phtml
<?php /* @var $block vendormoduleBlockOnePageSuccess */?>
<?php echo __('This is a custom content.'); ?>
<?php echo $block->getCustomSuccess(); ?>
After done with the above steps, run the upgrade command and redeploy static view files.
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
You can do it by overriding or extending checkout_onepage_success.xml
with your custom module.
Follow these steps:
- Create your Success.php Block file in vendormoduleBlockOnePage
<?php
namespace vendormoduleBlockOnePage;
class Success extends MagentoFrameworkViewElementTemplate
public function getCustomSuccess()
return 'Your custom contents.';
- Create checkout_onepage_success.xml layout file in vendormoduleviewfrontendlayout
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="vendormoduleBlockOnePageSuccess"
name="custom.order.success"
template="Vendor_Module::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
- Lastly, create phtml template file in vendormoduleviewfrontendtemplatesordersuccess.phtml
<?php /* @var $block vendormoduleBlockOnePageSuccess */?>
<?php echo __('This is a custom content.'); ?>
<?php echo $block->getCustomSuccess(); ?>
After done with the above steps, run the upgrade command and redeploy static view files.
You can do it by overriding or extending checkout_onepage_success.xml
with your custom module.
Follow these steps:
- Create your Success.php Block file in vendormoduleBlockOnePage
<?php
namespace vendormoduleBlockOnePage;
class Success extends MagentoFrameworkViewElementTemplate
public function getCustomSuccess()
return 'Your custom contents.';
- Create checkout_onepage_success.xml layout file in vendormoduleviewfrontendlayout
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="vendormoduleBlockOnePageSuccess"
name="custom.order.success"
template="Vendor_Module::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
- Lastly, create phtml template file in vendormoduleviewfrontendtemplatesordersuccess.phtml
<?php /* @var $block vendormoduleBlockOnePageSuccess */?>
<?php echo __('This is a custom content.'); ?>
<?php echo $block->getCustomSuccess(); ?>
After done with the above steps, run the upgrade command and redeploy static view files.
answered Apr 8 at 11:45
magefmsmagefms
2,6352528
2,6352528
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
1
1
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
you need to copy
vendor/magento/module-checkout/view/frontend/templates/success.phtml
into
app/design/frotend/<your package name/<your theme name>/Magento_Checkout/templates/success.phtml
then do cache flush using below command
php bin/mageno c:f
Then check it
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
you need to copy
vendor/magento/module-checkout/view/frontend/templates/success.phtml
into
app/design/frotend/<your package name/<your theme name>/Magento_Checkout/templates/success.phtml
then do cache flush using below command
php bin/mageno c:f
Then check it
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
you need to copy
vendor/magento/module-checkout/view/frontend/templates/success.phtml
into
app/design/frotend/<your package name/<your theme name>/Magento_Checkout/templates/success.phtml
then do cache flush using below command
php bin/mageno c:f
Then check it
you need to copy
vendor/magento/module-checkout/view/frontend/templates/success.phtml
into
app/design/frotend/<your package name/<your theme name>/Magento_Checkout/templates/success.phtml
then do cache flush using below command
php bin/mageno c:f
Then check it
answered Apr 8 at 11:48
Sunil PatelSunil Patel
1,3781612
1,3781612
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
add a comment |
Go to magento core file given path and Copy This File
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In below path
app/design/frontend/theme_package/theme_name/Magento_Checkout/view/frontend/templates/
Run below command
php bin/magento c:c
php bin/magento c:f
You can also do it in module way
app/code/Namespace/Modulename/view/frontend/layout/checkout_onepage_success.xml
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="NamespaceModulenameBlockSuccess"
name="test.order.success"
template="Namespace_Modulename::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
app/code/Namespace/Modulename/view/frontend/templates/order/success.phtml
<?php echo __('Custom template file content.'); ?>
<?php echo $block->getSomething(); ?>
I hope it helps
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
add a comment |
Go to magento core file given path and Copy This File
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In below path
app/design/frontend/theme_package/theme_name/Magento_Checkout/view/frontend/templates/
Run below command
php bin/magento c:c
php bin/magento c:f
You can also do it in module way
app/code/Namespace/Modulename/view/frontend/layout/checkout_onepage_success.xml
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="NamespaceModulenameBlockSuccess"
name="test.order.success"
template="Namespace_Modulename::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
app/code/Namespace/Modulename/view/frontend/templates/order/success.phtml
<?php echo __('Custom template file content.'); ?>
<?php echo $block->getSomething(); ?>
I hope it helps
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
add a comment |
Go to magento core file given path and Copy This File
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In below path
app/design/frontend/theme_package/theme_name/Magento_Checkout/view/frontend/templates/
Run below command
php bin/magento c:c
php bin/magento c:f
You can also do it in module way
app/code/Namespace/Modulename/view/frontend/layout/checkout_onepage_success.xml
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="NamespaceModulenameBlockSuccess"
name="test.order.success"
template="Namespace_Modulename::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
app/code/Namespace/Modulename/view/frontend/templates/order/success.phtml
<?php echo __('Custom template file content.'); ?>
<?php echo $block->getSomething(); ?>
I hope it helps
Go to magento core file given path and Copy This File
vendor/magento/module-checkout/view/frontend/templates/success.phtml
And Paste In below path
app/design/frontend/theme_package/theme_name/Magento_Checkout/view/frontend/templates/
Run below command
php bin/magento c:c
php bin/magento c:f
You can also do it in module way
app/code/Namespace/Modulename/view/frontend/layout/checkout_onepage_success.xml
<?xml version="1.0"?>
<body>
<referenceContainer name="order.success.additional.info">
<block class="NamespaceModulenameBlockSuccess"
name="test.order.success"
template="Namespace_Modulename::order/success.phtml"
after="-">
</block>
</referenceContainer>
</body>
app/code/Namespace/Modulename/view/frontend/templates/order/success.phtml
<?php echo __('Custom template file content.'); ?>
<?php echo $block->getSomething(); ?>
I hope it helps
edited Apr 8 at 11:49
answered Apr 8 at 11:41
Chirag PatelChirag Patel
2,539423
2,539423
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
add a comment |
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
Thanks for the answer. +1
– Muhammad Anas
Apr 8 at 12:07
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
you are welcome. +1 for your appreciation :)
– Chirag Patel
Apr 8 at 12:17
add a comment |
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%2f269161%2fhow-can-i-add-custom-success-page%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