Calling Developers!
We are reenergizing our code contribution process! Learn More

ProductGroupWidget error when inheritance project level

Options
hau.nguyen
hau.nguyen Spryker job Posts: 23 🧑🏻‍🚀 - Cadet

hi team,

We have followed the document:


When I inherit from core's default, everything works fine. But when inheriting at project level. It gives me a "FAIL WHALE" error.
I don't know the reason why
You can view the record to understand clearly:
https://www.loom.com/share/49e5f684e69a47f2a51bb7062f7c3f17?sid=31376bda-022a-4a1d-b854-b4adeb535453

Thanks

Hau Nguyen

Tagged:

Answers

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 73 🏛 - Council (mod)
    Options

    Hi,

    We have to verify the instruction in the docs, as multiple inheritance is not implemented at twig template level.

    The file in your green theme would be loaded and that works but you have to do one of the followings:

    1. Extend from the Core
    2. Copy and paste from project level (default theme) and modify what you need
    3. Create a new component out of the box

    If you extend the same molecule from a molecule with the same name, at project level, it goes into recursion and that's why you see the failed whale.