Magento2: Magento v2.1.2 - Choosing a child theme for product page

Created on 30 Jan 2017  路  7Comments  路  Source: magento/magento2

The Magento only pulls through the styles from the child theme, and not the layouts. The XML files are pulled from the parent theme wich is wrong.

Preconditions

  1. Install Magento 2.1.2 , PHP 5.6.29, MySQL 5.6

Steps to reproduce

  1. Trying to setup a child theme specifically for some products. However, this doesn't contribute. Magento does not pull layout from the "child theme".
  2. See the theme catalog structure:
    Master_theme
    -- theme
    -- Magento_Catalog
    -- layout
    -- catalog_product_view.xml
    Child_theme
    -- theme
    -- Magento_Catalog
    -- layout
    -- catalog_product_view.xml

Magento pulls the "catalog_product_view.xml" from the parent theme instead of child.
That is the problem!

Expected result

  1. Magento pulls the "catalog_product_view.xml" from the child theme.

Actual result

  1. admin panel --> product edit --> select design tab --> new theme --> select "child theme"
    http://dl3.joxi.net/drive/2017/01/30/0019/0670/1295006/06/d588e67506.jpg
    I chose the theme needed and save. But it does not help pulling layouts.

Additional information

Exactly the same bug was described here - http://magento.stackexchange.com/questions/145687/magento-2-v2-1-2-choosing-separate-theme-for-product-page
And the solution was not found.

Frontend Fixed in 2.3.x Clear Description Confirmed Format is valid Ready for Work Reproduced on 2.1.x Reproduced on 2.2.x Reproduced on 2.3.x bug report

Most helpful comment

Hi, dived in into this issue this week,
Here is quick patch: https://gist.github.com/kirmorozov/38b26b88e959cb5487b0f722090749e1

All 7 comments

The same bug is in the Magento 2.1.3.
Updating up to the latest release did not help.

Hello,
Magento
Is there any news on the bug described above?
Thank you!

@ChevCheusov, thank you for your report.
We've created internal ticket(s) MAGETWO-81795 to track progress on the issue.

Is there any update on this one?

Hello! I have the same bug in Magento 2.2, it is still not fixed?

Hi, dived in into this issue this week,
Here is quick patch: https://gist.github.com/kirmorozov/38b26b88e959cb5487b0f722090749e1

Hi @ChevCheusov. Thank you for your report.
The issue has been fixed in magento/magento2#19124 by @drew7721 in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

Was this page helpful?
0 / 5 - 0 ratings