Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default 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/showt...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 www.dipplus.com

    Any help is appreciated.

    John

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: problem after installing custom drop down box for product


  3. #3
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default 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.
    Attached Files Attached Files

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: problem after installing custom drop down box for product

    Code:
    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

  5. #5
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default 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.


  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  7. #7
    Join Date
    Jul 2009
    Posts
    10
    Plugin Contributions
    0

    Default Re: problem after installing custom drop down box for product

    Makes even more sense... thanks...

 

 

Similar Threads

  1. Drop down box for categories?
    By iddy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Sep 2009, 10:17 AM
  2. Problem with custom drop down menu
    By christianpatrick in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Jan 2009, 05:42 PM
  3. Drop down box for product size etc.
    By saulylee in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Aug 2007, 08:04 AM
  4. How do I put a drop down box for 1 product but lots of diff scents
    By Squeakywheels in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jul 2007, 07:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg