Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 Page Navigation on a single page
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dandlyin
VP-CART New User

USA
73 Posts

Posted - April 09 2006 :  09:02:58  Show Profile  Visit dandlyin's Homepage  Reply with Quote
I hate to see useless links. The current system produces a page navigation link at the bottom of every product page, even if there is only 1 page.
I believe this is a simple fix:
In shopdisplayproducts.asp, replace lines around line 209 that read:
if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL
else
PageNavBar SQL
end if

with:

If NOT objRS1.EOF or mypage<>1 then
if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL
else
PageNavBar SQL
end if
end if

This may just be a matter of style but I thought it was worth mentioning.
If anyone finds a problem with my logic, please tell me.
Thank you.
Dan Dotson

Edited by - dandlyin on April 10 2006 19:36:52

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 18 2006 :  00:37:37  Show Profile  Visit ironhawker's Homepage  Reply with Quote
well you have 2 end if statements
is that anything?

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
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