First Menu Item is always expanded

  • Posts: 18
  • Thank you received: 0
11 years 7 months ago #139155

On our webpage the first menu-item in a module with the categories is always expanded.

id="category_panel_94">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#category_panel_94" href="#category_pane_0">
</a><a href="/dev/nl/hikashop-menu-for-categories-listing/category/189-spuitbussen">Spuitbussen</a>

</div>
<div id="category_pane_0" class="accordion-body collapse in">

The class "in" shouldn't be there. Only when the category is selected. Our Hikashop version is Buisness 2.1.3 on J 3.2.1 but our subscription has expired.
Is there any way to fix just this problem please?

Last edit: 11 years 7 months ago by actlas.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139188

Hi,

This has been edited in a more recent version.

To change that you have to edit the function "panel()" of the file:
"administrator/components/com_hikashop/helper/sliders.php".

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
11 years 7 months ago #139428

Could you please tell me what needs to been changed in that code?
We don't have the most recent version of course.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139451

Hi,

You have to remove the class "in" in the code.

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
11 years 7 months ago #139459

This works but the panels don't expand at all anymore. Can't this be fixed?

function panel($text, $id) {
		$ret = '';
		if($this->mode == 'pane') {
			if($this->openPanel)
				$ret .= $this->tabs->endPanel();
			$ret .= $this->tabs->startPanel($text, $id);
			$this->openPanel = true;
		} elseif($this->mode == 'sliders') {
			$ret .= JHtml::_('sliders.panel', JText::_($text), $id);
		} else {
			if($this->openPanel)
				$ret .= $this->_closePanel();

			$open = '';
			if((isset($this->options['startOffset']) && $this->options['startOffset'] == $this->count) || $this->count == 0)
				$open = '';

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139463

Hi,

This require more customizations, and as it's present in the future package of hikaShop I can't help you on this.
You will have to wait for this release. ;)

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #151314

Can somebody please inform me on how to fix this at the moment without updating to the new release?

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 0
11 years 4 months ago #151406

I tried replacing sliders.php with the one from the current hikashop basic version without any luck.
It isn't a template issue as far as I tested. A tip would be appreciated, anybody?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #151508

Hi,

As it's in the package, and require many modifications if you don't update so the HikaShop team can not help on this.

Regards,

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum