Welcome, Guest ( Customer Panel | Login )




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

keng
VP-CART New User

152 Posts

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

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!

jonmadrid
VP-CART New User

USA
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"),""
stayonpage=getconfig("Xproductstayonpage")
If stayonpage="Yes" then
url="shopdisplayproducts.asp?page=" & mypage
response.write "<input type=hidden name=returnurl value=" & url & "></form>"
end if
response.write("</form>")
end if

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

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


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
www.madridcom.com
Go to Top of Page

keng
VP-CART 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
0 Item(s)
$0.00