Show Cart Scrolls to top of page

  • basdc
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago #33984 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

Please Log in to join the conversation.

More
11 years 3 months ago #33988 by ivan.milic
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
  • New Member
More
11 years 3 months ago #33992 by basdc
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

Please Log in to join the conversation.

More
11 years 3 months ago #34000 by ivan.milic
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

Please Log in to join the conversation.

  • basdc
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago #34037 by basdc
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

Please Log in to join the conversation.

More
11 years 3 months ago #34044 by ivan.milic
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.

Please Log in to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum