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
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
open common.js on catalog/view/javascript
Find this code
Replace all with this code
Find this code
Code: Select all
$('html, body').animate({ scrollTop: 0 }, 'slow');
Code: Select all
$('html, body').animate('none');
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:
I had no need to alter any other files.
Code to remove:
Code: Select all
$('html, body').animate({ scrollTop: 0 }, 'slow');
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>
<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>
Try this MOD http://www.opencart.com/index.php?route ... n_id=18705parks2610 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.
Who is online
Users browsing this forum: No registered users and 2 guests