- Posts: 9
- Thank you received: 0
Level of Categories For OT Mini Tabs & Hide Category
- Tan Haan Chiang
- Topic Author
- Offline
- Fresh Boarder
Less
More
10 years 10 months ago #4964
by Tan Haan Chiang
Hi,
I can only display 2 levels of categories for the OT Mini Tabs.
How can I display more levels for that?
Besides,
How to hide certain category from displaying?
Thanks.
I can only display 2 levels of categories for the OT Mini Tabs.
How can I display more levels for that?
Besides,
How to hide certain category from displaying?
Thanks.
Attachments:
Please Log in or Create an account to join the conversation.
- Linh Robert
- Offline
- Banned
Less
More
- Posts: 908
- Thank you received: 568
10 years 10 months ago #4969
by Linh Robert
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Replied by Linh Robert on topic Re: Level of Categories For OT Mini Tabs & Hide Category
Hi,
This is the issue of VM_product_category module.
You can show 3rd level category but with a litle hack.
1. Go to backend, edit the module (mod_virtuemart_category - "By Departments") and choose the layout is "All". I think you've done this.
2. Go to modules/mod_virtuemart_category/mod_virtuemart_category.php
find this code ~ line 49:
3. Go to templates/ot_.../html/mod_virtuemart_category/tmpl/all.php
find this code ~ line 35:
Add this code after above line:
Save them all.
4. Go to back-end, at Maintance page, clear all cache.
5. Try it!
Hope this help.
Thanks!
This is the issue of VM_product_category module.
You can show 3rd level category but with a litle hack.
1. Go to backend, edit the module (mod_virtuemart_category - "By Departments") and choose the layout is "All". I think you've done this.
2. Go to modules/mod_virtuemart_category/mod_virtuemart_category.php
find this code ~ line 49:
Code:
foreach ($categories as $category) {
$category->childs = $cache->call( array( 'VirtueMartModelCategory', 'getChildCategoryList' ),$vendorId, $category->virtuemart_category_id );
add after it
// Your hack code here
if($category->childs){
foreach($category->childs as $child){
$child->childs = $cache->call( array( 'VirtueMartModelCategory', 'getChildCategoryList' ),$vendorId, $child->virtuemart_category_id );
}
}
// End of Your hack code
...
find this code ~ line 35:
Code:
<div ><?php echo JHTML::link($caturl, $cattext); ?></div>
Add this code after above line:
Code:
<?php if ($child->childs ) { // Your hack code here
?>
<ul class="menu<?php echo $class_sfx; ?>">
<?php
foreach ($child->childs as $grandchild) {
$caturl = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$grandchild->virtuemart_category_id);
$cattext = $grandchild->category_name;
?>
<li>
<div ><?php echo JHTML::link($caturl, $cattext); ?></div>
</li>
<?php } ?>
</ul>
<?php } // End of your hack code
?>
Save them all.
4. Go to back-end, at Maintance page, clear all cache.
5. Try it!
Hope this help.
Thanks!
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Please Log in or Create an account to join the conversation.
- Tan Haan Chiang
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 9
- Thank you received: 0
10 years 10 months ago - 10 years 10 months ago #4970
by Tan Haan Chiang
Replied by Tan Haan Chiang on topic Re: Level of Categories For OT Mini Tabs & Hide Category
Hi,
It's not working.
I have both modified files attached.
Please check if they're done correctly.
Thanks.
Regards,
Tan
It's not working.
I have both modified files attached.
Please check if they're done correctly.
Thanks.
Regards,
Tan
Last edit: 10 years 10 months ago by Tan Haan Chiang. Reason: Files attached failed
Please Log in or Create an account to join the conversation.
- Linh Robert
- Offline
- Banned
Less
More
- Posts: 908
- Thank you received: 568
10 years 10 months ago - 10 years 10 months ago #4973
by Linh Robert
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Replied by Linh Robert on topic Re: Level of Categories For OT Mini Tabs & Hide Category
Hi,
You inserted the code for all.php at wrong place.
I said "Add this code after above line:" not "Add this code above line:"
So I attached the correct here.
But will not have any guaranty that it will work for you.
Part of the message is hidden for the guests. Please log in or register to see it.
Thanks
You inserted the code for all.php at wrong place.
I said "Add this code after above line:" not "Add this code above line:"
So I attached the correct here.
But will not have any guaranty that it will work for you.
Part of the message is hidden for the guests. Please log in or register to see it.
Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Last edit: 10 years 10 months ago by Linh Robert.
Please Log in or Create an account to join the conversation.
- Tan Haan Chiang
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 9
- Thank you received: 0
10 years 10 months ago #4977
by Tan Haan Chiang
Replied by Tan Haan Chiang on topic Re: Level of Categories For OT Mini Tabs & Hide Category
Hi,
It's still not working.
Any idea how to make it work?
Thanks
Regards,
Tan
It's still not working.
Any idea how to make it work?
Thanks
Regards,
Tan
Please Log in or Create an account to join the conversation.
- Linh Robert
- Offline
- Banned
Less
More
- Posts: 908
- Thank you received: 568
10 years 10 months ago #4978
by Linh Robert
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Replied by Linh Robert on topic Re: Level of Categories For OT Mini Tabs & Hide Category
So, you can think about search on VM forum to see if some one did the trick or can use some third party VM category modules which support multi-level cate menu
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Please Log in or Create an account to join the conversation.
Time to create page: 0.666 seconds