I have a shop setup using J2Store, which sets up products as articles. On the main layout I use the Category Blog layout.
I have customised the addtocart.php file to add a View Product Information button. This button takes the user to the article page.
The issue is that on the article page the same addtocart.php file is used. So I would like a way to only show the button if I am on the category blog layout. Is there a way I can determine what page/layout I am on wether to show the button or not?