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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

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

User avatar
Guru 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

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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: markcm and 17 guests