close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Store Ecart data in a Database

Thread began 9/05/2012 9:51 am by sabastian130416448 | Last modified 9/10/2012 11:49 am by Jason Byrnes | 1111 views | 3 replies |

sabastian130416448

Store Ecart data in a Database

I am looking for a pdf or a forum post where it gives details or rather a guide on how to save your cart with multiple products.

The products are taken from a dynamic table and a database with multiple tables housing the different products.

My whole online shop is working perfectly but am now looking to save my customers carts in the database so that they are able to continue shopping after they have closed their browser.

I had a look at using cookies but they are really limited in the amount of products that can be saved.

Each customer's order needs to be in a single row in the table so that I don't end up with hundreds of rows in the table.

Thanx in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

you can use the store order summary and store order details to store the cart contents to a database.

you will need a cart summary and cart details table in your database. the cart details table will store the item information for items in the saved cart.

look at the eCommerce database in the Order Summary and Order details tables for a basic structure.


you should probably give a text box where they can name the cart, then in the cart summary behavior, save the date, cart name, and user ID. The cart summary will save the ID of the record that is inserted in a session variable.

in the cart details tables, bind the relational column to the session created by the order summary behavior, and bind the product columns to the cart bindings.

later when the user logs in, you can create a recordset that filters the order user column by their ID and show carts that the user has saved. when they click on one, pass tjhe order ID as a URL variable to filter another recordset that queries the cart details table.

use the Get Contents from recordset behavior to populate the cart with the saved order.

Sign in to reply to this post

sabastian130416448

Jason I am trying to follow but I am losing you a little. Well to be honest I am losing you a lot. Know where and how to save the data in the database but where do I find the cart summary behavior, how do I bind the relational column to the session created by the order summary behavior?

As you can see this is going to be an effort of note.

Isn't there a pdf or some thing that can show me step by step how to do this?

Thanx Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

the eCart store cart summary and details behaviors can be added by going to the server behaviors panel, clicking the plus button and selecting eCart -> Database manipulation.

in the Details behavior, set the ID column to the relation column in the details table, click he lightning bolt icon next to the relation column and select the session that is created by the Summary behavior.

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