be steven
be steven

Reputation: 11

Magento 2 Cannot extend layout in product page of child theme

I've created a 'parent' theme that extends from luma & 2 child themes (child-a & child-b) extends from 'parent' theme

In 'child-b' i've created:

After that i created category B and set it's theme to 'child-b'

Expected result

the code in default.xml of 'child-b' effect on category B & products on category B

Actual result

the code in default.xml of 'child-b' effect ONLY on category B, NOT products on it

I've tried to create other layout file such as catalog_product_view.xml ... but still not work.

Please help me,

Best regard!

Upvotes: 0

Views: 764

Answers (2)

Ganesh G Nath
Ganesh G Nath

Reputation: 246

If you assign a theme child theme -b to the category B then its only apply for the Category or product list page its not effect the product details page.

If you want to assign custom design for custom products the you need to assign in Admin product edit Go to

1)_admin->catalog->[select a product] ->Schedule Design Update -> New theme-> [select a theme and save the product]

Clear cache and reload front of that product

Upvotes: 0

diazwatson
diazwatson

Reputation: 141

It seems to be a core bug. The same one described in here

Upvotes: 0

Related Questions