Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Page Numbers AND Prev-Next
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 10 2006 :  12:09:46  Show Profile  Visit ironhawker's Homepage  Reply with Quote
Is this possible w VPAsp?
it is on the GNU OS cart and kinda cool
Page Numbers AND Prev-Next at the same time

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]

support
Administrator

4679 Posts

Posted - April 10 2006 :  17:41:41  Show Profile  Visit support's Homepage  Reply with Quote
Hi,

VPASP has provisions to switch between page numbers or prev-next buttons by a simple change of the configuration setting xproductpagingnextprevious

To add both would require code customization, however it is not a major customization.

The code that displays the paging information is located around line 205-209 in shopdisplayproducts:

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



To display both you can simply remove the if, else, end if lines:

PageNavBarNext SQL
PageNavBar SQL


You could configure the appearance of this by modifying both of these subroutines in shop$db.asp


Thank you.

Regards,
Michael
VPASP SUPPORT
Go to Top of Page

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 10 2006 :  21:27:40  Show Profile  Visit ironhawker's Homepage  Reply with Quote
i tried just editing the one file with as many combinations as possible and it did't work.
205-209 in shopdisplayproducts

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

gets a huge looking for if error
and other blow-ups with just the if in there

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
Go to Top of Page

support
Administrator

4679 Posts

Posted - April 10 2006 :  21:29:53  Show Profile  Visit support's Homepage  Reply with Quote
Dear Randy,

Please remove the line

getconfig("xproductpagingnextprevious")="Yes" then

From those original 5 lines, you should only now have:

PageNavBarNext SQL
PageNavBar SQL

Thank you

Regards,
Michael
VPASP SUPPORT
Go to Top of Page

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 10 2006 :  22:39:35  Show Profile  Visit ironhawker's Homepage  Reply with Quote
Most Beautiful - I love it
Thnx....

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
Go to Top of Page

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 15 2006 :  21:02:56  Show Profile  Visit ironhawker's Homepage  Reply with Quote
http://www.vpasp.com/helpnotes/shopexd.asp?id=800
says:
Moving Product Page Navigation (Previous/Next)



If you have more than one page of products then VPASP will display the product page navigation at the bottom of the page. For example:

Previous : [1] [2] [3] [4] : Next

If you want to move this to the top of the page please complete the following:

Open shopdisplayproducts.asp and locate hte following around line 199:

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

Copy this and paste this directly below the following line at around line 136:

response.write "p align=center>" & smallinfofont & getlang("langCommonPage") & " " & mypage & getlang("langCommonof") & " " & maxpages & smallinfoend & vbcrlf

Save and upload your page.

-----So
How do I combine the 2?

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
Go to Top of Page

jontarnow
Starting Member

USA
3 Posts

Posted - April 16 2006 :  18:19:51  Show Profile  Visit jontarnow's Homepage  Reply with Quote
Is it possible to move the Product Page Navigation (Previous/Next) to the middle of the page or justified to the left?
Go to Top of Page

ironhawker
VP-CART Super User

USA
260 Posts

Posted - April 16 2006 :  20:09:19  Show Profile  Visit ironhawker's Homepage  Reply with Quote
Thre's some stuff 'Paging navigation bar on about line 2060 of the shop$db.asp
referred to in one of the other posts here by Michael in Support -that might be what you want... maybe in the section above it as well.
You might try moving the section to around line 1000? or so, scares me though. So make sure you save a file named shop$db_original.asp and then make a couple copies shop$db_01.asp
shop$db_01a.asp shop$db_01b.asp that u do your Dev in and then rename to shop$db.asp
so you dont break anything....




~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
Go to Top of Page

support
Administrator

4679 Posts

Posted - April 16 2006 :  21:12:25  Show Profile  Visit support's Homepage  Reply with Quote
Hi Jon,

If you open shop$colors.asp and locate the following you will be able to change how the numbers display:

const PageNavTable="<table border=""0"" width='100%'>"
const PageNavRow="<tr>"
const PageNavColumn="<td align=""right"" class=""centered"">"
const PageNavFont="<font face='tahoma,arial,verdana'>"
const PageNavFontEnd="</font>"
const PageNavTableEnd="</td></tr></table>"

Hope this helps,
Cam

VP-ASP Support
Go to Top of Page

jontarnow
Starting Member

USA
3 Posts

Posted - April 16 2006 :  21:29:26  Show Profile  Visit jontarnow's Homepage  Reply with Quote
Cam,

You are the man! I have been struggling with this for 2 days! Kinbd of a newbie to VPASP. Thanks for the help!
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