Need your help to make this work on OC v2.0.1.1
I need to show "Add to Cart" button only when user is logged.
I can make this work on OC 1.5 simply by using:
Code: Select all
if ($this->customer->isLogged())
Can somebody help me?
Thanks!
Code: Select all
if ($this->customer->isLogged())
Code: Select all
global $customer; if ($customer->isLogged())
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Users browsing this forum: No registered users and 5 guests