0

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)

0

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>
  • I found my success.phtml in public_html/app/design/frontend/smartwave/porto/template/checkout Is it OK to change it here? – Allysin Jan 18 '17 at 16:31
  • what I need to do is add code that Shopper Approved gave me. Shopper Approved will then display what they call a "full survey" meaning it will ask customers to leave a reference... – Allysin Jan 18 '17 at 16:32
  • Yes, you can customise it here, you just have to add you code of "full servey" that you have created in some block for exemple and you call it in success.phtml in some div – PЯINCƏ Jan 18 '17 at 16:47
  • Look my answer ! – PЯINCƏ Jan 18 '17 at 16:57
  • I am not so good with these things...I've tried to modify something (I changed the word print to CAPITAL letters in the success.phtml file) and it actually reflected on the website (I see it in CAPITAL letters after I place a test order) so I was just going to paste the Shopper Approved code into that file....Is that not correct? It says this on the Shopper Approved page: – Allysin Jan 18 '17 at 17:19
1

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
  • I found my success.phtml in public_html/app/design/frontend/smartwave/porto/template/che‌​ckout Is it OK to change it here? – Allysin Jan 18 '17 at 16:32
  • What I need to do is add code that Shopper Approved gave me. Shopper Approved will then display what they call a "full survey" meaning it will ask customers to leave a reference.. – Allysin Jan 18 '17 at 16:32
  • Yes. path is correct. – Kul Jan 18 '17 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.