Hello Odoo Community,
I am currently customizing my Odoo website and have successfully implemented a script to disable right-click on the shop page. However, I am facing an issue where right-click functionality is re-enabled when I navigate to a specific product page.
Here is the code snippet I used to disable right-click on the shop page:
xmlCopy code
This script is working perfectly on the shop page, but right-click functionality becomes enabled again when I go to an individual product page.
I want to disable right-click functionality across all pages, including individual product pages.
I do not want to use any paid apps for this. I want to implement this functionality across the entire website. I went to the website's HTML/CSS editor and opened the website layout, but I am unsure how and where to add this code.
Can someone guide me on how and where to add this code so that right-click is disabled across the entire website, including product pages?
Thank you for your assistance!
Ali Irtza