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


how to handle multiple prices levels in eCart

Thread began 12/22/2011 9:49 am by bhblake | Last modified 12/22/2011 4:14 pm by Jason Byrnes | 952 views | 1 replies |


how to handle multiple prices levels in eCart

I'm developing a site that has three price tiers - Retail, Wholesale, and designer. These prices are all set up as separate fields in my products table. My question is how do i handle it when it comes to eCart. I have used security assist and have 3 tiers of logins and depending on what you login tier is you will only see the price for you tier, however how should I go about handling the price column in eCart so the the 3 different fields funnel into the same price column depending on your login.


Sign in to reply to this post

Jason ByrnesWebAssist

you will need to add custom code for this

in the addd to cart button code, you will need to add the same if statements around the price code, as you do to display the price, based on the userlevel session.

for example the code for the price column in the add to car may look like:
[php]$ATC_itemPrice = floatval("".$row_recordsetName['ProductPrice'] ."");// column binding:[php]

you would need to use an if statement around that code:

if($_SESSION['userlevel'] == "1") {

$ATC_itemPrice = floatval("".$row_recordsetName['ProductPrice']  ."");// column binding
} elseif($_SESSION['userlevel'] == "2") {
$ATC_itemPrice = floatval("".$row_recordsetName['ProductPrice2']  ."");// column binding
} elseif($_SESSION['userlevel'] == "3") {
$ATC_itemPrice = floatval("".$row_recordsetName['ProductPrice3']  ."");// column binding
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





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