close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Automatic persistent shopping cart

Thread began 8/24/2017 3:39 pm by Justin@AdventDesign | Last modified 8/25/2017 11:16 am by Ray Borduin | 36 views | 3 replies |

Justin@AdventDesign

Automatic persistent shopping cart

Client wants customers who leave the site and return later to keep their shopping cart contents. Shopping on the site is private and requires a user login so all shopping is done by a registered user. I've noticed the cart contents stay if I navigate away from the site and return, but how long will the session hold that contains the cart contents? Secondly, I noticed when the user logs out, all the cart content disappear. We'd like those contents to be 'saved' in some way so when a user returns, the cart contents are still there for them to complete an order.

Sign in to reply to this post

Ray BorduinWebAssist

You can use the Save Cart Details In Database server behavior to save the cart contents into a "ShoppingCart" table and then retrieve the cart contents from that table when a user logs in.

This is something I could help with in a premier support ticket.

Sign in to reply to this post

Justin@AdventDesign

Two clarifying questions:

While you're browsing the site how are the current cart contents temporarily stored, and more importantly when or what triggers the expiration of that data? I noticed if I leave the site and come back, the cart contents are still there, so long as I do not log out of the user sign in.

Secondly, with what your suggesting, how would the save be triggered? Every time they add to the cart?

Sign in to reply to this post

Ray BorduinWebAssist

The cart is saved in the session by default, so it will stay as long as your site defines a session to last or until the user closes his browser window or logs out.

Every time they add to the cart is probably a good time to update the database to save a fully persistent cart. Another option would be to use a cookie based cart. That would save it for the current browser and could be set to weeks or months, it just wouldn't be tied to the user if they were on a shared computer.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...