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

Быстрый переход в корзину или "Клик на корзину -> переход к оформлению заказа"


Recommended Posts

Здравствуйте, в одном из шаблонов решил сгделать переход к оформлению заказа путем нажатия на корзину в шапке сайи в 1 клик. поискал на форуме похожие темы, нашел https://opencart-forum.ru/topic/17982-klik-na-korzinu-perekhod-k-oformleniiu-zakaza-re/   сгделал как им написано, гдействительно пошла переадресация прямо в оформление, но есть одно НО в момент нажатия на корзину на пару секунд высвеливается окошко со синдартными кнопками просмотра и оформления, т.е. этот проэтосс переадресации видно, потом все ОК, попадаю куда надо. Дак вот вопрос, как избежать вот этого визуально отображения перехода?

Спасипотому что.  

Link to comment
Share on other sites


 

Вы не правильно меня поняли, не переход в корзину после нажатия кнопки купить(оформить заказ), а именно при нажатии на корзину в шапке сайи сразу перейти к оформлению заказа, без всплывающих кнопок "предварительного просмотра и оформить заказ" т.е. тыкнул на корзину -> забил реквезиты и нажал кнопку отправки заказа.

Link to comment
Share on other sites


Теперь понятно...

 

catalog/view/javascript/common.js

Найти:

	/* Ajax Cart */
	$('#cart > .heading a').live('click', function() {
		$('#cart').addClass('active');
		
		$('#cart').load('index.php?route=module/cart #cart > *');
		
		$('#cart').live('mouseleave', function() {
			$(this).removeClass('active');
		});
	});

Заменить на:

	/* Ajax Cart */
	$('#cart > .heading a').live('click', function() {
	
    location = 'index.php?route=checkout/checkout';
		/* $('#cart').addClass('active');
		
		$('#cart').load('index.php?route=module/cart #cart > *');
		
		$('#cart').live('mouseleave', function() {
			$(this).removeClass('active');
		}); */
	});
Link to comment
Share on other sites


 

Теперь понятно...

 

catalog/view/javascript/common.js

Найти:

	/* Ajax Cart */
	$('#cart > .heading a').live('click', function() {
		$('#cart').addClass('active');
		
		$('#cart').load('index.php?route=module/cart #cart > *');
		
		$('#cart').live('mouseleave', function() {
			$(this).removeClass('active');
		});
	});

Заменить на:

	/* Ajax Cart */
	$('#cart > .heading a').live('click', function() {
	
    location = 'index.php?route=checkout/checkout';
		/* $('#cart').addClass('active');
		
		$('#cart').load('index.php?route=module/cart #cart > *');
		
		$('#cart').live('mouseleave', function() {
			$(this).removeClass('active');
		}); */
	});

Спасипотому что!!! :wink:

Link to comment
Share on other sites


  • 9 months later...
  • 6 years later...

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.