Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank you :), The main problem is when there are no viewed_products i would like to display in template a message, maybe i could do that some other way?
I have edited in my post what i have changed or added in each file. Sadly i only have it local. And also if i was unclear about debug i turned Template Path Hints and Add Block Names to Hints. And as i said with them if i click on a random product i see that product in product_viewed and i see my overwritten class. but if i delete history and reload page i cant see the else statement from template (but if i do this directly in core it works). Somehow if it is empty it wont overwrite
I have it like that, thanks for the help.Perhaps i should have wrote everything i will edit it. It works when user clicked on a product and then i can see it beeing overwritten, but my problem is when user didnt click on any product it doesnt show nothing only when i put it in Core