Post by ham » Mon Apr 11, 2011 9:41 pm

Hi does anyone know if it is possible to have certain products only displayed to registered members of the website when logged in, but still have the rest of the products displayed to guests?

thanks in advance :)

ham
Newbie

Posts

Joined
Sat Mar 19, 2011 2:57 am

Post by Avvici » Tue Apr 12, 2011 6:45 am

Focus on the session for logged users because only they can actually be registered. One can do a lot with a simple conditional:

in your control file it would start like this:
if ($this->customer->isLogged()) {

In your TPL(html) O0 it would start like this:
if ($logged){

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by ham » Wed Apr 20, 2011 4:19 am

Hi avvici, thanks for the reply, sorry it has taken so long to respond.

Could you give me a little more help?

what directory is the TPL file located in?

ham
Newbie

Posts

Joined
Sat Mar 19, 2011 2:57 am

Post by openmycart.com » Thu Apr 28, 2011 11:34 pm

basically the tpl files located

catalog\view\theme\Your_theme\template\

Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am


Post by mystifier » Thu Apr 28, 2011 11:39 pm

You can restrict Categories to selected Customer Groups using This Mod but individual Products you would have to do what has been suggested.

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm
Who is online

Users browsing this forum: No registered users and 72 guests