Filter module on single product page

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #152367

I searched to find resolution for this problem...I found two topics but there is no solution for my problem.
On one topic you said to change code in mod_hikashop_filter.php .

After I do that, filter module dissapear from single product page, but I have mess with right column on page. Right column with other moduls come closer to product information. Page does not look good.

It is very stupid to have filter on single product page, I need to remove it from that page.

On Menu assigment I set module shows on menu associated to hikashop product category.

Thank you

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

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #152399

Hello,
If you don't want you filter module to show through your products page, the solution will probably be to control the display of your filter module regarding the menu where you are by using the "Module assignment" option through your Joomla filter module configuration page.
Also if you don't want your module to display through some product page using the Advanced module manager will probably do the job.

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

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #152960

Thank you for your support.
I done what you said and everything is fine with filter except ordering.

I want filter shows all categories in alphabetical order. How can I do that ?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 7 months ago #152963

Hi,

The categories are ordered based on the ordering that you configured for them in the "order" column of your categories listing of the backend. So simply make sure that they are in the correct order and they will display in the correct order in your filter.

Changing the system to automatically order the categories based on the category name is possible but it requires a hack of the code and you'll loose it when you update HikaShop so I don't recommend it. It's possible by changing the line:

$query='SELECT * FROM '.hikashop_table('category').' AS a '.$left.' WHERE category_parent_id='.$parentCat.' '.$optionElement.' ORDER BY a.category_ordering ASC';
to:
$query='SELECT * FROM '.hikashop_table('category').' AS a '.$left.' WHERE category_parent_id='.$parentCat.' '.$optionElement.' ORDER BY a.category_name ASC';
in the file administrator/components/com_hikashop/classes/filter.php

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

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #153066

I did not solve problem...I will try to explain....

I created new category in HikaShop (printers), this category is not published in front. In that category I created many subcategories (printer models). In every subcategory I put one product (toner).

Than I created filter applied on category....but in filter I can see all subcategories like in backand order. I want to see alphabetical order in frontend. I need to see printer models in alphabetical order.

I dont have any menu item associated to this HikaShop category.

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

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #153109

I am sorry, this is not place where I want to put this question.
I asked about this problem in this topic:

www.hikashop.com/support/forum/product-c...and-more.html#150580

I got answer from support, but I need more explanation about order in filter.
My question relates to:

3. You would have to not use the related products feature for that but instead to have an unpublished category with one sub category per product and then add these product categories as second/third categories to your products and you would create a category filter displaying all the categories of that unpbulished category in its choices and when selecting one of them, it would display the products of that category.

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

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #153155

Huh... problems with filters....
I am trying to resolve problem by myself, but without success...

Please read this carefully, I will try to explain all my problems....

Under product category I have 6 categories ( color printers, b&w printers....), four of them has few subcategories (duty cycle 3000 pages, duty cycle 5000 pages....)
When I create Menu item for Hikashop product listing and Sub elements filter set to Grouped by category, on page I can see product just from two categories without subcategories....

Also, when I create module category filter pointed to product categories when I choose category without subcategories I will see products, but if I choose category that has subcategories nothing appears. How can I include the second level subcategories in filter???

Also, can I make blank page just with filters ? After I choose what I want in filters results appear. On HikaShop by default I will have all products and than with filter I can find what I want. I am trying to make page for device drivers, and it is not best solution to have all products on page, and then after I choose product category, then product, then OS I got driver I want....like on most support pages for driver downloading (asus, lenovo, msi....)

PLease help

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
10 years 7 months ago #153166

Hi,

1. Yes, the "Grouped by category" system only takes the products directly in the main categories below the "parent category" of your menu. That's normal. I would recommend to create two different category trees below your "product categories" category, one for the type of printer and one for the number of pages. That way, when you don't have several levels of categories for the products listing.

2. Same as 1. You would actually have two filters in that case, one for the printer type, one for the pages.

3. You can have it start on a blank page. Create a new menu item "search" of the type joomla article page with an empty joomla article selected. Make your hikaShop filter module display on that page and in the module options, make sure that you set the id of your products listing menu item in the "menu" option.
Then, when you access to that search menu item, you'll just see the filters module. and when you select some filters in it, it will redirect to the products listing menu item with the products being filtered out.

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

  • Posts: 15
  • Thank you received: 0
10 years 7 months ago #153241

Hi Nicoloas,

Thank you for your support.
I have more questions...
4. In one category in Hikashop, I have about 50 subcategories, and for one page I am using category filter. In drop down in this filter I want to show alphabetical order of subcategories. Now is order like on backend. Newest added subcategory is on bottom. How can I change order ?

5. Is there filter in which I can list all products in one category. I see category list in filter option, but there is no option for all products in one category :(

6. When I create custom filed for product, Can I place that filed in frontend somewhere else ? All other custom fields are near product picture, but one of them I want to move from that group.

Last edit: 10 years 7 months ago by gandalf81.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #153273

Hello,

1. The solution will probably be to use the "Ordering field" option of your category listing content menu/module by editing it through "Hikashop->Display->Content menus/modules".

2. You can use category filters, but can you give me more information about what your really need to do ?

3. The product custom fields are appearing through the "Specifications" tab so you won't be able to what you want without using some customization code through the "show_default" file of the "product" view of your front-end template through the page "Hikashop->Display->Views".

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

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #154928

About subcategory order in filter....I think that you dont understand me....

Here is printscreen. I choose category filter to list all subcategories in category I chosen. But I want change to alphabetical order.

Attachments:

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

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #155070

I investigated, and find in administrator/components/com_hikashop/classes/filter.php:

$database = JFactory::getDBO();
$query='SELECT * FROM '.hikashop_table('category').' AS a '.$left.' WHERE category_parent_id='.$parentCat.' '.$optionElement.' ORDER BY a.category_order ASC';
$database->setQuery($query);
$categories_name=$database->loadObjectList('category_id');
return $categories_name;

Should I change this parameter to solve this problem ? I tried to put ID of my parent category and change order to NAME, but nothing happens....but I think that I am close to solve problem.

Can you give me advice ?

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

  • Posts: 15
  • Thank you received: 0
10 years 6 months ago #155076

I found solution. Just I don need to put ID category.

Finally....

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

Time to create page: 0.091 seconds
Powered by Kunena Forum