- Posts: 19
- Thank you received: 0
Show Cart Scrolls to top of page
-
basdc
Inactive member - Topic Author
- New Member
Less
More
11 years 3 months ago #33984
by basdc
Show Cart Scrolls to top of page was created by basdc
Hi
Just a small one but quite irritating for customers. When selecting 'Show Cart' the page scrolls to top and does not anchor on Cart.
Help appreciated
Thanks
Just a small one but quite irritating for customers. When selecting 'Show Cart' the page scrolls to top and does not anchor on Cart.
Help appreciated
Thanks
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 3 months ago #33988
by ivan.milic
Replied by ivan.milic on topic Show Cart Scrolls to top of page
Can you send link so we could see what are you talking about
Please Log in to join the conversation.
-
basdc
Inactive member - Topic Author
- New Member
Less
More
- Posts: 19
- Thank you received: 0
11 years 3 months ago #33992
by basdc
Replied by basdc on topic Show Cart Scrolls to top of page
The Site is at
www.beadandlacecreations.co.uk/
I think it is the same on the demo website...after purchasing an item when you click 'show cart' the cart is indeed on that page but instead of anchoring the page to the 'cart' it scrolls to the top of the page which is a little confusing for customers who may not realise?
Thanks
Barry
I think it is the same on the demo website...after purchasing an item when you click 'show cart' the cart is indeed on that page but instead of anchoring the page to the 'cart' it scrolls to the top of the page which is a little confusing for customers who may not realise?
Thanks
Barry
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 3 months ago #34000
by ivan.milic
Replied by ivan.milic on topic Show Cart Scrolls to top of page
Try this it might work :
copy:
components\com_virtuemart\views\cart\tmpl\default.php
to:
templates\hot_watches\html\com_virtuemart\cart\default.php
at bottom of file copy add this code:
<script>
jQuery(document).load(function(){
window.scroll(0,500);
});
</script>
you may adjust 500
copy:
components\com_virtuemart\views\cart\tmpl\default.php
to:
templates\hot_watches\html\com_virtuemart\cart\default.php
at bottom of file copy add this code:
<script>
jQuery(document).load(function(){
window.scroll(0,500);
});
</script>
you may adjust 500
Please Log in to join the conversation.
-
basdc
Inactive member - Topic Author
- New Member
Less
More
- Posts: 19
- Thank you received: 0
11 years 3 months ago #34037
by basdc
Replied by basdc on topic Show Cart Scrolls to top of page
Hi
I had to add this php file to the folder 'templates\hot_watches\html\com_virtuemart\cart\default.php'
as it was not there. I then added code to bottom but no change to the view cart behaviour.
help would be appreciated
Thanks
Barry
I had to add this php file to the folder 'templates\hot_watches\html\com_virtuemart\cart\default.php'
as it was not there. I then added code to bottom but no change to the view cart behaviour.
help would be appreciated
Thanks
Barry
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 3 months ago #34044
by ivan.milic
Replied by ivan.milic on topic Show Cart Scrolls to top of page
It should be
<script>
jQuery(window).load(function(){
window.scroll(0,500);
});
</script>
but, it seams you use some additional component for one page checkout page. That component skips default vm page and displayed its own layout.
<script>
jQuery(window).load(function(){
window.scroll(0,500);
});
</script>
but, it seams you use some additional component for one page checkout page. That component skips default vm page and displayed its own layout.
Please Log in to join the conversation.
Time to create page: 0.176 seconds