Author |
Topic |
|
Sharon
VP-CART Super User
357 Posts |
Posted - July 27 2011 : 06:27:53
|
I want to be able to change the look of the multiple page links that display on search results or are if there are more than one page of items in a category. I also want to be able to add a last page & next page link. I have them displaying at both the top & bottom of my main content.
I have been going round in circles and can't find where these are created or where to format them. Can anyone point me in the right direction please? |
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - July 27 2011 : 08:40:24
|
Hi Sharon,
shopdisplayproducts.asp
Sub DisplayProducts()
if getconfig("xproductpagingnextprevious")="Yes" then PageNavBarNext SQL else PageNavBar SQL end if
or if you want the previous and next links you can change the above to:
if getconfig("xproductpagingnextprevious")="Yes" then If maxpages > "1" Then response.write smallinfofont & getlang("langCommonPage") & " " & mypage & getlang("langCommonOf") & " " & maxpages & smallinfoend PageNavBar SQL PageNavBarNext SQL end if end if
This is for v6.5 but it should be similar or the same for v7
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
Sharon
VP-CART Super User
357 Posts |
Posted - July 28 2011 : 07:19:27
|
Thanks Carrol, you certainly pointed me in the right direction.
I found that xproductpagingnextprevious was set to NO & changed it to YES. According to the v7 User Manual "Setting this to Yes replaces the page numbers at the bottom of the page with Next and Previous buttons or text." In fact it added the Next link, which I wanted, & left in the page numbers too which I wanted to retain.
However, the back link is an image http://www.impact-test.co.uk/vpnav_previous.gif. Having searched my entire hard drive for this file I can only presume that this was not supplied with v7.
What I now have is confusing:
Page 2 of 128 (missing image) [1 2 3 4 5 6 7 8 9 10] Next : Last Next page
or
Page 11 of 128 (missing image) First : Previous [11 12 13 14 15 16 17 18 19 20] Next : Last Next page
What I would like is either an image link for both Next page & Last page or a text link, not a mixture of both and to change Next & Last to Next 10 & Last 10.
I've left it as it is on the site at present. www.impact-test.co.uk A search for something like sieve or oven will bring up hundreds of results.
|
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - July 28 2011 : 08:58:42
|
Hi Sharon,
do a search in Admin Cart Setup for the field xbuttonpreviouspage and remove the image reference there. If you really want the code for all the paging stuff then you'll find it in shop$db.asp within the 2 subs: sub PageNavBar(sql) sub PageNavBarNext(sql)
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
|
Sharon
VP-CART Super User
357 Posts |
Posted - July 28 2011 : 10:48:11
|
I removed the image name from Xbuttonpreviouspage and now get this.
Page 2 of 174 Previous page [1 2 3 4 5 6 7 8 9 10] Next : Last Next page
I like what you've done on your test site & I had a look at the 2 subs in shop$db.asp but its beyond my limited skills to work out how to change it.
[Edit] Having a stupid day today I'll have a play with button images, which should help.
Thanks again Carrol. |
Edited by - Sharon on July 28 2011 10:52:11 |
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - July 28 2011 : 11:20:29
|
Changing the text 'Previous' and 'Next' to Previous 10 or Next 10 can easily be done through the Edit language in the admin panel. Search for keywords langprevious and langnext and change to whatever you want, save changes and reset your language.
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
Sharon
VP-CART Super User
357 Posts |
Posted - July 29 2011 : 07:58:22
|
A couple of G&Ts and I got my head straight. I'm happy now, thanks for you help Carrol :-) |
|
|
borisvel
Starting Member
Slovenia
47 Posts |
|
borisvel
Starting Member
Slovenia
47 Posts |
Posted - March 15 2012 : 06:33:53
|
Hi,
i think i found solution. It works for me just fine.
In shop$db.asp do following:
- in sub PageNavBar(sql)
change this at line cca 2076
'original ref=ref & "?page=" & counter ref=ref & "?cat=" & category & "&page=" & counter
- and in sub PageNavBarNext(sql)
change this at line cca 2121
'original ref=ref & "?page=" & prevpage ref=ref & "?cat=" & category & "&page=" & prevpage
and change this at line cca 2149
'original ref=ref & "?page=" & nextpage ref=ref & "?cat=" & category & "&page=" & nextpage Kind regards, Boris
www.finechance.com www.personaliziranadarila.si www.lingerie.si |
|
|
|
Topic |
|