Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default adding products to shopping cart

    whenever i add a product to shopping cart
    it takes me to my shopping cart and then says...nothing in there, yet i just clicked...ADD PRODUCT TO BASKET.... :S

    idea's??
    i may not know how yet, but i soon will....i hope :)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: adding products to shopping cart

    That means your session cookie isn't set, or the zenid is lost from your URLs, or your server's session handling is broken.
    Probably related to the other problems you're having with your so-called SEO addon and/or .htaccess rewrite rules you've added.
    At least, those are the first things I'd remove anyway.
    .

    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.

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

    Default Re: adding products to shopping cart

    hmmm, gotta find a way to remove the SEO addon...
    session cookie set to true, but do i need to force it??
    could this be something to do with moving from 123-reg to a new hosting company, did a full DB backup and FTP backup, imported to new hosting, input database. changed url & path details, cache sessions changed etc etc...
    seems to be working apart from the adding products to cart...

    the HTaccess file is sorted now, reverted to original from ZC 1.3.9g
    ...
    also noticed when i goto admin>customers
    got a few errors along the top :S
    Code:
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /public_html/shop/ADMINAREA/customers.php on line 1099
    
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /public_html/shop/ADMINAREA/customers.php on line 1101
    
    Warning: reset() [function.reset]: Passed variable is not an array or object in /public_html/shop/ADMINAREA/includes/classes/object_info.php on line 29
    
    Warning: Variable passed to each() is not an array or object in /public_html/shop/ADMINAREA/includes/classes/object_info.php on line 30
    i may not know how yet, but i soon will....i hope :)

  4. #4
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: adding products to shopping cart

    Quote Originally Posted by spid3r1987 View Post
    hmmm, gotta find a way to remove the SEO addon...
    session cookie set to true, but do i need to force it??
    could this be something to do with moving from 123-reg to a new hosting company, did a full DB backup and FTP backup, imported to new hosting, input database. changed url & path details, cache sessions changed etc etc...
    seems to be working apart from the adding products to cart...

    the HTaccess file is sorted now, reverted to original from ZC 1.3.9g
    ...
    also noticed when i goto admin>customers
    got a few errors along the top :S
    Code:
    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /public_html/shop/ADMINAREA/customers.php on line 1099
    
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /public_html/shop/ADMINAREA/customers.php on line 1101
    
    Warning: reset() [function.reset]: Passed variable is not an array or object in /public_html/shop/ADMINAREA/includes/classes/object_info.php on line 29
    
    Warning: Variable passed to each() is not an array or object in /public_html/shop/ADMINAREA/includes/classes/object_info.php on line 30
    not sure if this is anything to help, but when i logged into the website, i can now add products to the basket
    i may not know how yet, but i soon will....i hope :)

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: adding products to shopping cart

    Those errors on customers are a result of having invalid customer data and/or invalid country data. Those are classic symptoms of selectively importing only certain tables from one database to another and not keeping all related tables in sync ... instead of properly upgrading/importing the *entire* database at all times.
    .

    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.

  6. #6
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: adding products to shopping cart

    Quote Originally Posted by DrByte View Post
    Those errors on customers are a result of having invalid customer data and/or invalid country data. Those are classic symptoms of selectively importing only certain tables from one database to another and not keeping all related tables in sync ... instead of properly upgrading/importing the *entire* database at all times.
    ahhh from ur first few lines i get it

    i did import the ENTIRE database, but i have recently changed all the zones/countries etc....so il need to change all the countries and zones for customers etc....??
    i may not know how yet, but i soon will....i hope :)

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: adding products to shopping cart

    Yes ... if you've mangled the data in one table and broken all the references to everything in the other tables, then yes you'll have to clean up all the references to match exactly.

    Not a wise idea to go changing all the zones/countries.
    .

    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. v151 No shopping cart after adding products.
    By yasu in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 11 Mar 2013, 03:08 AM
  2. v139h Adding products with multiple attributes shopping cart
    By TAIHCM in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 22 Feb 2012, 08:20 PM
  3. Adding free products to shopping cart automatically
    By ariasd in forum General Questions
    Replies: 0
    Last Post: 24 Mar 2011, 08:05 PM
  4. Question about adding products to my cart from the shopping cart page
    By audleman in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 31 Aug 2010, 07:37 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