Post by krathos » Sat Aug 04, 2012 5:25 am

Hi, I need only some products are not displayed if the user is not logged .... is this possible?
Thanks!

New member

Posts

Joined
Sat Mar 10, 2012 3:16 am

Post by jimmyphong » Sat Aug 04, 2012 6:01 am

you can using code below to show or hide product when customer logged or not

add this code to product controller

Code: Select all

$this->data['logged'] = $this->customer->isLogged();
and using if tag in product template

Code: Select all

<?php if($logged){ ?>
//is logged

<?php }else { ?>

//not logged

<?php } ?>
so if you need control product show when logged with admin option
please contact me !

Regards

News CMS || Plus SEO || Live Price change with Option Select


Active Member

Posts

Joined
Sat Aug 13, 2011 2:48 am


Post by krathos » Sat Aug 04, 2012 6:45 am

thanks for the fast answer!

but if i do this... it will affect to all products in the catalog. correct?
What i need to do is just hide some product like the option hide price in administrator.

I hope you understand me
Thanks yo so much!

New member

Posts

Joined
Sat Mar 10, 2012 3:16 am

Post by krathos » Tue Aug 07, 2012 3:33 am

someone?

New member

Posts

Joined
Sat Mar 10, 2012 3:16 am

Post by krathos » Tue Aug 14, 2012 5:18 am

I can not find anything that solves my problem

Anyone know how to fix this?

FIXED ESPANISH
http://forum.opencart.com/viewtopic.php ... 83#p334148

New member

Posts

Joined
Sat Mar 10, 2012 3:16 am
Who is online

Users browsing this forum: simple-opencart and 76 guests