Scroll to page top when opening currency greybox.

Automatic multi currency display on entire catalog.

Run your catalog in a main currency (or a main and alternate) with the customer having the option to turn on an additional currency throughout the Catalog, Cart and Checkout.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Scroll to page top when opening currency greybox.

Post by norman »

If you put the links that acticate NorPrice a long way from the page top then the greybox showing the available currencies may not be visible. The following will fix that by forcing a scroll to the page top before opening the greybox:

Go to Design / Library / layouts / NorPrice / NorPrice Support. Look for the line:

Code: Select all

function norpricepopup(){
Immediately after that add the line:

Code: Select all

  window.scroll(0,0);

And this will scroll the page to the top before opening NorPrice.
Norman
Post Reply