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
Username:
Password:
Save Password
Forgot your Password?

 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-ASP 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-ASP 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