Page 1 of 1
mod_virtuemart_category_lis
Posted: 17 Mar 2009, 15:13
by patrex
This is actually a very nice addon. But I have stumble up on a little problem.
I only want to show the head categorys, not sub cats and deeper. Is it any one who knows if this is possible to do?
Kind regards
Patric
Re: mod_virtuemart_category_lis
Posted: 18 Mar 2009, 20:17
by Jan
Hi, this addon only display head (main) categories)
Jan
Re: mod_virtuemart_category_lis
Posted: 19 Mar 2009, 14:28
by patrex
Real strange, since it list some 152 categories.
Perhaps i have made some thing wrong?
In our shop we have :12 Main categories _| 1
under this their is sub cats _| 2
But the Category list shows also my sub categories wich makes the list far to long to have on the frontpage

Re: mod_virtuemart_category_lis
Posted: 15 Sep 2009, 17:56
by Jan
Then this added needs to be customized, with some recursive function to load all the categories

Re: mod_virtuemart_category_lis
Posted: 03 Nov 2009, 06:03
by stefanos
very nice module, but I got 2 needs maybe you could help.
1. I have a problem styling with css. Using the category thumbnails ON, the category name is on the right of the thumb and I need it below. Maybe there is no way to do this though and need to hack the code but I am not a php expert.
2. I would like the thumbnail to be a link to the category too (same as it's name). That surely is a php hack. If someone can help ?
I think the area to hack is this:
Code: Select all
echo '<td>'. ps_product::image_tag( $categories[$kp]["category_thumb_image"], "alt=\"".$categories[$kp]["category_name"]."\"", 0, "category") . '</td>';
} else if ($displayImg == 1) {
echo '<td>'. JHTML::_('image', 'modules/mod_virtuemart_category_list/assets/images/icon-folder-small.png', $categories[$kp]['category_name']). '</td>';
}
echo '<td align="left" valign="middle" ><a href="'. $sess->url( URL .'index.php?page=shop.browse&category_id=' . $categories[$kp]['category_child_id']). '">'.$categories[$kp]['category_name'].'</a></td>';
I will really appreciate any soft of help, even to point me to the right directions in how to hack the code.
Thanks
Re: mod_virtuemart_category_lis
Posted: 05 Nov 2009, 15:48
by Jan
Hi, yes you need to change it in the code
1) just paste the <br /> (in html), .'<br />'. in php) after the name so it will displayed below or set padding top to the category name
2) if the image is an image you can close it to link '<a href...>'. ... link .'</a>' if this is a css background it cannot be used as link.
Jan
Re: mod_virtuemart_category_lis
Posted: 06 Nov 2009, 22:24
by stefanos
Hi, thanks Jan for your help,
just because I tried those things and all I was getting was errors..

could you show me where to put the .'<br />'. and where in the code to start the <a href=" from ?
cheers
Re: mod_virtuemart_category_lis
Posted: 07 Dec 2009, 23:59
by Jan
Hi, check the version 1.0.1 and see the parameters:
https://www.phoca.cz/download/category/2 ... ist-module
Jan
Re: mod_virtuemart_category_lis
Posted: 08 Dec 2009, 00:07
by stefanos
thanks for the update and last version, will check it out as soon as possible !!
thanks!
Re: mod_virtuemart_category_lis
Posted: 09 Dec 2009, 17:25
by Jan
OK