Post by testie » Fri Jan 12, 2018 1:59 am

Hello everyone

I'm trying to add a layout to the success page after a completed purchase so that I can add modules to the page.

I've been looking around for answers but been unable to find anything.

Appreciate your help.

Thanks.

Newbie

Posts

Joined
Mon May 11, 2015 6:42 am

Post by straightlight » Fri Jan 12, 2018 6:27 am

The success page does not contain any modules from the core. The only problem is with this is that users can still access this page at any time and your modules would probably need to be loaded only when an order ID has been created.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by testie » Fri Jan 12, 2018 8:31 am

Thanks for the answer ;D

Then I'm wondering if it possible to edit the page with standard html?

Newbie

Posts

Joined
Mon May 11, 2015 6:42 am

Post by straightlight » Fri Jan 12, 2018 9:45 am

You'd need to use the catalog/controller/common/success.php file to add the modules. Then, to output them into the success.twig file. As an alternative, you could use the Template Switcher extension from the marketplace and add the modules directly into the success.twig file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Fri Jan 12, 2018 9:53 am


My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by straightlight » Fri Jan 12, 2018 10:03 am

$20 + $21 + $20 + $20 + $30

while this free extension can already deliver the codes from the TWIG / TPL files directly: https://www.opencart.com/index.php?rout ... n_id=31589

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by testie » Sat Jan 13, 2018 1:24 am

Thanks guys, will check it out in the following days ;D

Newbie

Posts

Joined
Mon May 11, 2015 6:42 am
Who is online

Users browsing this forum: No registered users and 264 guests