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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple cart buttons for a product using same quantity field

Thread began 2/11/2010 2:27 am by hcijun384863 | Last modified 4/06/2010 11:46 am by hcijun384863 | 1468 views | 14 replies

Jason ByrnesWebAssist

for a wishlist, you need to use SecurityAssist to add user log in, and DataAssist to store the items into a wishlist table.


when the user logs in, a session variable is created with their ID. you will need to create a new wishlist table that is used to relate the wishlist products with the users that added them.


the structure is fairly simply:
wishlistID -Primary Key
wishlistProdID - foreign key relation to productID in products table
wishlistUserID - foregn key relation to UserID in users table.


when the wishlist button is pressed, the productID and UserID are stored in the wishlist table.

to display the wishlist, create a join query on the products and wishlist table:
SELECT products.*
FROM products
INNER JOIN wishlist
ON products.productID = wishlist.wishlistProdID
WHERE wishlist.wishlistUserID = $_SESSION['UserID']

you will need to substitute the column names in your database and the session variable name as well, this is just an example of how the query will work.

the wishlist is really just another product catalog page, the only difference is that the products are related to the user who added them to the wishlist.

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