Post by m1t » Mon Nov 15, 2010 4:22 am

I tried two times to duplicate the flat rate shipping module using as example this metod http://forum.opencart.com/viewtopic.php?t=6696 for shipping module only 5 were posible out of 7.
When i want to instal the new flat 2 shipping metod ,i get this error
Fatal error: Class 'ControllerShippingflat2' not found in ......../admin/controller/extension/shipping.php on line 124
if i want to uninstal the new shipping method
Fatal error: Class 'ControllerShippingflat2' not found in ......./admin/controller/extension/shipping.php on line 149
any idea as how i can rezolve the problem?

ps.i use opencart 1.4.9.1
Last edited by m1t on Tue Nov 16, 2010 8:27 pm, edited 1 time in total.

Image

[/highlight]


m1t
New member

Posts

Joined
Sun Nov 14, 2010 7:18 am

Post by Johnathan » Mon Nov 15, 2010 6:34 am

Did you change the first line of /admin/controller/shipping/flat2.php from:

Code: Select all

class ControllerShippingFlat extends Controller { 
to:

Code: Select all

class ControllerShippingFlat2 extends Controller { 
Because I think that's what it's looking for.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Qphoria » Mon Nov 15, 2010 8:57 am

FYI you shouldn't have to duplicate flat rate shipping ever
http://forum.opencart.com/viewtopic.php?t=3835#p82650

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by m1t » Tue Nov 16, 2010 8:27 pm

10X Johnathan , it works :) , i made a mistake when i was replacing flat whit flat2 i selected "Match case".

Image

[/highlight]


m1t
New member

Posts

Joined
Sun Nov 14, 2010 7:18 am

Post by charlesdairo » Fri Jun 22, 2012 5:58 pm

Johnathan wrote:Did you change the first line of /admin/controller/shipping/flat2.php from:

Code: Select all

class ControllerShippingFlat extends Controller {  
to:

Code: Select all

class ControllerShippingFlat2 extends Controller {  
Because I think that's what it's looking for.
m1t wrote:10X Johnathan , it works :) , i made a mistake when i was replacing flat whit flat2 i selected "Match case".
Hello,

I see this has been resolved, but I'm having a problem.

I duplicated the flat shipping module, named it flat2.

I successfully installed it and enabled it, but on the checkout page, it doesn't show; I get stuck at the Delivery Details form, and the Continue button does not do anything.

However, once I disable flat2, the Continue button works as normal.

What could the problem be?
I use OC 1.5.1.3

Thanks in advance.

New member

Posts

Joined
Sat May 19, 2012 3:35 am

Post by straightlight » Sun Jun 24, 2012 8:07 pm

What could the problem be?
From the duplicated shipping module, the returned key from the array may be invalid which may cause a background error through JSON but you just can't see it straight on the browser which is why when clicking on the continue button, nothing happens on the front-end but, originally, a background error does occur.

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
Who is online

Users browsing this forum: Amazon [Bot] and 3 guests