Displaying products by filter

  • Posts: 179
  • Thank you received: 17
13 years 7 months ago #13368

Hi There

I have 3 categories of products. Commercial, Charter and Leisure.

I have created Product categories for the type of product. ie my categories look like below:

-Commercial
-Charter
-Leisure
-Product type
--- Lifejacket


Adult Lifejacket
Product1
Product2
Child lifejacket
Product3
Product4

From the above you can see that my products are all generic when I create them. (ie root category is just 'Product type').

I then decide what customer type the product would interest. Some lifejacket would be suitable only for Commercial, some for Leisure, some suit both commercial and leisure etc. So I can assign the category(ies) that the product also belongs to. So now it is a 'Product type' of 'Commercial'. Very cool.

My question is:
I can display all my products with a simple module on screen, looks good, but this is ALL products. I would like to simply say display all 'Product type' where 'Commercial' is true and so the cateogry listing displayed just picks only the commercial. Same for Leisure and Charter of course.

I presume it is some query somewhere, but not sure where :)

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13409

Indeed. You would have to modify the query in components/com_hikashop/views/product/view.html.php to add that filter. It's a big process with a lot of conditions and different parameters based on the different options in the config of the menu/module so it put the pieces together on the line:
$query = ' FROM '.$b.$a.$on.' WHERE '.implode(' AND ',$filters).$order;

Please Log in or Create an account to join the conversation.

  • Posts: 179
  • Thank you received: 17
13 years 7 months ago #13422

Ahh thats a shame, seems strange having a fantastic multiple category system yet not being able to filter out what is needed from them :(

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13467

We will work on a filtering system in the future. It's already in the todo list.
Rome wasn't built in one day :)

Please Log in or Create an account to join the conversation.

  • Posts: 179
  • Thank you received: 17
13 years 7 months ago #13499

Absolutely ! The product is fantastic. It only has two problems for me, which is quite amazing considering all the other baskets I have used have had tons of bugs and issues, keep up the good work as this is one shopping system which I will definately be using once I figure out a way to get around a few issues! (not the baskets thoughts, just me pushing my luck as always ;))

Please Log in or Create an account to join the conversation.

  • Posts: 179
  • Thank you received: 17
13 years 7 months ago #13503

I just had a thought of a temporary way around my issue.

Is the license domain wide ? If so I could have two sites that look exactly the same but with one small difference. One shows prices( leisure ), the other doesnt (Commrcial). Its not perfect but it would do the job as when a customer selects an option it could load up the correct site (ie commercial.mydomain.com or leisure.mydomain.com). Unti lthe filtering system is developed :)

Am I correct in my understanding of the license in this case ?

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13506

Yes. If you have a problem with the licenses in your case, just use the contact form and specify the URLs and we will modify them ASAP so that it works.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum