Product listings By Category instead of Brand

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #335950

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.1
-- PHP version -- : 7.5

Hi,

I would like for my products in this menu to be categorized by their category but they are for some reason being catagorized by the Brand, despite me changing the menu type from product listing to category listing (Which is what has worked for me in the past when I've had this issue).

I have been reading through other forum posts but have yet to find a solution.

I saw a post with this reply:
"You can create a new menu item of the type "HikaShop category listing" and then select "brand" in the "content type" setting of the menu item."

I however couldn't find this "Content type" setting, and was wondering if someone could point me in the right direction?

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

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #335953

I should probably say that the reason I want to make this change is so that I can have one product in multiple categories. Such as a sewing machine being both a sewing machine and a quilting machine (As multi purpose machines occur a lot in this industry)

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

  • Posts: 83402
  • Thank you received: 13496
  • MODERATOR
3 years 5 months ago #335954

Hi,

Mmm, I'm confused about your situation and what you're trying to do.
If I go on the URL you gave ( /domestic-machine-listings/bernina ), I do get a listing of products with at the top a listing of the categories, so that I can click on to see only the products of a particular category:
i.imgur.com/pfHB7HL.png
Now I can see that all the products and categories are for the brand "Bernina". Which is normal since I suppose that the "main category" of your "Bernina" menu item is the "Bernina" category. So if you access it, of course you'll only have products / categories of that main category.

If I understand correctly, you already have what you want with the main menu item "Domestic machines":
i.imgur.com/eRFII2a.png
There, you have a listing of all the products in the "domestic machines" category, and you can filter the products with the category listing at the top or the brand filter between the categories and the products.

So I suppose that what you're trying to do is that when you access the "Bermina" menu item, you see the same thing as if you were on the main menu item and then selected the "Bernina" brand in the filter.
If that is correct, then what you want to do is to change the type of your "Bernina" menu item. In it, select "external URL" and enter the URL of the address bar after you've selected the "Bernina" brand in the filter of the main menu item ( domestic-machine-listings?limitstart=0&filter_Brand_1=14 )

And for the sub menu items "bernina sewing machines", you could do the same with the URL domestic-machine-listings/category/24-sewing-machines?limitstart=0&filter_Brand_1=14
Note however that in that case, you'll loose the categories listing at the top.
If you don't want that, you would have to change the type of the main "domestic machines" menu item to "products listing" to not have the categories listing at the top, and instead configure a "HikaShop content module" to display a listing of these categories in the position of the template at the top of the main area. And then, you can select the "domestic machines" menu item in the module's assignement, and also in its "menu" setting under the "HikaShop options" tab.

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

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #335966

Hey Nicolas!

These are both fine options, and good to know for the future, however I think I may have explained myself poorly.

You are correct that the "Domestic machines" Menu is working as I want the rest of them to work, it is drawing them into categories based on the product "Category" field, where as the rest of the menus are only allowing them to be in One category, due to it organising them from the "Brand" field.



And as you can only have one it can only be in that one category in the menu, as you can see in the image above.

I'm just not sure why the categories in the "Domestic machines" menu are populated with the "categories" field from the products and the categories in the other sections are populated by The "Brand" field.

I assumed it would just be an option that I was missing somewhere.

A good way to explain the issue I guess is with an example.

In domestic machines I have the Pfaff Quilt Expression 720, and it is both the sewing machines and quilting machines category (As it is both of those)
However, In the Pfaff menu that would not be the case, as in the pfaff menu it only gathers the data from the brand field.

Which in this case is "Pfaff quilting Machines" and therefore only ends up in that one location, when it should show up in "Pfaff sewing machines" and "Pfaff Quilting Machines" at the same time.

Sorry for the confusion, It feels like I've typed category 1000 times.

Attachments:

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

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #335972

Hey!

I've been playing around some more this morning and I think I've discovered the issue.

If the Menu "Main category" Is a 'Brand' then it seems to be handled a lot differently than if the "Main category" is a 'Product Category'.

If you select a brand as the 'Main category' Then it will also use the 'Brand' Product Field to populate the categories.

I tried simply moving the brand category's root to the "product Category" folder (for simplicity (as I assumed they are all handled as categories on the back end) so that I wouldn't have to create brand new categories for every section) but this does not work, as for some reason it is unable to treat the menu as anything other than a product listing after that (no categories appear, even if the menu is set to a 'categories listing'). Not sure if that's a bug or not.
I tried setting it back and forth between the two. Re-building the menus, even creating a new menu, and none of that works. So I fear I may have to just create new categories for each menu and then Re-attribute all the products to these new categories. Which sounds like a hassle, even with mass actions.

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
3 years 5 months ago #335969

