In need to change themes based on customer group.

after some google I found a hook where I can made a change "layout_load_before". I am not sure this is effective solution or not. I mean here.

Does this will affect theme fallback system of magento2?

Does this effect to full page cache system of magento2?

All I need proper explanation of doing this.

Thanks in advance.


Safest way to change theme following class and method


public function loadChange($storeId, $date = null)

Dynamic design change should be (for example)

    'store_id' => 1,
    'design' => 3 // theme_id from theme table

NB: Don't modify core file. Override or Pluginize core class method.

  • Thanks for reply soon., as my question is not regarding to how to do it, it is related does that make issue with cache systme? – chudasamachirag Sep 7 '17 at 12:07
  • As I said first, It is the safest way :) . – Sohel Rana Sep 7 '17 at 12:53
  • i already know solution, all i don't know was that cache system of magento2 allow us to create multiple cache for single site or not, and it allows us some how. any why thanks once again. – chudasamachirag Sep 8 '17 at 12:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.