Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Categories view for alot of categories

Categories view for alot of categories 11 years 6 months ago #388

Im using Fashionmart template in my shop and Im satisfied with. Only issue for me is, my shop has now some 1300 products (target amount about 3000), divided into 15 categories, each one divided into lets say 5 subcategories. What I need is to modify categories/subcategories view to be there just text links to categories/subcategories (without images), using just small space above list of products. What I want is seen for example here:
www.countrylife.cz/biopotraviny - those green links to categories above "Akcni nabidka" text.

Any idea, how to solve it in Fashion Mart? I can modify flexibleVM2Global.css, but I need also some recommendation, how to setup settings of VM2 and of FashionMart to work this way. Thanks
The administrator has disabled public write access.

Categories view for alot of categories 11 years 6 months ago #390

Hi,

You would need to do some PHP edits, Just CSS edits would not be enough to achieve what you are looking for.
The PHP lines to generate subcategories are located in the category browse page PHP file, which is right here:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php
(default.php or what ever layout you chose throug VM configuration)

The PHP lines to generate the child products starts from with this line:
/* Show child categories */
 
if ( VmConfig::get('showCategory',1) ) {

and it ends with these lines below:
// Do we need a final closing row tag?
	if ($iCol != 1) { ?>
		<div class="clear"></div>
		</div>
	<?php } ?>
</div>
<?php }
}

So you need to make edits to what ever you see between in those lines. You can disable the category thumbnails, or change their DIV class, etc.. to achieve to the same look in www.countrylife.cz/biopotraviny

Before doing anything, just make sure you SAVE the PHP file in case things get messed up.

Cheers.
Flexible Support Team.
The administrator has disabled public write access.

Categories view for alot of categories 11 years 6 months ago #394

Thanks for showing me the directions. I have modified very slightly both files,
com_virtuemart/category/default.php
as well as
flexibleVM2Global.css
and you can see first, very promising result at my testing site www.cenzdra.cz/eshop
But, what I dont understand - when I click to any category in that modified section at the top of page, list of correct subcategories is shown, but all of products bellow, related to this subcategory, completely dissapear. When you click then to proper subcategory, products are shown again. I cant find reason, why it behaves this way. Any idea?
The administrator has disabled public write access.

Categories view for alot of categories 11 years 6 months ago #395

Hi,

I have never built a this big category tree in the Virtuemart. So i don't know how it is with original Virtuemart. Are you sure, it doesn't work like that with original Virtuemart and it is our VM Template's fault?

Please try to disable our VM Template and see how things are with original Virtuemart. If everything works as expected, i will patch our VM Template to work as same as original Virtuemart. But if everything is also same in original Virtuemart; then there is nothing I can do about it. This is just how it is.

To disable our VM Template, the simplest way is; change this folder name:
www.cenzdra.cz/templates/cenzdra2109/html/com_virtuemart/
to
www.cenzdra.cz/templates/cenzdra2109/html/com_virtuemart2/

Cheers.
Last Edit: 11 years 6 months ago by Support.
The administrator has disabled public write access.

Categories view for alot of categories 11 years 6 months ago #400

You were right, it was my fault, your template is OK. It works now exactly as I need.
Thanks
Radek
The administrator has disabled public write access.
Time to create page: 0.220 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo