Post by MZBS » Thu Apr 11, 2013 10:40 pm

Hello,

I see that in the category.tpl there is a line inside a javascript code that is:

Code: Select all

			html += '<div class="name">' + $(element).find('.name').html() + '</div>';
that display the product name in the category.

What I want is to HIDE that line when you are in the category with the ID 59.

Is that posible? How can I insert a conditional there? ;D

Thank you!

New member

Posts

Joined
Tue Jan 17, 2012 1:36 am

Post by MZBS » Mon Apr 22, 2013 11:46 pm

No idea?

I am trying also with something like this:

Code: Select all

<?php 
      if(!empty($this->request->get['route']) && $this->request->get['route'] == 'product/category&path=59') : ?>
      <style>.content .product-grid .name {visibility:hidden; display:none;  }</style>
      <?php else: ?>
      <style>.content .product-grid .name {display:block;  }</style>
      <?php endif; ?>
But is also not working... :(

New member

Posts

Joined
Tue Jan 17, 2012 1:36 am
Who is online

Users browsing this forum: No registered users and 6 guests