displaying data bases on customer |
Post Reply |
Author | |
dwatch
Newbie Joined: 26-February-2006 Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 27-February-2006 at 11:23am |
Trying to display certain data (pricing, etc) on the viewprd.asp base on the customer and the product. here is what i have so far if session("idcustomer")=1200 then 'display data here end if I need help adding in the and idproduct= or idcategory= part of it. Any input will be appreciated. |
|
watercrazed
Groupie Joined: 31-December-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I may be way off base but have you tried just pasting all of the the code for the display part of the form between your if and end if? I don't code but here is my guess.
if session("idcustomer")=1200 then <-- start form--> paste all of the form code here <!-- end of ordering options and add to cart button --> end if Really not sure where you put your end if but, that is a guess. Maybe someone that actually knows asp will try to answer. |
|
dwatch
Newbie Joined: 26-February-2006 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
That part of it works. I need to add the part about the product into this though.
Example would be if the customer is xyz company and the product is a sku: tt33, then display a certain price. Edited by dwatch - 02-March-2006 at 9:08am |
|
watercrazed
Groupie Joined: 31-December-2005 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I am not sure what you are asking,
Do you have a different pricing structure for each customer? I think you would need a new price column in the database for each customer or customer class. Then replace standardprice variable pPrice=rs("price") with newprice variable name. For another example look for the code where the cart displays wholesale price based on the customer class of wholesale. |
|
dwatch
Newbie Joined: 26-February-2006 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
John, Right, another field in the database would be useful. I can handle that part. the part I need help with is the exact coding that would state if the customer is xyz company and the product is a sku: tt33, then display that new price field. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |