Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / problem after installing custom drop down box for product

problem after installing custom drop down box for product

Locked

Views: 992

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Jul 2009, 9:56 PM
#1
johnestrella avatar

johnestrella

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

problem after installing custom drop down box for product

Hey guys... I've run into a few issues but nothing that a google search couldn't fix but now i'm stuck.

I used the files from page 3 In this forum: https://www.zen-cart.com/forum/showthread.php?t=98641&page=3 to create a custom drop down box for my product's options. After install, I customized it and then proceeded to test it.

I tried it two ways. The first way which is the way the instructions say to do it which is to set it so when i click "add to cart" it takes the user to the shopping cart. when i click add to shopping cart, the page loads to a white screen. (not good)... the product is added to the cart because if i go back and refresh the previous page, it shows the cart on the right with the product but i still can't get to the cart. I can click on "checkout" but can't click to view shopping cart.

The second way is to NOT take the customer to the cart when clicking on "add to cart". This works fine and he gets a message saying "product has been added to cart." BUT if i click on the shopping cart, BAM, the white screen again.

for reference, my website is https://www.dipplus.com

Any help is appreciated.

John

10 Jul 2009, 9:33 PM
#3
johnestrella avatar

johnestrella

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: problem after installing custom drop down box for product

Thanks... i managed to get this error from using the debugger.

[10-Jul-2009 14:42:13] PHP Fatal error: Cannot redeclare class shoppingCart in /home5/dipplusc/public_html/includes/languages/english/shopping_cart.php on line 1897

my shopping_cart.php file is attatched.

Line 1897 shows only a } so i'm still lost...

please help and thanks.

10 Jul 2009, 10:35 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: problem after installing custom drop down box for product

public_html/includes/languages/english/shopping_cart.php on line 1897

That file at that location has only about 31 lines total
The file you posted either is not at that location or you/someone has misplaced the correct file.

As there are only 31 lines and the error is reporting line 1897 - - the file(if the correct one) is corrupt
Replace it from the distribution

10 Jul 2009, 11:36 PM
#5
johnestrella avatar

johnestrella

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: problem after installing custom drop down box for product

I got it. I tried the distribution shopping_cart.php file (the one with about 31 lines), tried again and got the same error. The next log file said the same thing but it said shopping_cart1.php...

I made a noob mistake of keeping a copy of my old shopping cart file by renaming it.. now i know to make the file a .php1 instead of adding it to the actual name of the file.

You've been very helpful and i appreciate your quick responses.

Have a GREAT weekend.

:clap:

11 Jul 2009, 1:00 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: problem after installing custom drop down box for product

I made a noob mistake of keeping a copy of my old shopping cart file by renaming it.. now i know to make the file a .php1 instead of adding it to the actual name of the file.
Better yet, is to change the extension altogether to something like
.sav
.orig
etc

And once you have determined it is no longer needed - delete it

11 Jul 2009, 3:48 AM
#7
johnestrella avatar

johnestrella

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: problem after installing custom drop down box for product

Makes even more sense... thanks...