- Posts: 14
- Thank you received: 0
Odd problem with category listing module
I'm having a problem with the category listing module when set to show "all direct sub categories".
compusale.cloudaccess.net/computer-parts-sale.html
On the "Categories" module to the left. That module always have the "Motherboard" category opened up (showing it's sub categories such as "AMD (FM1)"). No matter which category I click on, once the page loads up, the "motherboard" category will be opened again.
For example when I click on the "Opteron" category ( a sub category of "CPU"), it goes to a page displaying Opteron CPUs BUT the Categories listing module will have the "Motherboards" category open up again (instead of having CPU open up)
Is there any way to make the correct category open up? i.e. when I'm in "Opteron", the "CPU" category will open up instead of "Motherboards" category?
If not, is there anyway to make no categories open up by default?
Thanks
regards
Simon
Please Log in or Create an account to join the conversation.
To edit this functionality, you have to edit the view "category / listing_list".
Here is some code which should unselect default category:
Please Log in or Create an account to join the conversation.
I can't seem to get that code to work (not sure if I'm putting it in the correct place). Can you please copy and paste the entire "category / listing_list" here?
Also my client wants the selected category to open by default. i.e. when in a sub category of "CPU", the CPU category will open. Is this possible?
Please Log in or Create an account to join the conversation.
I will try to see how to open by default as soon as possible.
Please Log in or Create an account to join the conversation.
Regarding the codes, I inserted it but the category module is still not displaying properly. Can I send you the admin login (through contact us?) so you can make tests and adjustments directly?
I noticed in the category options, Hikashop already have an option called "Random items" (where a random category bounce up to top & open up). Maybe for future release we can have another option there that allows the active category to bounce up & open?
Please Log in or Create an account to join the conversation.
$this->tabs->setOptions(array('startOffset'=>$found,'startTransition'=>0));
to:
$this->tabs->setOptions(array('startTransition'=>0));
in that file.
And please make sure that you're editing it for your frontend template and not another one, otherwise, you won't see any change.
Please Log in or Create an account to join the conversation.
Can you please have a look in my back-end administrator? (did you receive the login I sent via "contact us"?). I have tried both suggestions but still cannot get it to work.
Thanks
Please Log in or Create an account to join the conversation.
Is there any other solutions? I don't know if I can continue using Hikashop if this problem cannot be solved.
Please Log in or Create an account to join the conversation.
I looked at the problem on your website regarding the fact that the proper category didn't expand but couldn't find why that could have happened since the selection of the category in PHP was the correct one.
And you said in your first message that having no category open would be fine too.
So, the code change I gave you was to do that.
I checked your website and that's what it is actually doing.
No category is opened when a page is displayed.
So my suggestion is ok, as far as I can see.
Please Log in or Create an account to join the conversation.
The menu is satisfactory in it's current state but an expanding one (with correct category) would be best. Is this possible?
Please Log in or Create an account to join the conversation.
As I said in my last post, the data sent by HikaShop to the accordion library of joomla is correct on your website. I debugged that myself. So I don't see why it doesn't work on your website and don't have a solution for you.
Please Log in or Create an account to join the conversation.
shoptest.cloudaccess.net/cat-menu/category/18-sub-4.html
Please Log in or Create an account to join the conversation.
I have fixed the problem in your website and I have made a fix in HikaShop which would be include in the next package.
If you want a generic fix, please edit the file administrator/com_hikashop/helpers/sliders.php
and replace
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.