ruisonika Posted June 25, 2017 Share Posted June 25, 2017 Hello guys,I need help please.I'm running 1.6 prestashop.This is my shop: https://nnn.acidados.net/index.phpI'm trying in the vertical "dropdown" menu (item-menu called "Família Teste") to do this:When in this menu (hover situation) in the panel on the right you could see the categories (first and second level) in the second level there is 2 categories hidden (active = 0), so when does happen i want to show a button see all, the links to another page and where all categories from that parent are show.The code i have been working is this. $sql = 'SELECT COUNT(*) FROM '._DB_PREFIX_.'ptsverticalmenu WHERE active = 0 ORDER BY id_parent'; $totalMenuHide = Db::getInstance()->getValue($sql); if ($totalMenuHide > 0){ $row .= '<span class="btn_seeall">ver todas</span>'; }My problem is how can i refere to $this, i need to use $this but i don't know where.Help please.Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now