How to remove dropdown of a top category

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeHow to remove dropdown of a top category

This topic has been marked as not resolved.

I want to make one of my categories unable to show a drowdown menu for his subcategories.

Is this possible? :)

August 31, 2011 at 9:48 am #1270

Hi,

Unfortunately, for the moment only top level categories could be hidden from the main menu e.g.

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

We may consider adding this, as an option for future versions.

Best regards,
ThemeBurn team

August 31, 2011 at 10:40 am #1273

Ah okey I see!

Is it possible that after I hide the category I just add an link in one of the files pointing to that exact category?

August 31, 2011 at 10:44 am #1275

Hi,

In a matter of truth, you could :)

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

Best regards,
ThemeBurn team

August 31, 2011 at 11:15 am #1277

That works all the way until I realized I don’t get the text on the link translated if a user change the language. >.<

But it could work anyway. But is there no way of hiding the Information page?

In the next update it would be great if this is an option :)

I don't want to mess up to much so I might just use the regular categories with the dropdown.

August 31, 2011 at 1:39 pm #1289

will it be alright if I just add <?php /* at the beginning of the file and */ ?> right before my custom link?

  • This reply was modified 4615 days ago by  andrixx.
August 31, 2011 at 1:58 pm #1290

Won’t be a problem. Doing so will comment everything before your menu. Just be sure, not to have nested php comments.

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

Best regards,
ThemeBurn team

September 2, 2011 at 8:45 am #1337

Thanks alot for your help! :)

I did what I think you asked me to do. But I get an error message:

Notice: Undefined property: Document::$category_color_name in

/home/chickise/public_html/catalog/view/theme/shoppica/template/module/shoppica_information_menu.tpl on line 36

This is my code in shoppica_information_menu.tp around line 36, where the link is on line 36:


<!-- use this if you want to add another custom menu -->
<li id="custom_menu_id">
  <a href="/color" style="margin-left:0px;"><?php echo $this->document->category_color_name; ?></a>
<li>

This is my translation in catalog/language/swedish/module/shoppica.php:

// Main Menu
$_['shoppica_menu_inside']      = 'Inside %s';
$_['shoppica_menu_brands']      = '%s Märken';
$_['shoppica_menu_information'] = 'Information';
$_['category_color_name']    = 'Färger!';

Thanks again for your help! And I am sorry as I am a bit rookie on the subject. But I can’t see what I did wrong.

  • This reply was modified 4613 days ago by  andrixx.
September 2, 2011 at 11:35 am #1358

Ah, I changed the entire “shoppica_text_your_variable” I left the shoppica in the beginning and it works :)

Thanks alot for the help with both the category AND translation!

September 2, 2011 at 5:46 pm #1417

Glad, you’ve managed to solve the problem :)

September 3, 2011 at 3:31 pm #1445
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.