keng
VP-CART New User
152 Posts |
Posted - September 25 2004 : 03:28:48
|
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
|
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
|
|
|