Print Page | Close Window

Saving Product Cart Session

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1141
Printed Date: 20-July-2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Saving Product Cart Session
Posted By: shawn
Subject: Saving Product Cart Session
Date Posted: 30-September-2007 at 2:44am

Hi,

I have implemented the code to save product cart session in a database. This stores the cart information in the access database along with the cart information. Please note that there will be problem if you are using reward points. I have done the testing on Windows on ie, firefox and netscape.

Please note that most of our products are BTO products so I haven't tested it for normal products.

Please do not install this on the production site, install on dev server and test it out. Also do not just copy all the files over the current one, as these files are copied from our site and there are changes which has been made other than these. I have marked then with a comment CHANGES SAVE SESSION. Search for these changes.

I would high request if Early Impact can make it part of their next install, as this is a very usefull feature and can be found on almost all of the major shopping cart system.

There are 2 tables - one table store the customer information and the other one saves the cart array information. All the reading and writing is controled by one code page in savesession folder.

Please try it out at you risk, don't hold me responsible if this does not work. But I can help in install or set up.

Download it from my website at http://www2.printpapa.com/temp/savesession.zip - http://www2.printpapa.com/temp/savesession.zip

My production site is http://www.printpapa.com - www.printpapa.com

Here is a testing account on the production site(please do not create account if you do not intent to place orders). IAlso please do not place any test order. THIS IS A LIVE PRODUCTION SITE FOR OUR PRINTING. f you have problems then please email me or post it in this forum.

username/password : mailto:testing@printpapa.com - testing@printpapa.com / password

Things to test is to add some things to the cart then when you check out use the above username and password and click on remember me and click continue. Then close your browser and come back again and you should see the cart contents being automatically populated. You should even be able to login in another computer and it should populate you cart once you login.

Please note that there might be cases since this account will be used by other people for testing the cart contents may differ or the beahviour might be different.

 

Enjoy
Shawn




Replies:
Posted By: MikeCC
Date Posted: 29-January-2010 at 8:53am
I realise this is an old thread, but Shawn has taken the file off the server.
 
Does anyone have a copy please? Would like to add the facility to our v3.51 site.
 
Thanks
 
Mike


Posted By: netprofits
Date Posted: 29-January-2010 at 8:59am
Hi Mike, we don;t have a copy of this but there are some other options:
1. Greybeard Design has an add-on for "Session Saver" here:
http://www.greybearddesign.com/productcart/session-saver/ - http://www.greybearddesign.com/productcart/session-saver/
 
2. Upgrade to 4.0 and it is built into Product Cart.
 
Thanks,
Dan


-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: Hamish
Date Posted: 29-January-2010 at 9:00am
Hi Mike,
  Upgrade to V4 - It has a save cart facility built in :-)
As this post was from 2007 even if the code was available there is a fair chance it would not be compatible with V3.51

A similar feature, that handles preventing session timeouts is available as an add-on : http://wiki.earlyimpact.com/widgets/thirdparty/sessionsaver - http://wiki.earlyimpact.com/widgets/thirdparty/sessionsaver


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Hamish
Date Posted: 29-January-2010 at 9:02am
Hi Dan,
    Great minds think alike :-)


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: shawn
Date Posted: 29-January-2010 at 1:25pm
http://www.earlyimpact.com/forum/uploads/655/savesession.zip -
uploads/655/savesession.zip
 
 
I have uploaded all the files which i used for creating this file. We are not using this anymore, due to issue with loosing sessions. And Simply i don't know if those issues were due to our hosting provider limitation of having only 100mb of session per account or this utility. I removed the save session and moved to dedicated hosting and the problem of lost session was gone. I suspect that the problem was due to the hosting provider, as I am going to re-implement this utility back on our site. I will update this link when i do so.
 
Let me know how it works for anyone.
 
Thanks
Shawn


Posted By: MikeCC
Date Posted: 31-January-2010 at 1:29pm
Thanks for replies everyone.
 
Yes, I'm aware of the Greybeard session saver and that still might be an option. I know v4 is the real answer but we've been fiddling around for some time with 3.51 store and don't want a code update just yet.
 
Shawn - appreciate posting the code again.
 
Hamish - not too concerned about direct compatibility with 3.51 - just want some pointers on how it was done. Can adapt as required.
 
Thanks again.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net