Post by livoniaglatt » Thu Dec 27, 2012 3:49 am

Hello Everyone,

We are getting a lot of complaints from our customers when they have to scroll back after adding items in shopping cart in Category view.
Any store owner will agree that it is annoying feature when you have a lot of items.

We'd like to request a feature in category view after customer clicked on "Add to cart" button they would get some kind of notification without scrolling all the way to the top. The best way probably would be small animation, may me like featured on this page http://efishop.ro/leagan/index.php?rout ... duct_id=30
Similar requests was posted here previously but no responds.
The point is to get rid of annoying scrolling.
Also feature to add different product quantity in Category view would be very useful.

Thank you

Newbie

Posts

Joined
Sat Sep 15, 2012 7:07 am

Post by anung » Sat Jan 12, 2013 5:06 am

open common.js on catalog/view/javascript
Find this code

Code: Select all

$('html, body').animate({ scrollTop: 0 }, 'slow');
Replace all with this code

Code: Select all

$('html, body').animate('none'); 

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by pstruh » Wed Apr 10, 2013 4:56 pm

Hi,
It does'nt work for me. I have replaced the code but it still scrolling at the top of the page.
Please help.

/edit
it works but I have to modify category_quantity.js

Thanks.!

Newbie

Posts

Joined
Sun Apr 07, 2013 6:44 pm

Post by jaimied » Wed Aug 21, 2013 7:41 am

Replacing the code as suggested did not work for me, however, deleting the three lines containing the code in common.js file worked in my case (this is for the "add to cart", "add to wish list" and "product compare".

Code to remove:

Code: Select all

$('html, body').animate({ scrollTop: 0 }, 'slow');
I had no need to alter any other files.

Newbie

Posts

Joined
Sun Mar 03, 2013 2:07 pm

Post by frankleng » Sun Aug 17, 2014 2:19 am

make a vqmod like this, it works for 1.5.5.1

<modification>
<id><![CDATA[No scroll]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.3.2]]></vqmver>
<author><![CDATA[X-revised]]></author>
<file name="catalog/view/theme/*/template/product/product.tpl">
<operation>
<search position="replace"><![CDATA[$('html, body').animate({ scrollTop: 0 }, 'slow');]]></search>
<add><![CDATA[$('html, body').animate('none');]]></add>
</operation>
</file>
</modification>

Active Member

Posts

Joined
Sun Apr 22, 2012 5:49 pm

Post by parks2610 » Mon Aug 25, 2014 10:39 am

Hi, where do you put the modification? I am trying to remove the scroll feature too for the add to cart. When I simply deleted the code, it did not work.

Newbie

Posts

Joined
Mon Aug 25, 2014 10:38 am

Post by anirudh7 » Mon Sep 15, 2014 9:57 pm

parks2610 wrote:Hi, where do you put the modification? I am trying to remove the scroll feature too for the add to cart. When I simply deleted the code, it did not work.
Try this MOD http://www.opencart.com/index.php?route ... n_id=18705

Newbie

Posts

Joined
Tue May 13, 2014 8:13 am
Who is online

Users browsing this forum: No registered users and 2 guests