How to change the page that shows up AFTER customer places an order? (order success page)
-
05-10-2020 - |
Question
I would like to make some changes to the Confirmation page that comes up after the customer places an order (actually add the code for Shopper Approved) and I can't seem to locate which file and path to do that in.
Magento 1.9.1.0 porto theme (but I can also change it in the core files I guess)
Solution
Yes like the answer of Kul you can find it in:
app/design/frontend/package/theme/template/checkout/success.phtml
and this page is redirected from the controller:
app/code/core/Mage/Checkout/controllers/OnepageController.php
it serves as information but it should not be modified(controller), if do you need it, it must be done properly, ie to rewrite it locally.
To add a "full survey" block After having declared it in the xml
<div class="my-full-survey">
<?php $this->getLayout()->getBlock('name.of.your.block')->toHtml(); ?>
</div>
OTHER TIPS
You can check first in your theme
app/design/frontend/Package/YOUR_TEMPLATE_NAME/template/checkout/success.phtml
Or default template
app/design/frontend/base/default/template/checkout/success.phtml
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange