Helper Posted October 24, 2006 Posted October 24, 2006 Hi I have a curious problem which I cannot find support for. My shopping cart works fine and merges as it should when signing up etc but when a member fills their cart and then logs out on logging back in the cart is empty apart from the shipping costs. I have PWA installed and that also works fine. I have discovered that if i add to cart and then log in or create an account the shopping cart will remember its contents on log out. But if a member logs in fills cart then logs out the cart will empty Any ideas? All suggestions greatfully accepted. Doug
♥Vger Posted October 24, 2006 Posted October 24, 2006 Just a thought - but PWA works by mimicing the normal Create Account process, except that at the end of a purchase or user session no account is created. If no account is created then there can't be a saved basket. Vger
Helper Posted October 24, 2006 Author Posted October 24, 2006 Just a thought - but PWA works by mimicing the normal Create Account process, except that at the end of a purchase or user session no account is created. If no account is created then there can't be a saved basket. Vger Thanks for your reply Yes that is true but should the account also empty when a legit account has been made. Doug
GemRock Posted October 24, 2006 Posted October 24, 2006 I don't quite get what you meant. But the following should give you something to check against: 1. a customer adds items to the shopping basket, either before or after s/he logs in, the items in the cart will be there FOREVER (assuming they will login) unless they empty the cart, i.e., if they then logoff, then next time they login, they will still see the items there. This is the intended, normal behavour. Or you have a problem with your shop'd setup; 2. when I say 'will be there forever' that means the cart info is saved in the database. If the customer logs off, then the cart will be empty (although still in the database), ie, they can no longer see th eitems on screen. Otherwise, you have a serious setup problem; 3. PWA is just like any other guest visitors, ie, their cart info will not be saved in the database. So, if they do not finish the checkout process, then next time they come back, they will not be able to see the cart items they added on the previous visit. Ken Hi I have a curious problem which I cannot find support for.My shopping cart works fine and merges as it should when signing up etc but when a member fills their cart and then logs out on logging back in the cart is empty apart from the shipping costs. I have PWA installed and that also works fine. I have discovered that if i add to cart and then log in or create an account the shopping cart will remember its contents on log out. But if a member logs in fills cart then logs out the cart will empty Any ideas? All suggestions greatfully accepted. Doug commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
Helper Posted October 24, 2006 Author Posted October 24, 2006 1. a customer adds items to the shopping basket, either before or after s/he logs in, the items in the cart will be there FOREVER (assuming they will login) unless they empty the cart, i.e., if they then logoff, then next time they login, they will still see the items there. This is the intended, normal behavour. Or you have a problem with your shop'd setup; This is my problem when they log backin the cart is empty however if the item is added before logon it remains in the cart unless of course theygo through checkout or delete
Guest Posted October 29, 2006 Posted October 29, 2006 hi there i am having exactly the same problem. on investigation of the database tables, it seems that sometimes the products_id field in the customers_basket and customers_basket_attributes tables is blank. if i (customers_id 9) log back in, my cart is not retrieved. i also have a script to count the items in the basket in the header, so it thinks i have 2 items in the cart, but if i go to the shopping cart no items are displayed. also it doesn't seem to be entirely customer specific. in the database for the same customer i can see cases where it has saved the products_id for some products and is blank for others. any help appreciated. dovegrey
Helper Posted October 29, 2006 Author Posted October 29, 2006 hi there i am having exactly the same problem. on investigation of the database tables, it seems that sometimes the products_id field in the customers_basket and customers_basket_attributes tables is blank. if i (customers_id 9) log back in, my cart is not retrieved. i also have a script to count the items in the basket in the header, so it thinks i have 2 items in the cart, but if i go to the shopping cart no items are displayed. also it doesn't seem to be entirely customer specific. in the database for the same customer i can see cases where it has saved the products_id for some products and is blank for others. any help appreciated. dovegrey Hi I solved the problem by re uploading shopping cart php I do not know how but it had become corupt It now works
Guest Posted November 4, 2006 Posted November 4, 2006 mine seems to be a writing to the database problem, rather than a displaying output problem. if anyone else has any clues to how i might fix it, i would be very grateful :)
aegrnberg Posted February 20, 2007 Posted February 20, 2007 mine seems to be a writing to the database problem, rather than a displaying output problem. if anyone else has any clues to how i might fix it, i would be very grateful :) Hey Dovegrey... Did you happen to figure this out? I have the same problem you do. My "customer_basket" table is also showing some blanks in the products_id field. The ones with the products_id filled in are products that have been added prior to logging in... ones logged in, and products are added, they are not saved for some reason. So, guest items are being recognized but not the member items. I know, because in addition to the scenarios you mentioned, I ran this scenario: Added items in cart as guest, then logged in. Added items as member. Logged out. Logged back in, only items added as guest were saved in the cart. Everytime I try to log in first and add items, none are saved. It must have been a contrib I recently added because this didn't happen before... and I have heavily modded test site. I have been reading all the forums, tried every fix from SSL, cookies, sessions, reuploading original files.. etc to no avail. Been trying to figure thing whole thing out all day and I feel like I just wasted my time when I could have done my taxes... :'( Anyway, let me know what you find out and I'll do the same. The "member saves cart" feature is a good feature and don't want to just let it go. I may have to uninstall my last few mods. Also does anyone else know which files the member session/add cart is located? Is it mainly in the shopping cart or application top...? Thanks in advance.
aegrnberg Posted February 20, 2007 Posted February 20, 2007 Hey Dovegrey... Did you happen to figure this out? I have the same problem you do. My "customer_basket" table is also showing some blanks in the products_id field. The ones with the products_id filled in are products that have been added prior to logging in... ones logged in, and products are added, they are not saved for some reason. So, guest items are being recognized but not the member items. I know, because in addition to the scenarios you mentioned, I ran this scenario: Added items in cart as guest, then logged in. Added items as member. Logged out. Logged back in, only items added as guest were saved in the cart. Everytime I try to log in first and add items, none are saved. It must have been a contrib I recently added because this didn't happen before... and I have heavily modded test site. I have been reading all the forums, tried every fix from SSL, cookies, sessions, reuploading original files.. etc to no avail. Been trying to figure thing whole thing out all day and I feel like I just wasted my time when I could have done my taxes... :'( Anyway, let me know what you find out and I'll do the same. The "member saves cart" feature is a good feature and don't want to just let it go. I may have to uninstall my last few mods. Also does anyone else know which files the member session/add cart is located? Is it mainly in the shopping cart or application top...? Thanks in advance. I finally figured it out! Aaargh, I wasted so much time and it only took me a few minutes to find the problem once I decided where to go.... I went to catalog/includes/classes/shopping_cart.php Well, I recently added the products attributes option type feature contrib ... the changes in there call for "products_id" to replace "products_id_string"... there were a few of them in there and I found that one that I missed!!! Just posting this just in case someone else has the same problem and save you WASTING YOUR WHOLE day only to figure out it's such a simple fix....!!! Take care!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.