problem of inheritance in the product views

  • Posts: 7
  • Thank you received: 0
12 years 10 months ago #44164

Hello,

I create a website for a customer and I using Hikashop.

I have a problem for use product inherited views.
I have this tree for category and product :
ROOT
|---Category 1
| |---subcatecory 11
| | |---Product 1
| | |---Product 2
| | |---Product 3
| |---subcategory 12
| |---subcategory 13
|---Category 2
| |---subcatecory 21
| | |---Product 4
| | |---Product 5
| | |---Product 6
| |---subcategory 22
| |---subcategory 23
|---Category 3
| |---subcatecory 21
| | |---Product 7
| | |---Product 8
| | |---Product 9
| |---subcategory 22
| |---subcategory 23

I want that product 1, 2 and 3 are a different layout of product 4, 5, and 6 and product 7, 8 and 9.
So I create Three Layout show_default_category1, show_default_category2 and show_default_category3.
For simplify the administration for my customer I want attribute my layout at the category 1, 2 and 3 and use the product inherited views.
I have not the exactly term in english because I use Hikashop in french, but in category I have a list with my different product layout and "Hérité" (inherited in english).
So I want put this :
Category 1 ==> product layout = show_default_category1
Category 2 ==> product layout = show_default_category2
Category 3 ==> product layout = show_default_category3

until then is OK!

and I want put this :
subcategory 1 ==> product layout = inherited
subcategory 2 ==> product layout = inherited
...
and
product 1 ==> product layout = inherited
product 2 ==> product layout = inherited
...

And there are a problem! For my First category and her subcategory and product it works. But for other category and her subcategory and product it isn't work!
When I display the name of the layout I see that it's always show_default_category1 which is used.

We can not use inherit with several layout?

I precise that if I put the good layout on the product page and not inherited it's work. But it's little complicate for my costumer so I want configure me the category and this way they don't have to take care after...

thank you for some help and excuse for my english, it's not very good! but I'm french! ;-)

Last edit: 12 years 10 months ago by mducerf.

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

  • Posts: 7
  • Thank you received: 0
12 years 10 months ago #44268

Please... :huh: nobody knows the solution???? :dry:

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 10 months ago #44390

Hi,

The problem is this:
subcategory 1 ==> product layout = inherited
subcategory 2 ==> product layout = inherited

You should configure the layout in each category. Then it will work.
Sub categories do not inherit from their parent categories layout but from the configuration's layout.

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

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #44685

Hi,

ok thank you. I understood.
And so, I've simplify the select list in product form.

Possibly, is it possible, since a product, go back to the root categories? Which allow myself to know the parent category and thus force the layout.

Thank you for your help.

--
mducerf

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #44867

You can add several categories to products, so yes, you could just create one unpublished category per layout and use it as second category in your products in order to determine the layout to be used for the product.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum