Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Nothing will Load into a Shopping Cart

    Quote Originally Posted by blakemiller View Post
    I'm not sure what happens (code wise) when someone hits "Add to Cart"
    Mainly the shopping_cart class is used to process things.
    The /includes/main_cart_actions.php is also used as a driver towards the cart class which does the actual adding.
    However, it does it all based on whatever is being found in the $_POST vars ... ie: the form fields coming from the product page. If you've changed the product template in some way such that the fields being sent are different, then I'm not surprised that the add functionality is broken.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Oct 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Nothing will Load into a Shopping Cart

    Quote Originally Posted by DrByte View Post
    Mainly the shopping_cart class is used to process things.
    The /includes/main_cart_actions.php is also used as a driver towards the cart class which does the actual adding.
    However, it does it all based on whatever is being found in the $_POST vars ... ie: the form fields coming from the product page. If you've changed the product template in some way such that the fields being sent are different, then I'm not surprised that the add functionality is broken.
    I'll see if anything comes up on WinMerge once done downloading.

    I haven't been hacking into much code at all, especially the product template(s). It's been mostly header/footer mods, and then just stuff from within Admin.

    I'm sure something will come up.

  3. #3
    Join Date
    Oct 2005
    Posts
    57
    Plugin Contributions
    0

    Default Re: Nothing will Load into a Shopping Cart

    Woahhha.... Weird. I found the culprits. I downloaded my latest cart, and then compared it with a fresh download - less files that i know i changed.

    I found about 7 sets of files that were swapped with each other. like in \admin . . .email_welcome.php and ezpages.php's file contents inside were reversed. each of the 7 sets files were alphabetically next to each other.

    The /includes/main_cart_actions.php . . . was Blank, i.e 0 bytes.

    I updated all and it's working now.

    I just don't know how that could have happened. I know the client uses frontpage to keep things updated (outside the cart) and i've seen that cause havoc before. This one was weird though.

    I'll repost if anything new or exciting comes out of this....

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Nothing will Load into a Shopping Cart

    Quote Originally Posted by blakemiller View Post
    The /includes/main_cart_actions.php . . . was Blank, i.e 0 bytes.
    That'll do it!

    Always good to have backups :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 28 Dec 2010, 11:32 AM
  2. Shopping cart -too long to load
    By kburner in forum General Questions
    Replies: 0
    Last Post: 14 Nov 2009, 04:48 PM
  3. Shopping Cart will not update
    By Aderra in forum General Questions
    Replies: 3
    Last Post: 22 Oct 2009, 11:41 PM
  4. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  5. Can't load Shopping cart page!
    By metadox in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Mar 2007, 04:14 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