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

Bug

Thread began 11/03/2016 9:18 am by markdoyle87077 | Last modified 11/04/2016 2:26 pm by Ray Borduin | 500 views | 4 replies |

markdoyle87077

Bug

Hi Ray,

I have my pages set up to add multiple products at once. When I try to add 50 products at once it works if the cart is stored in a SESSION but it only adds 19 if the cart is stored in a COOKIE so I suggest there is a bug somewhere.

Kind regards.

Sign in to reply to this post

Ray BorduinWebAssist

Yes... browsers have cookie size limitations. It isn't a bug as much as a limitation. It would probably vary based on the browser you use but there will always be a limit.

We might be able to work on it to decrease the footprint of the cookie and get the limit up, but at some point you are always going to run into a cookie size limitation.

A solution for that is to store a unique ID for the customer in a cookie, but then save the cart into the database. Then it can function as if it were a cookie based cart and stay populated without login or registration but without inherent cookie size limitations.

Sign in to reply to this post

markdoyle87077

I can do that. I take it the best practice would be to save the cart to the database after every add, update or delete on the cart object?

Regards.

Sign in to reply to this post

Ray BorduinWebAssist

If you always display the cart after you add to cart then I'd just always save with any visit to the cart page. For mobile you may have to also save the cart contents in the database on the eCart_JSON.php page.

Then probably add an include to the template that checks if this is the first visit to the site (if a session variable "CartPopulated" doesn't exist) and have it populate the cart from the database and then set the session variable so it only happens once.

Sign in to reply to this post

markdoyle87077

Hi Ray,

Many thanks, I will do as you suggested.

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