Hello,

Maybe your solution is on the Item Menu configuration side, see my screenshot :
Menus dropdown => Main Menu, then click on your Item Menu title.



Your element display in your listing, will be directly related to your displayed elements settings.
Hope this will help you to progress on your subject.

Regards

Last edit: 3 years 5 months ago by Philip.

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

  • Posts: 4816
  • Thank you received: 654
  • MODERATOR
3 years 5 months ago #335980

Hello,

There are a solution that explain Nicolas but we can imagine that maybe the idea isn't easy to understand just with some text...
We suggest you this, provide us some backend access in order to be able to make part of the configuration.

We think that in your case, this will be the most simple way to understand the idea develop by Nicolas (in this message ).

Note :
Provide use these element via our Contact us form :
- An Url link to your backend
- User backend references (with maximum Acl)
- In your contact us message an Url link to this forum subject (in order to keep the link between all these elements)

Awaiting your elements
Regards

Last edit: 3 years 5 months ago by Philip.

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

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #336251

Hi Philip,
I'm sorry for the late reply, I've actually been on holiday for the past week and a bit! Thank you for your replys!

I understand what Nickolas is suggesting, however they seem like band-aid solutions for this issue.

It feels like a work-around solution to a problem that shouldn't be happening right now. Before I give back-end access I just want to ensure that you understand what my issue is precisely. I'd rather not have to use my filters with page links.

I can fix the issue by re-creating the 'Brand' categories under "Product Category"s instead and moving the products over into those new categories with mass actions (I can't just re-parent the categories as this doesn't work).

The problem is in the way that categories that are originally set up under 'Brand' seem to be handled differently on menus. Even if I change the parent of the category to 'Product Category' It is still not handled the same as the other ones in that section or even new ones that I create.

I don't mind giving backend access if you want to look, but I'd rather no changes happen without me properly explaining the issue.

I'm sorry if I'm explaining it poorly! I've created this video to show you what I'm talking about (Hopefully more clearly than I can type it)

This message contains confidential information


Thank you

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

  • Posts: 83402
  • Thank you received: 13496
  • MODERATOR
3 years 5 months ago #336264

Hi,

Well, I understand what you mean and what you explain in the video.
And yes, that's normal. You're not supposed to moving a brand as a child of a category.
That's why it doesn't work properly when you do as while the parent is then a category, the type of the element is still "brand" not "category" and thus, when you do that, the element is in a transient state and the system doesn't know what to do with it, especially since they are linked to the products as brands, not as categories.
In that case, it's indeed better to recreate the brands as categories and add them to the products with mass actions so that you don't have to use the brands.
But well, you already know all this since you wrote it yourself.
I thought that your purpose with this topic was to avoid doing that by keeping the brands as is while still having the result you expected. And that's why I proposed the band-aid solution.
But I agree with you that it would be better to use categories for what you want to do.

The following user(s) said Thank You: jasmine247

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

  • Posts: 41
  • Thank you received: 4
3 years 5 months ago #336283

Hey!

Ahhh! I see, I just didn't know that it was an intended function as for the most part they act very similarly. I do appreciate the options you've given me and thank you for looking at it for me! I just thought I was explaining myself poorly is all, as its hard to talk about without typing category many times, haha!

I'll probably do the latter and re-create the categories.

Thank you again for looking at this for me and I'm sorry for the drawn out explanations.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.084 seconds
Powered by Kunena Forum