Jump to content

Désactiver jqZoom ET FancyBox


Recommended Posts

Dans le fichier product.js dans /themes/votretheme/js/product.js :

-Version 1.5 -> ligne 587

Ancien code : Commenter les lignes suivantes

	$('.thickbox').fancybox({
		'hideOnContentClick': true,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});

Nouveau code :

        /*$('.thickbox').fancybox({
		'hideOnContentClick': true,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});*/

-Version 1.6 -> ligne 170

Ancien code : 

if (typeof(contentOnly) != 'undefined' && !contentOnly)
	{
		if (!!$.prototype.fancybox)
			$('li:visible .fancybox, .fancybox.shown').fancybox({
				'hideOnContentClick': true,
				'openEffect'	: 'elastic',
				'closeEffect'	: 'elastic'
			});
	}
	else if (typeof ajax_allowed != 'undefined' && !ajax_allowed)
		$('#buy_block').attr('target', '_top');

Nouveau code : 

	if (typeof(contentOnly) != 'undefined' && !contentOnly)
	{
		/*if (!!$.prototype.fancybox)
			$('li:visible .fancybox, .fancybox.shown').fancybox({
				'hideOnContentClick': true,
				'openEffect'	: 'elastic',
				'closeEffect'	: 'elastic'
			});*/
		if (typeof ajax_allowed != 'undefined' && !ajax_allowed)
		$('#buy_block').attr('target', '_top');
	}

Utilisez ensuite le "css" pour cacher le button "Agrandir l'image" .

 

Good luck

xlynx

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...