Post by D3MO » Wed Jan 29, 2025 10:26 pm

Can someone share some light:)

My custom file is under: ROOT\extension\modulename\catalog\controller\account\file.php



takes me to page not found:

namespace

namespace Opencart\Catalog\Controller\Extension\Modulename\Account;



tried various routes:

4.1.0.0/index.php?route=extension/modulename/controller/account/file&language=en-gb&customer_token=bedc531298401681f32115c34e
4.1.0.0/index.php?route=extension/modulename/account/file&language=en-gb&customer_token=bedc531298401681f32115c34e

nothing works

Opencart Expert | voldemaras@gmail.com

Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am

Post by JNeuhoff » Thu Jan 30, 2025 12:10 am

D3MO wrote:
Wed Jan 29, 2025 10:26 pm
Can someone share some light:)

My custom file is under: ROOT\extension\modulename\catalog\controller\account\file.php



takes me to page not found:

namespace

namespace Opencart\Catalog\Controller\Extension\Modulename\Account;



tried various routes:

4.1.0.0/index.php?route=extension/modulename/controller/account/file&language=en-gb&customer_token=bedc531298401681f32115c34e
4.1.0.0/index.php?route=extension/modulename/account/file&language=en-gb&customer_token=bedc531298401681f32115c34e

nothing works
Assuming your extension name is modulename then the namespace would probably be this one:

namespace Opencart\Catalog\Controller\Extension\modulename\Account;

and the URL would be this:

whatever/index.php?route=extension/modulename/account/file&language=en-gb&customer_token=bedc531298401681f32115c34e

Have you made sure that your file.php contains a function index( ) ?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by D3MO » Thu Jan 30, 2025 12:34 am

Found it. what was wrong and not a namespace. opencart needs a good howto. as now we will be tracking what and where must be added

Opencart Expert | voldemaras@gmail.com

Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am

Post by JNeuhoff » Thu Jan 30, 2025 12:46 am

So what did you find? Could you share your solution here so others can benefit from it, too, on this forum?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 17 guests