Forums / Built-in Shipping and Payment Modules / Cloned shipping module problem

Cloned shipping module problem

Locked

Started by psr_racing on 29 Jan 2008, 1:57 PM · Views: 3,980

Results 21 to 23 of 23
This thread is locked. New replies are disabled.
29 Feb 2008, 9:26 PM
#21
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Cloned shipping module problem

I don't really know how to tell you this. If the class cannot be redeclared, this is because the class has already been initiated once already. I suggest you find out where the line

class storepickup

exists within your store code, and go from there.

Using the Developer's Toolkit in the admin, under tools, paste "class storepickup", without the "s, into the last textbox, and select Catalog from the dropdown, and tehn click search. Please paste here EXACTLY what the return fines.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

1 Mar 2008, 2:15 AM
#22
psr_racing avatar

psr_racing

New Zenner

Join Date:
Feb 2007
Posts:
90
Plugin Contributions:
0

Re: Cloned shipping module problem

/home/pow10934/public_html/includes/modules/shipping/storepickup.php
Line #12 : class storepickup extends base {

I did the same for "class cod" and got

/home/pow10934/public_html/includes/modules/payment/cod.php
Line #22 : class cod {
/home/pow10934/public_html/includes/modules/shipping/cod.php
Line #12 : class cod extends base {

6 Mar 2008, 11:04 AM
#23
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Cloned shipping module problem

Well, there is your problem. You have the cod payment module installed, which has a class called cod. Change the name of your shipping file to scod.php, and then change the 3 cod references within that file to scod.

That will fix your problem.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store