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
 VP-ASP 7.0 Questions
 Page 1 of 5 etc links
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sharon
VP-ASP Super User

353 Posts

Posted - July 27 2011 :  06:27:53  Show Profile  Visit Sharon's Homepage  Reply with Quote
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-ASP Expert

United Kingdom
948 Posts

Posted - July 27 2011 :  08:40:24  Show Profile  Reply with Quote
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
Go to Top of Page

Sharon
VP-ASP Super User

353 Posts

Posted - July 28 2011 :  07:19:27  Show Profile  Visit Sharon's Homepage  Reply with Quote
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.
Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - July 28 2011 :  08:58:42  Show Profile  Reply with Quote
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
Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - July 28 2011 :  09:18:36  Show Profile  Reply with Quote
Just finished playing about with the page numbers display on our test site and came up with this:

http://www.deanston-electrical.co.uk/ScShotPagingNumbers.htm



Regards,

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

Sharon
VP-ASP Super User

353 Posts

Posted - July 28 2011 :  10:48:11  Show Profile  Visit Sharon's Homepage  Reply with Quote
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
Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - July 28 2011 :  11:20:29  Show Profile  Reply with Quote
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
Go to Top of Page

Sharon
VP-ASP Super User

353 Posts

Posted - July 29 2011 :  07:58:22  Show Profile  Visit Sharon's Homepage  Reply with Quote
A couple of G&Ts and I got my head straight. I'm happy now, thanks for you help Carrol :-)
Go to Top of Page

borisvel
Starting Member

Slovenia
40 Posts

Posted - March 15 2012 :  05:41:29  Show Profile  Visit borisvel's Homepage  Reply with Quote
Hi,

i have question regarding page navigation links.

I think they are not search engine friendly, because for each categorie, which have more than 1 page, link is like

http://www.mysite.si/shopdisplayproducts.asp?page=3

This way all pages for each categorie have the same link for SE and it doesn't index it. What is not good.

Does any have idea, have to change links looks let say

http://www.mysite.si/shopdisplayproducts.asp?id=397&cat=Categorie?page=3

This way all categorie pages have unique URL and can be indexed.

Thanks for help and kind regards, Boris

www.finechance.com www.personaliziranadarila.si www.lingerie.si
Go to Top of Page

borisvel
Starting Member

Slovenia
40 Posts

Posted - March 15 2012 :  06:33:53  Show Profile  Visit borisvel's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000