Hi, I need only some products are not displayed if the user is not logged .... is this possible?
Thanks!
you can using code below to show or hide product when customer logged or not
add this code to product controller
and using if tag in product template
so if you need control product show when logged with admin option
please contact me !
Regards
add this code to product controller
Code: Select all
$this->data['logged'] = $this->customer->isLogged();
Code: Select all
<?php if($logged){ ?>
//is logged
<?php }else { ?>
//not logged
<?php } ?>
please contact me !
Regards
News CMS || Plus SEO || Live Price change with Option Select
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!
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!
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
Anyone know how to fix this?
FIXED ESPANISH
http://forum.opencart.com/viewtopic.php ... 83#p334148
Who is online
Users browsing this forum: simple-opencart and 76 guests