Post by shubhamjha95 » Sat Jun 27, 2015 5:11 pm

hey can any one tell me how do i remove automatic scroll to top while adding items into cart
because its so annoying when we add items in cart and it take us to the top og the page

Newbie

Posts

Joined
Thu May 14, 2015 1:52 am
Location - Madhya pradesh, india

Post by deepvision » Sat Jun 27, 2015 6:10 pm

File /catalog/view/javascript/common.js
The code

Code: Select all

$('html, body').animate({ scrollTop: 0 }, 'slow');
should be changed to

Code: Select all

//$('html, body').animate({ scrollTop: 0 }, 'slow');

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by shubhamjha95 » Sun Jun 28, 2015 1:59 pm

Thanks Man

Newbie

Posts

Joined
Thu May 14, 2015 1:52 am
Location - Madhya pradesh, india

Post by Opencartleerling » Fri Mar 11, 2016 9:57 am

We will soon have a lot of products on our website also. I removed it as explained above, but is there a better solution so customers do know they added something to their cart?

I hope someone has a solution for this, I am not very good with coding myself but simply removing it instead of replacing is by something else is not ideal either. Our website is www.sieradendirect.nl

New member

Posts

Joined
Thu May 21, 2015 12:08 am

Post by labeshops » Fri Mar 11, 2016 10:37 am

Check out the extension store for a solution you like. There are ones to show the cart as a popup for example.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: paulfeakins and 451 guests