[Skip to main content](#vessel-content)

#   problem of inheritance in the product views

##

- **[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")**
- [![mducerf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6724-mducerf "View mducerf's Profile") Topic Author
- [ Offline](/forum/user/6724-mducerf)

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 7 months ago -  14 years 7 months ago [\#44164](#44164) by [mducerf](/forum/user/6724-mducerf "View mducerf's Profile")  *[problem of inheritance in the product views](/forum/4-how-to/44164-problem-of-inheritance-in-the-product-views#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&#95;default&#95;category1, show&#95;default&#95;category2 and show&#95;default&#95;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 &quot;Hérité&quot; (inherited in english). So I want put this : Category 1 ==&gt; product layout = show&#95;default&#95;category1 Category 2 ==&gt; product layout = show&#95;default&#95;category2 Category 3 ==&gt; product layout = show&#95;default&#95;category3  until then is OK!  and I want put this : subcategory 1 ==&gt; product layout = inherited subcategory 2 ==&gt; product layout = inherited ... and product 1 ==&gt; product layout = inherited product 2 ==&gt; 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&#95;default&#95;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! ;-)")* was created by *[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")*

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
&#124;---Category 1
&#124; &#124;---subcatecory 11
&#124; &#124; &#124;---Product 1
&#124; &#124; &#124;---Product 2
&#124; &#124; &#124;---Product 3
&#124; &#124;---subcategory 12
&#124; &#124;---subcategory 13
&#124;---Category 2
&#124; &#124;---subcatecory 21
&#124; &#124; &#124;---Product 4
&#124; &#124; &#124;---Product 5
&#124; &#124; &#124;---Product 6
&#124; &#124;---subcategory 22
&#124; &#124;---subcategory 23
&#124;---Category 3
&#124; &#124;---subcatecory 21
&#124; &#124; &#124;---Product 7
&#124; &#124; &#124;---Product 8
&#124; &#124; &#124;---Product 9
&#124; &#124;---subcategory 22
&#124; &#124;---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 ==&gt; product layout = show_default_category1
Category 2 ==&gt; product layout = show_default_category2
Category 3 ==&gt; product layout = show_default_category3

until then is OK!

and I want put this :
subcategory 1 ==&gt; product layout = inherited
subcategory 2 ==&gt; product layout = inherited
...
and
product 1 ==&gt; product layout = inherited
product 2 ==&gt; 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! ![;-)](/media/kunena/emoticons/24.png ";-)")

Last edit: 14 years 7 months ago by [mducerf](/forum/user/6724-mducerf "View mducerf's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MTY0LXByb2JsZW0tb2YtaW5oZXJpdGFuY2UtaW4tdGhlLXByb2R1Y3Qtdmlld3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")**
- [![mducerf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6724-mducerf "View mducerf's Profile") Topic Author
- [ Offline](/forum/user/6724-mducerf)

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 7 months ago [\#44268](#44268) by [mducerf](/forum/user/6724-mducerf "View mducerf's Profile")  Replied by *[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")* on topic *[Re: problem of inheritance in the product views](/forum/4-how-to/44164-problem-of-inheritance-in-the-product-views#44268 "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&#95;default&#95;category1, show&#95;default&#95;category2 and show&#95;default&#95;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 &quot;Hérité&quot; (inherited in english). So I want put this : Category 1 ==&gt; product layout = show&#95;default&#95;category1 Category 2 ==&gt; product layout = show&#95;default&#95;category2 Category 3 ==&gt; product layout = show&#95;default&#95;category3  until then is OK!  and I want put this : subcategory 1 ==&gt; product layout = inherited subcategory 2 ==&gt; product layout = inherited ... and product 1 ==&gt; product layout = inherited product 2 ==&gt; 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&#95;default&#95;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! ;-)")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MTY0LXByb2JsZW0tb2YtaW5oZXJpdGFuY2UtaW4tdGhlLXByb2R1Y3Qtdmlld3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 7 months ago [\#44390](#44390) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: problem of inheritance in the product views](/forum/4-how-to/44164-problem-of-inheritance-in-the-product-views#44390 "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&#95;default&#95;category1, show&#95;default&#95;category2 and show&#95;default&#95;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 &quot;Hérité&quot; (inherited in english). So I want put this : Category 1 ==&gt; product layout = show&#95;default&#95;category1 Category 2 ==&gt; product layout = show&#95;default&#95;category2 Category 3 ==&gt; product layout = show&#95;default&#95;category3  until then is OK!  and I want put this : subcategory 1 ==&gt; product layout = inherited subcategory 2 ==&gt; product layout = inherited ... and product 1 ==&gt; product layout = inherited product 2 ==&gt; 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&#95;default&#95;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! ;-)")*

Hi,

The problem is this:
subcategory 1 ==&gt; product layout = inherited
subcategory 2 ==&gt; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MTY0LXByb2JsZW0tb2YtaW5oZXJpdGFuY2UtaW4tdGhlLXByb2R1Y3Qtdmlld3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")**
- [![mducerf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6724-mducerf "View mducerf's Profile") Topic Author
- [ Offline](/forum/user/6724-mducerf)

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 7 months ago [\#44685](#44685) by [mducerf](/forum/user/6724-mducerf "View mducerf's Profile")  Replied by *[mducerf](/forum/user/6724-mducerf "View mducerf's Profile")* on topic *[Re: problem of inheritance in the product views](/forum/4-how-to/44164-problem-of-inheritance-in-the-product-views#44685 "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&#95;default&#95;category1, show&#95;default&#95;category2 and show&#95;default&#95;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 &quot;Hérité&quot; (inherited in english). So I want put this : Category 1 ==&gt; product layout = show&#95;default&#95;category1 Category 2 ==&gt; product layout = show&#95;default&#95;category2 Category 3 ==&gt; product layout = show&#95;default&#95;category3  until then is OK!  and I want put this : subcategory 1 ==&gt; product layout = inherited subcategory 2 ==&gt; product layout = inherited ... and product 1 ==&gt; product layout = inherited product 2 ==&gt; 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&#95;default&#95;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! ;-)")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MTY0LXByb2JsZW0tb2YtaW5oZXJpdGFuY2UtaW4tdGhlLXByb2R1Y3Qtdmlld3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 7 months ago [\#44867](#44867) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: problem of inheritance in the product views](/forum/4-how-to/44164-problem-of-inheritance-in-the-product-views#44867 "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&#95;default&#95;category1, show&#95;default&#95;category2 and show&#95;default&#95;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 &quot;Hérité&quot; (inherited in english). So I want put this : Category 1 ==&gt; product layout = show&#95;default&#95;category1 Category 2 ==&gt; product layout = show&#95;default&#95;category2 Category 3 ==&gt; product layout = show&#95;default&#95;category3  until then is OK!  and I want put this : subcategory 1 ==&gt; product layout = inherited subcategory 2 ==&gt; product layout = inherited ... and product 1 ==&gt; product layout = inherited product 2 ==&gt; 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&#95;default&#95;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! ;-)")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MTY0LXByb2JsZW0tb2YtaW5oZXJpdGFuY2UtaW4tdGhlLXByb2R1Y3Qtdmlld3M/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
