0

Are there any events or hooks available to detect the shop change form frontend (shop change dropdown in the header.)?

How we can check the customer changed the shop in frond-end? (I what to do some function after the shop change in my plugin).

Abin John
  • 103
  • 10

1 Answers1

0

You can detect the change manually by checking the previous url to the current url with PHP.

Here is an entry on how to get the previous URL: How to get the previous url using PHP

You can hook any Shopware Event which is always fired in Shopware. You could use the Event "Enlight_Controller_Action_PostDispatch_Frontend" and extend it.

Greetings Patrick