How to Clear recently viewed items (frontend user function) - Magento -


There is currently a link button in the Magento cart that clears the cart of its contents.

In a similar manner, I should have a link button in the "Recently Viewed" panel, which clears the list of the user's recently viewed products. I'm doubting the need to get the user cleaned by cash in any way - I'm not sure how Magento records and stores visited the products.

Do anyone know how to do this in Magento? If someone has any suggestions on how I can do this, I would be grateful.

(Note that this is not the question of clearing the overall cache in Magento admin)

Recently viewed product data is stored in the report_viewed_product_index table.

You can delete these records based on customer_id / visitor_id

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -