Author Topic: Displaying all products under sub-categories too  (Read 70323 times)

klitoriks

  • Jr. Member
  • **
  • Posts: 53
Re: Displaying all products under sub-categories too
« Reply #30 on: August 11, 2010, 12:59:13 pm »
Hello all,

this hack works fine. But how I can do to show not only all products under sub-categories, but also products under sub-sub-categories?

Anybody know?

Creb

  • Beginner
  • *
  • Posts: 18
Re: Displaying all products under sub-categories too
« Reply #31 on: August 11, 2010, 13:53:49 pm »
this works with sub-sub categpries too
Creb

klitoriks

  • Jr. Member
  • **
  • Posts: 53
Re: Displaying all products under sub-categories too
« Reply #32 on: August 11, 2010, 14:19:20 pm »
hmm, not working for my :/

I mean, then I press on Parent category it shows all products from parent and sub-categories. But no from sub-sub categories.

I need that then I press on Parent category it would show all products from sub and sub-sub categories :)


Creb

  • Beginner
  • *
  • Posts: 18
Re: Displaying all products under sub-categories too
« Reply #34 on: August 11, 2010, 18:20:24 pm »
Works, check next pages.

Sorry, I click for secound cat.

klitoriks

  • Jr. Member
  • **
  • Posts: 53
Re: Displaying all products under sub-categories too
« Reply #35 on: August 13, 2010, 08:07:48 am »
So, not working, yes?

Maybe you know what to change in code?

klitoriks

  • Jr. Member
  • **
  • Posts: 53
Re: Displaying all products under sub-categories too
« Reply #36 on: August 15, 2010, 16:26:50 pm »
Anybody?

limetree

  • Beginner
  • *
  • Posts: 1
Re: Displaying all products under sub-categories too
« Reply #37 on: August 17, 2010, 16:04:46 pm »
This is a serous messy thred... It's not easy to know WHAT and WHERE to put the code if you're using ex: JOOMLA 1.5.20 + Virtuemart 1.1.5...

I've tried a lot of combinations and I just different error like "Fatal error: Using $this when not in object context in ... administrator/components/com_virtuemart/classes/ps_product_category.php on line 1479"

How do with J 1.5.20 vm 1.1.4?

Thanks



klitoriks

  • Jr. Member
  • **
  • Posts: 53
Re: Displaying all products under sub-categories too
« Reply #38 on: August 18, 2010, 12:40:30 pm »
My shop is under Jommla 1.5.15 and VM 1.1.4

I thought that this hack will work with all sub cats, but it don't.

I need it to work with sub-sub categories. Maybe together we can do it? :)

IntraX

  • Jr. Member
  • **
  • Posts: 87
Re: Displaying all products under sub-categories too
« Reply #39 on: August 29, 2010, 02:07:57 am »
Yes, please an update for J1.5.20 / VM 1.1.5, Mr Creb!:) There is some things changed and it does not work like when it was still 1.1.3.

Until 1.1.3 it worked perfectly, but now its messed up and not working correctly anymore with 1.1.5.


supawat

  • Beginner
  • *
  • Posts: 1
Re: Displaying all products under sub-categories too
« Reply #40 on: September 07, 2010, 18:51:31 pm »
Thank you Creb. It working great with my Joomla 1.5.20 and VM 1.1.5
This is step by step for do it.
1. EDIT : /administrator/components/com_virtuemart/classes/ps_product_category.php
insert the source code from "Creb"(http://forum.virtuemart.net/index.php?topic=20837.15) between "function sort_alphabetically" and "// Check if there is an extended "
Please beware the "}". It might be make you confusing.
2. EDIT : /administrator/components/com_virtuemart/html/shop_browse_queries.php and follow as Creb's post.

That's it!


http://www.thanakim.com/update/ps_product_category.png
http://www.thanakim.com/update/shop_browse_queries.png

 

gcrombach

  • Beginner
  • *
  • Posts: 7
Re: Displaying all products under sub-categories too
« Reply #41 on: November 22, 2010, 13:51:30 pm »
So with this change of code all products under all sub-categories will show up in the listing. This works fine for me during testing.

I need some extra: I would need the sub-category, name, pic & descr. as well on top of every product listing.

so clicking on a cat the page would look like this:

Name category - pic -descr.
 sub-cat1 name - pic - descr.
  listing of products of sub-cat1
 sub-cat2 name - pic - descr.
  listing of products of sub-cat2
 sub-cat3 name - pic - descr.
  listing of products of sub-cat3

is this easy to adjust with the code listed as above ? ( done by Creb)

Thanks,

G Crombach

gcrombach@comsysco.nl

karan.gadhavi

  • Beginner
  • *
  • Posts: 2
Re: Displaying all products under sub-categories too
« Reply #42 on: January 11, 2011, 13:19:05 pm »
Hell Creb & gcrombach,

Its really useful information.  Can you please help me to sort out below issue. I need to show category page like below  how to do this ?

 - Category detail (Name, Image , Description )
    - category product
      - Sub category1 detail (name,image, desc)
       -  Sub category1 products (name, img, desc)
      - Sub category2 detail (name,image, desc)
       -  Sub category2 products (name, img, desc)

Thanks a lot in advance

Gcrombach,  let me know if you found solution of it.

Thanks

madhanponugumati

  • Beginner
  • *
  • Posts: 1
Re: Displaying all products under sub-categories too
« Reply #43 on: February 08, 2011, 14:52:25 pm »
Hell Creb & gcrombach,

I have gone through your posts. Its very useful. I need the Subcategories products list  to be displayed in the Product Detail Page.Can you plz plz help me out. Waiting for your reply

Product detail Page-> Subcategories products list


Thanks

AndreyUA

  • Beginner
  • *
  • Posts: 2
Re: Displaying all products under sub-categories too
« Reply #44 on: February 09, 2011, 00:20:05 am »
Hi everyone! Nice modification. I saw one problem - no filtering by manufacturer in the main category. This problem can somehow be solved?