Author Topic: Show several categories products  (Read 3312 times)

Slokha

  • Beginner
  • *
  • Posts: 24
Show several categories products
« on: March 31, 2010, 19:23:30 pm »
Hye the community and first of all sorry for my english.

Here is my question.
I want to know if it's possible to do things like that :

Categorie1
     Categorie 1-1
     Categorie 1-2
     Categorie 1-3
Categorie 2
     Categorie 2-1
     Categorie 2-2
     ...
Categorie 3
Categorie 4
...

When we click on Categorie 1-1, we see all the products of this category.
And when we click on Categorie 1 we see the link Categorie 1-1, Categorie 1-2 and Categorie 1-3.
Can we have a product list that contains the 3 categories  when we click on Categorie 1 instead having the links ?

I haven't find solution so i wish your help could resolve it ;)
Best regards

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #1 on: March 31, 2010, 19:31:17 pm »
Are you referring to a category/product menu?

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #2 on: March 31, 2010, 19:36:36 pm »
Yes Forrest
I talk about the virtuemart module which appear to navigate in the shop
thanks

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #4 on: March 31, 2010, 23:27:11 pm »
Thanks it looks to be near of what i want.
If i quote the post of Uglyfashion of the topic u link to :

Air Filters
> K & N
> Green Cotton
Brakes
> Disks
  >> Black Diamond
  >> EBC

Do u mean that (if i read well this topic) i can see all the products of "k&N" and "Green coton" if i click on "Air Filters" ?
If yes do i have to install something because i can't find exactly the solution in this topic...

Thanks Forrest


Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #5 on: March 31, 2010, 23:30:26 pm »
His question was different than yours.

Tis module gives you the option to show all links (keep menu expanded always), or to show sub-cat/products only when the parent link is active.

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #6 on: March 31, 2010, 23:42:24 pm »
Ok so for me this problem isn't this one because i use a simple menu which is always expanded.
So my question is about what i try to explain before. To take a known example :
see all the products of "1-1" and "1-2" if i click on "1 (a category wich contain sub-categories 1-1 and 1-2)"
Perhaps there is no solution but i'm sure someone would be interest by it ;)

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #7 on: March 31, 2010, 23:47:50 pm »
I see, so let me get this straight.

YOU WANT ALL CATEGORIES TO ALWAYS BE VISIBLE.

YOU WANT PRODUCTS TO SHOW IN THE MENU AS WELL, BUT ONLY WHEN THE CATEGORY IS CLICKED.

corerct?

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #8 on: April 01, 2010, 00:06:33 am »
Ok i see the problem ^^
It's my fault

My english is very bad so i found an example of what i said :
http://deco-in-design.com/index.php

On this homepage there is the VMmenu on the left. If we click on "meubles" (for example), the page show subcategories and an image of table and chair in a livingroom.
What i want is to show a page like this (http://www.deco-in-design.com/index.php?page=shop.browse&category_id=2&option=com_virtuemart&Itemid=53&cadb8cb4fa03f11b5cdc0fc3a2204c19=eb3c35c301382d0fb85a744790625131) when we click on "meubles" but with all the products of the subcategories (products of "Fauteuils et reposes-pieds" + products of "Tables basses" + products of "Canapés et méridiennes" + ... + etc)

Thanks for your patience Forrest ;)

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #9 on: April 01, 2010, 00:14:31 am »
Ok, just assign the products to both the parent and sub categories.

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #10 on: April 01, 2010, 00:32:27 am »
You are really REALLY good Forrest !
Last night a Forrest save my life ;)
That's so simple that i never thought it would be a thing like that.

So i try another questions to finish well ;)

http://www.deco-in-design.com/index.php?page=shop.browse&category_id=25&option=com_virtuemart&Itemid=53&cadb8cb4fa03f11b5cdc0fc3a2204c19=c8d23bac7db318cb0c5f590fc58aa5da

On the mainbody is there a solution to delete the subcategories (under the image) because i just want the product on it ?

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #11 on: April 01, 2010, 00:40:12 am »
I believe if you look in:
components/com_virtuemart/themes/default/templates/browse/includes/browse_header_category.tpl.php

<?php echo $navigation_childlist; ?>

The line above is what outputs the category list. You can comment it out or remove it.

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #12 on: April 01, 2010, 00:56:41 am »
i try to remove it and replace the file but it didn't change anything.
I even try to delete all it contains to see if i touch the right page (try to have a php error to be sure of midify the right one) but nothing change...

Forrest

  • Full Member
  • ***
  • Posts: 1972
  • Me and my baby
    • Web Developer
Re: Show several categories products
« Reply #13 on: April 01, 2010, 01:00:05 am »
Try components/com_virtuemart/themes/vmj_genx/templates/common/categoryChildlist.tpl.php

Slokha

  • Beginner
  • *
  • Posts: 24
Re: Show several categories products
« Reply #14 on: April 01, 2010, 01:06:52 am »
same results. Nothing change even if i delete the code on this page