Help with Product Layout in Category settings

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #116602

Hi,

Hopefully someone can shed a little light on an issue I'm having. I'm looking to have some products on a store I run to be in multiple categories, but have differing layouts depending on the category. Is this possible? To clarify I need some products to be displayed in both categories.

The specific issue is when I set the product layout for eg. the Hire section, it effects how the product is being displayed in the Sales section, and vice versa. Is this the normal behaviour for this setting or am I doing something wrong? The layout which gets used seems to be from the latest saved category and overrides the other categories product layout settings. I have tried a few variations or settings and seem to get the same results including:

Sales has 'inherit' setting, Hire has custom layout setting.
Sales has specific setting which is my default style, Hire has custom layout setting.

Thanks in advance for any help on this.

Regards.

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #116613

Hi there,

i think you found the right option with the layout setting of your module.
However, the layout should be different so i guess you're doing something wrong.
What's the layout you have set in your main configuration? The layout of your Hire category shouldn't change it so maybe there is something here (in one of our version there was an issue with it).

So take a look in System>configuration>Display>Layout on product page and see what's the value here. Make sure it's not inherit.
You can also try to update to our last version (2.2.0) in order to enjoy new features as well as some bug fix which might solve your issue :).

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #116739

Hi Eliot,

Thanks for the quick reply. I have checked all the settings and they seem to be as they should be, but upon investigating I discovered something else which makes this even more confusing.
But first, my settings read:

Configuration Product Layout: show_sales.php
Sales category Product Layout: show_sales.php / also tried Inherit
Hire category Product Layout: show_hire.php

Right now the Hire style seems to be overriding the Sales style everywhere for the products I'm working with, all except for one of them, which has the Sales style overriding the Hire style, but that seems to make even less sense.

I also applied the new update but it did not fix this issue. I am going to test this out with a fresh website/install and see if there is something wrong with this current site/install.

edit: I have tested on a blank server and still seem to be having the same issue. I can set up access for you if thats any help however.

Last edit: 11 years 4 months ago by spotstv. Reason: More information

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116785

Hi,

Note that the layout page option of categories only apply to products directly in the category. It won't work for products in the sub category of the category. Some maybe that could explain some of the strange behavior you see.

If that information doesn't help, then yes, please provide the necessary access and information so that we can see the issue on your test server and check the settings in the backend.

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #116919

I figured as much, right now they are both in the root however.

Heres the needed information, I presume this is displayed correctly:

Essentially the difference between the two layouts is that Sales has the price info, the Hire layout does not.

Last edit: 11 years 4 months ago by spotstv. Reason: Removed hidden access password

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #116935

I just took a look at your website and it seems your menu are empty (even after login).
Could you please display few products so we can observe the different layout?

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #116939

Ah, my mistake, had moved something around.

Should be working now.

Thanks

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #117681

Just a heads up but this issue is still outstanding, I need to get this working as the deadline is approaching shortly. I there was any confusion over the previous post the 'should be working' was referencing the test products I had set up to test with.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #117879

Hi,

There was indeed a misunderstanding on our end as Eliot thought that it was now ok.

I've checked your website with the access your provided but I didn't find any issue.
You have two products.
Their layout is set to "inherit".
Both products are both under both the Hire and the Sales categories.
The Hire category layout is set to "show_hire"
The Sales category layout is set to "inherit"
The configuration layout is set to "show_sale"

Both products pages are displayed with the hire layout since they inherit it from the Hire category.
In case several direct categories of a products have a layout set, the system takes the layout of the first one for the display of the product page but it has no incidence here.

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #118011

Ah, sorry for the misunderstanding, I didn't communicate myself properly.

Thanks for taking a look Nicolas.

I see. So even if I set Sales to be "show_sale" instead of "inherit" the products within Sales will still inherit "show_hire" because they are within that category too?

What I'm essentially looking for is to have a selection of products to appear in the Hire category that are also in Sales, but in Hire I do not want the same layout that displays the price etc.

Edit:
Just as a reference, this is what I have right now.



and this is what I'm aiming for

Last edit: 11 years 4 months ago by spotstv. Reason: Added information

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #118074

That's not a problem. You can do that by:
- set the configuration layout option to "show_sales"
- set the hire layout option to "show_hire"

That way:
if a product is only in hire, it will use the show_hire layout.
if a product is only in sales, it will use the show_sales layout from the configuration.
if a product is in both categories it will use the show_hire layout as the system will get it from the hire category.
if a product is in neither categories, it will use the show_sales layout from the configuration.

Basically, it's just a matter of setting up the layouts as you need them.

The following user(s) said Thank You: spotstv

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #118082

Ah, that makes sense. I think I was slightly confused and coming at this from the wrong angle :pinch:

Thanks very much for your help Nicolas :)

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

  • Posts: 75
  • Thank you received: 1
11 years 4 months ago #118684

Hi,

I understand if a product is in one category or another the layouts selected for that category will apply.

So, is there a way to have a product in both categories BUT with different layouts for Sales and Hire to give two different views of the same product depending which category we are viewing it from?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #118741

Hi,

That's not possible with the options available. That would require that you change yourself the selected layout in the "show" file of the "product" view via the menu Display>Views based on the category you're coming from and that would require to turn off the simplified breadcrumb option of the configuration of HikaShop to get the category you're coming from in the category_pathway parameter of the URLs.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum