Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Click Here To Login
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel

Ecommerce Templates on Google Plus


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Restrict products to logged in trade customers?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PieMan
Advanced Member

United Kingdom
137 Posts

Posted - 09/06/2012 :  08:13  Show Profile
In my store I sell some of my own products and some products I buy in. I want to allow trade customers that are logged in to only see my products and not the products that I buy in.

Joe Public can see all products normally or if logged in on level 0, but is there a way to make the logged in trade customers on level 1 and above only see my products and not the bought in products?

Can I use something like the code below to restrict access for trade customers?

if(@$_SESSION['clientID']!=''){
if(@$_SESSION['clientLoginLevel']==<1)
}

Regards

Mike

p.s. Just noticed the pre-sales support only message, I don't know why that is there as I'm fully up to date with support subscriptions!

Edited by - PieMan on 09/06/2012 08:21

Phil
ECT Moderator

United Kingdom
4754 Posts

Posted - 09/06/2012 :  09:17  Show Profile
Hi,
You could probably hide the prices as well as disable the buy button, see this post by Vince here - http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=80406



* Moving Servers?
* Database Imports/Exports
* Database Conversions
* Access to MySql
* ASP to PHP

Rate Our Services/View Our Feedback
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2013 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000