Post by DrSnake » Mon Jul 24, 2017 1:29 am

Is there a mod around (or could I get help making one) that helps keep the focus during the checkout process? Especially after entering your customer info and going on to shipping, then the above dropdown closes, there was so much info that it know goes past the shipping selections. Instead, after each part is completed, it would be great to refocus so that all info is on the screen.

Any help to be had?

New member

Posts

Joined
Thu Jul 06, 2017 12:24 pm

Post by artcore » Mon Jul 24, 2017 2:15 am

I remember doing this and found a demo here: https://demo.ilithemes.com/oc2102
Do a checkout and see if this is what you meant. (Theme is default with custom CSS so ignore that)

It's just a bit of javascript so you can grab it from the site if you're handy :)

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by paulfeakins » Mon Jul 24, 2017 7:05 pm

Or you could install one of the many great one-page-checkout extensions?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by artcore » Mon Jul 24, 2017 7:50 pm

Just in case, here's the snippet. Add it to common.js without script tags, or to template>checkout>checkout.tpl

Code: Select all

<script>
		$('#accordion').on('shown.bs.collapse', function () {
			var offset = $(this).find('.panel-collapse.in').offset(), panel = $('.panel-collapse.in');
			if (offset) {
				$('html,body').animate({
					scrollTop: panel.offset().top - 55
				}, 0);
			}
		});
	</script>

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by DrSnake » Tue Jul 25, 2017 1:10 pm

Had a bit of trouble, let me relocate....
Last edited by DrSnake on Tue Jul 25, 2017 1:25 pm, edited 1 time in total.

New member

Posts

Joined
Thu Jul 06, 2017 12:24 pm

Post by DrSnake » Tue Jul 25, 2017 1:24 pm

Thanks, working great. Should add to source code.

New member

Posts

Joined
Thu Jul 06, 2017 12:24 pm

Post by artcore » Wed Jul 26, 2017 12:28 am

Thanks, and glad you got it to work,
cheers

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 18 guests