Code: Select all
$(document).ready(function(){
document.oncontextmenu = function() {return false;};
$(document).mousedown(function(e){
if( e.button == 2 ) {
return false;
}
return true;
});
});
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
It's so, at best, not very Customer-friedly acting, in my opinion!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com
http://www.opencart.com/index.php?route ... n_id=21709
http://www.opencart.com/index.php?route ... n_id=11643
test 'em, and find out, of they work!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
In your template catalog/view/theme/YOURTHEME/template/common/header.tpl
Find:
Code: Select all
<body class="<?php echo $class; ?>">
Code: Select all
<body oncontextmenu="return false" class="<?php echo $class; ?>">
https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.
Users browsing this forum: Bing [Bot], dparakhiya and 339 guests