View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Prepopulate the cart with items

Thread began 10/19/2009 4:12 am by stodan1378060 | Last modified 10/20/2009 7:14 pm by stodan1378060 | 794 views | 3 replies

Eric Mittman

One way you could do this would be to put an add to cart server behavior on a page that you know the user will go to regardless, like the product listing page or the cart.

The idea is that you have this add to cart server behavior on the page and the trigger is based on a session variable being set. Since this session variable will not be set by default the add to cart will run and add the item. You then edit this server behavior on the page to add in the code to set the session variable. This way after the code has run the item will be added but not again.

There are other ways you can do this also, you can give the item a unique id, then have an add to cart server behavior that is triggered on this item not being in the cart and just have it added. Please post back with any questions you have about any part of this.

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





Ease of use


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