Hello everyone!
I have created a custom plugin that hooks into the way the product listing is done, offering the possibility to have two listing variants (cards & list). I’m doing so by adding a parameter to the url called listingStyle which has a specific value (list or cards). This all worked out great so far.
The problem comes when I change the page on the listing. Then this listingStyle value in the twig is lost.
I’m thinking I should be passing this variable to the Pagination or Listing JS plugin (which I’d override). The problem is that I can’t find a way how to do this. This is where I’m stuck and out of ideas.
Did anyone of you came across such a problem? Any ideas would be much appreciated. Thanks in advance.