Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка в ajax


kuripka2222
 Share

Recommended Posts

Здравствуйте, помогите разобраться в чем ошибка
В консоле показывает ошибку 
jquery-3.5.1.min.js:2 GET index.php?route=product/product/quick_view&product_id=50 

send @ jquery-3.5.1.min.js:2
  ajax @ jquery-3.5.1.min.js:2
  S.fn.load @ jquery-3.5.1.min.js:2
  open_quick_view @ quick_view.js:33
  onclick @ tablet:1

 

в quick_view.js:33  находится: 

function open_quick_view(p_id) {
	$('.show_quick_view').load('index.php?route=product/product/quick_view&product_id='+p_id, function() {
			
		$(".quick_view .image-additional").mCustomScrollbar({
			axis:'x',
			advanced:{
				updateOnImageLoad: true,
				autoExpandHorizontalScroll:false
			},
			theme:'dark-3'
		});
 
		var a = $('.quick_view .image-additional2 img').length*88;
		var b = ($('.quick_view .image-additional2 img').length-1)*10;
		$('.quick_view .image-additional2').css('width', a+b);
			
		$('.quick_view .scroll').mCustomScrollbar({
			axis:'y',
			autoExpandHorizontalScroll:true,
			theme:"dark"
		});
			
		if ($('.quick_view .image-additional img').length < 5) {
			$('.quick_view .social').css('margin-top', '-2px')
		}
			
		$('.show_quick_view').popup('show');	
		
		$('.image-additional2 img').bind('click', function (){
			$('.quick_view .left .image img').attr('src', $(this).attr('data-thumb'));
		});
	});		
}

 

 

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.