close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Customized Cart for Login

Thread began 5/04/2012 7:45 pm by On-L9.com | Last modified 5/07/2012 9:43 am by Jason Byrnes | 415 views | 1 replies |

On-L9.com

Customized Cart for Login

We own eCart and are considering purchasing DataBridge, but want to make sure we can achieve the functionality we're looking for. We like to have our customers login and see products we've picked specifically for them to purchase. Can this be done? And what is the level of difficulty (I understand this question is matter of reference)? We are comfortable with eCart.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, this can be done with the security assist porting of data bridge.


when a user logs in, the ID for that user is stored in a session variable, you can set a table in your database to assign products to the user based on productID and User ID, then use the Login Session variable to query that table and return products for that user.


the table to assign products to the user would be a linking table, with a column for productID and userID:


usersproducts:
userproductID - primary key
usersproductUserID - relates to users.userID
usersproductProductID - relates to products.productID

you could the use a join query to return the user products, for example, if the login session variable is named "UserID" the query may look like this:


SELECT products.*
FROM products
INNER JOIN usersproducts
ON products.productID = usersproducts.usersproductProductID
WHERE usersproducts.usersproductUserID = paramUserID


Variable:
name: paramUserID
type: integer
default value: -1
run time value: $_SESSION['UserID']

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