Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Next Page/Prev Page Coding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

printerwerx
Starting Member

Canada
41 Posts

Posted - August 25 2008 :  11:21:02  Show Profile  Visit printerwerx's Homepage  Reply with Quote
Hi!

I am looking for the coding for the next page/prev page function. I would like to know where this coding is, and if it is alrady known, to add it to the top of the product display page as well as the bottom of the page (is already at the bottom).

Also, where is the shop.css can i find the color configurations for this?

Thank you in advance for the help.

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - August 25 2008 :  17:27:05  Show Profile  Reply with Quote
The function is in the file shopdisplayproducts.asp around line 225:

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


The css for this is in the file shop.css:
' Navigation
const PageNavTable="<table border=""0"" width=""100%"">"
const PageNavRow="<tr>"
const PageNavColumn="<td class=""ac"">"
const PageNavFont=""
const PageNavFontEnd=""
const PageNavTableEnd="</td></tr></table>"


Hope this helps

Regards,
Carrol
www.deanston-electrical.co.uk
Go to Top of Page

printerwerx
Starting Member

Canada
41 Posts

Posted - August 26 2008 :  09:05:25  Show Profile  Visit printerwerx's Homepage  Reply with Quote
Found everything alright, but I can't find a way to get it added to the top of the displayed products as well as the bottom of the page.
Go to Top of Page

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - August 27 2008 :  08:57:07  Show Profile  Reply with Quote
Hi,

in shopdisplayproducts.asp find line 170, should be:

'response.write "<p class=""ac"">" & smallinfofont & getlang("langCommonPage") & " " & mypage & getlang("langCommonOf") & " " & maxpages & smallinfoend & "</p>"

Take the ' away from the start of the line. This will give you a display like Page 1 of 3. If all you want at the top is the same paging at the foot of the page, then insert at line 170:

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


Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

printerwerx
Starting Member

Canada
41 Posts

Posted - August 28 2008 :  09:28:45  Show Profile  Visit printerwerx's Homepage  Reply with Quote
thank you, worked perfectly :)
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