VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Adding "Jump to top page" button below the page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

152 Posts

Posted - September 25 2004 :  03:28:48  Show Profile  Reply with Quote

I already have the code to make a page jump from bottom to top but I need your help to put this link (For example, "Jump to top of the page" under the "Order Selected Products" and "Reset" button below of the page. This would help customers to quickly jump back to top after scrolling down through all my products.

Again, I don't need it to appear on all pages but only on the page where both "Order Selected Products" and "Reset" buttons show up at the bottom. I believe it's the shopdisplayproducts page (but i could be wrong).

Where exactly should I paste the code?

Pls. help. Thanks!

VP-ASP New User

192 Posts

Posted - September 25 2004 :  06:23:10  Show Profile  Visit jonmadrid's Homepage  Reply with Quote
Hi keng,

If you're using version 5.0, Here is the block of code to look for in shopdisplayproducts.asp:

if ProductSelect="Yes" then
response.write "<input type=hidden name=prodindex value=" & ProdIndex & ">"
response.write "<br>"
shopbutton Getconfig("xbuttonorderproduct"),getlang("langProductSelectButton"),"action"
response.write "<br><br>"
shopbuttonreset getconfig("xbuttonreset"),getlang("langCommonReset"),""
If stayonpage="Yes" then
url="shopdisplayproducts.asp?page=" & mypage
response.write "<input type=hidden name=returnurl value=" & url & "></form>"
end if
end if

>>>>>>> INSERT YOUR CODE HERE <<<<<<<

if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL

Just insert your code where indicated. It might look something like this:

Response.Write "<a href=""#"">Return to top of page</a>"

That will put the link below the Order Selected Products" and "Reset" buttons. To place it before the buttons, just insert your code before that block of code I showed above, rather than in the middle of it.

I hope that helps.

All the best,

Jon Madrid
Madrid Communications
Web Design, Development, and Hosting
Go to Top of Page

VP-ASP New User

152 Posts

Posted - September 25 2004 :  12:32:52  Show Profile  Reply with Quote
Problem solved!

Thank you as always!!!

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000