This question has been flagged
3 Replies
2556 Views

Hello,


How do we replace/remove the price on recently viewed products snippet.

See screenshot from runbot: https://ibb.co/G22XR6N


It seems to be generated from java so can not find corresponding view to edit?

Avatar
Discard
Best Answer

Hi, 

You can achieve this by editing the code. The template rendered when adding the recently viewed products snippet is in website_sale -> static -> src -> xml -> website_sale_recently_viewed.xml (Odoo 14).

In that file, you can see a line:

<div class="d-block font-weight-bold" t-raw="product.price"/>

This is the code that adds price to the products in the snippet. You just have to remove it.

Regards

Avatar
Discard
Author

Thanks, we did eventually find that ourselves and modified it by an extended view with xpath in exactly the same manner.
Still your solution is correct.

Best Answer

I have the same question, didn't find the answer yet...

Avatar
Discard
Best Answer

Hi, the same for me, do you find a way ??

THX


Avatar
Discard