Forums / General Questions / adding products to shopping cart

adding products to shopping cart

Locked

Views: 645

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
11 Oct 2010, 9:13 AM
#1
spid3r1987 avatar

spid3r1987

Zen Follower

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

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

11 Oct 2010, 9:30 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

11 Oct 2010, 9:36 AM
#3
spid3r1987 avatar

spid3r1987

Zen Follower

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

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

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

11 Oct 2010, 9:41 AM
#4
spid3r1987 avatar

spid3r1987

Zen Follower

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

Re: adding products to shopping cart

spid3r1987:

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

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

11 Oct 2010, 10:11 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

11 Oct 2010, 10:14 AM
#6
spid3r1987 avatar

spid3r1987

Zen Follower

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

Re: adding products to shopping cart

DrByte:

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

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

11 Oct 2010, 10:19 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

11 Oct 2010, 10:23 AM
#8
spid3r1987 avatar

spid3r1987

Zen Follower

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

Re: adding products to shopping cart

DrByte:

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

lol, well its all fixed on that point now :D
the products can now be added to the shopping cart...changed folder permissions on cache to allow write by public & execute by all....cnt remember chmod numb...

i may not know how yet, but i soon will....i hope :)