Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Add to Cart Not Working - Which Files to Look For?

    Hi all,

    First off, my site url is http://bit.ly/osvjH2
    We had some modules installed and customizations recently, so I think there might have been tiny little mistakes with some files.

    The add to cart button does not work (returns blank page), but I have no idea which files to look for to fix it.

    Is there a way to
    - find out what the problem is (a blank space? a blank line? more serious problems?)
    - and in which file to fix it


    Thank you so much for your help!

  2. #2
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Also, for some reason the cache folder returns 'data error.' Are these problems interrelated?

  3. #3
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Nothing in my error log so nowhere I can look in help articles. Anyone?

  4. #4
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Add to Cart Not Working - Which Files to Look For?

    I think the file you need to look at is:

    includes/languages/english/your_template/shopping_cart.php

    Try uploading a fresh copy and see what happens. Note: If you aren't using overrides, you can drop "your_template" from the path.

  5. #5
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Thanks for your tip Resco. But uploading a fresh copy didn't do the magic

    Any other suggestions?

  6. #6
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Okay, try:

    includes/classes/shopping_cart.php

  7. #7
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Also no change.

  8. #8
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Looks like you got this fixed

  9. #9
    Join Date
    Jul 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Ok here's the summary of what I did:

    1. Go through every single file to check if any files have a line or space before the first letter of the file.
    Turns out a LOT of them had it so I'm not going to list everything here.
    (Also, anything with shopping_cart in its name DIDN'T have any space or line before it, so I guess files are interrelated and you just have to check everything.)

    With this first step, no blank page occurred but I got a "your cart is empty" message instead.

    So I did what this guy said in this thread: http://www.zen-cart.com/forum/showthread.php?t=177200

    2. "Admin->Configuration->Sessions->Add period prefix to cookie domain to False resolved the problem"

    It did!!!!

    Thanks everyone who commented & helped :)

  10. #10
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    5
    Plugin Contributions
    0

    Default Re: Add to Cart Not Working - Which Files to Look For?

    Thanks for the solution, this worked for me too. Strange that the shopping cart worked fine before - must have been some change in server environment!

 

 

Similar Threads

  1. v151 Which files need to be updated to add email salutations
    By Cozmoz in forum General Questions
    Replies: 4
    Last Post: 11 Sep 2014, 03:04 PM
  2. Replies: 1
    Last Post: 29 Apr 2013, 05:40 PM
  3. v138a Normally which files should be edited to add a element?
    By fanisme in forum General Questions
    Replies: 3
    Last Post: 7 Apr 2013, 07:45 PM
  4. add to cart not working...currency not working
    By pcdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 12 Jun 2008, 05:03 AM
  5. Add to cart not working for me ... (403 error)
    By novatron6 in forum General Questions
    Replies: 0
    Last Post: 14 Feb 2008, 05:29 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR