QUESTION:


I got an error on directing function of your module on my Magento site 2.2.6.

For example, on a category with product order following: A, B, C, D.

When I start from item A and hit the next button, it doesn't redirect to product B following order as showing on the category listing.


ANSWER:


To fix this error on M2.2.6, please edit file app/code/Bss/PreviousNextProductCustom/Plugin/Toolbar.php as below:


Or download the attached file below and overwrite the current file on your site.


If you have any other question or concern, please feel free to contact us. We'd be happy to support!