VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: panoss on August 31, 2016, 09:01:59 AM

Title: Subcategories in the frontpage?
Post by: panoss on August 31, 2016, 09:01:59 AM
Is there some way (except from changing the VM code (or overriding it)) to display subcategories in the frontpage?
Title: Re: Subcategories in the frontpage?
Post by: Studio 42 on August 31, 2016, 11:34:37 AM
You mean the secondary level ?
If it's only for frontpage, then you can use virtuemart categories module. Of course  this need to change the CSS.
Another solution is to use mod custom and add all links to sub categories or add all in your shop description.
Title: Re: Subcategories in the frontpage?
Post by: panoss on August 31, 2016, 12:40:37 PM
Quote from: Studio 42 on August 31, 2016, 11:34:37 AM
You mean the secondary level ?
Top Level Category
--Curtains

This way it appears in the front end.

But I want to do add another category:
Top Level Category
--Products
----Curtains

So that 'Curtains' will now have as parent the 'Products' category.

The problem is that, now, that 'Curtains' won't have as parent the 'Top Level Category', they won't appear in the frontpage of VM.

So as another solution I 'm thinking of leaving it as is, having as parent the 'Top Level Category' and 'Products' not to be added at all.
Title: Re: Subcategories in the frontpage?
Post by: GJC Web Design on August 31, 2016, 13:06:21 PM
exactly.. why do u have products as a cat?
Title: Re: Subcategories in the frontpage?
Post by: panoss on August 31, 2016, 14:30:02 PM
Because I don't have only products, I also have services.

I was thinking of creating something like this:

Top Level Category
--Products
----Curtains
----Furniture
--Services
----Cleaning
----Painting
Title: Re: Subcategories in the frontpage?
Post by: Milbo on September 01, 2016, 19:22:54 PM
load the last vm3.0.17.6 and use the category view instead
Title: Re: Subcategories in the frontpage?
Post by: panoss on September 01, 2016, 22:17:31 PM
Thank you very mush, I'll give it a try.
My only problem is I'll have to re-enter the data, categories, products etc (I suppose the table structure will have differencies).
Title: Re: Subcategories in the frontpage?
Post by: GJC Web Design on September 01, 2016, 23:23:10 PM
definitely not.. this is just an upgrade.. no data will be touched

just install via the Joomla installer
Title: Re: Subcategories in the frontpage?
Post by: panoss on September 04, 2016, 17:45:40 PM
Quote from: Milbo on September 01, 2016, 19:22:54 PM
load the last vm3.0.17.6 and use the category view instead
I just tried it, very very nice!

But now I have two problems!

1. I can't change the number of categories per row.
I tried in the 'Product Category Form' of category 'Products' in 'Number of Products per Row'.
I put 3 but they 're still 4 per row.
I tried and with css but the result was bad.
How can I change it?

2. The categories which now have a new parent (either 'Products' or 'Services') disappeared from the frontpage (ok, logical, as they 're no more 'Top Level Categories', but I must somehow make them reappear!).