Page 1 of 1

How to include a totals module in checkout layout

Posted: Tue Jul 09, 2019 4:20 am
by anushamangipudi
Hi,

I'm developing an custom extension in opencart for total extension type. I'm stuck with only one issue from morning. Any twig files under the catalog are loading on cart page but not checkout. I have the JS script inside the twig file to handle some events on checkout page. But it is not loading on that page. I see there is an option to route an extension on Checkout layout but it not showing the extensions enabled under totals type.

Could anyone please help me with this?

Thanks,
Anusha

Re: How to include a totals module in checkout layout

Posted: Tue Jul 09, 2019 6:58 pm
by cedcommerceteam
Hello Anusha,

Please once check that the extension is properly installed or not, this happens sometime with 3.X extension section that the module is installed & enabled but it still shows status disabled, twig files are sometime difficult to handle, you can enable debug mode & check whether it throws any error while loading files on which JS in written. On whichever controller you are working just check those files by loading them 1-by-1 for any warning or fatal errors.

I hope this will be helpful to you.

Thanks & regards :