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
 Customization
 Showing Previous /Next at top and bottom
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ProductivePC
VP-ASP New User

USA
199 Posts

Posted - February 16 2004 :  17:39:43  Show Profile  Visit ProductivePC's Homepage  Reply with Quote


This is a continued from a previous post in another general help section however it has turned into a customization issue now so I have moved it over here. This question is in relation to the 5.0 version of the cart.

I would like to be able to display the next and previous buttons at the top and botom of each product page. I know how to semi-accomplish this.

In the shopdisplayproducts.asp around line 179 there is an if statement.

******************************
if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL' Previous /Next Images
else
PageNavBar SQL ' Previous /Next / Numbers in text

end if
******************************

This displays either the previous/ next images or the text

Now, I figured it would just a copy and a paste in the code to put it at the top and yes you can do this with limitations. It can only be placed under the CATIS and the CATDESCR. I do not want this. I want it at the top of the page below the shoppage_header.htm page but still on the shopdisplaycategories.asp page above the CATID and CATDESCR.

The catalog ID & description come from the shopdisplaycategories.asp line 74 DisplayProducts ' display products

It would make sense to just paste the code above there and it should reproduce the same thing above the header. It does not. If I place it below that line 74 and below the headers it works no problem however; if I place it above line 74 all I get is this: []

I am lost on this one and would appreciate any help. Thank you in advance.



Wayne
www.WorldFamousGiftBaskets.net

ProductivePC
VP-ASP New User

USA
199 Posts

Posted - February 16 2004 :  20:25:11  Show Profile  Visit ProductivePC's Homepage  Reply with Quote


Okay, I have figured this one out after much trial and error and going through a lot of asp pages only to find myself back in shopdisplayproducts.asp. The whole thing can be modified right from shopdisplayproducts.asp.

This, again, is a solution for the 5.0 version of the shopping cart

1st - Go to line 178 and copy the if statement there.

if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL ' Previous /Next Images
else
PageNavBar SQL ' Previous /Next / Numbers in text
end if


*******************************************

2nd - Go to line 132 it is the line directly after the following

if objRS1.eof then
objRS1.Close
set objRS1=nothing
shopwriteerror getlang("langProductSearch")
exit sub
end if

********************************************

3rd - Enter down to create a space after the end if and paste the if statement you just copied there so it should now look like this:

if objRS1.eof then
objRS1.Close
set objRS1=nothing
shopwriteerror getlang("langProductSearch")
exit sub
end if
if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL ' Previous /Next Images
else
PageNavBar SQL ' Previous /Next / Numbers in text
end if

********************************************

4th - Go to line 122 and cut it from there (CTRL+X - Windows OS)

response.write prodheaderfont & header & prodheaderfontend


********************************************

5th - Paste this line below the end if you copied earlier. (CTRL+V Windows) so it should now look like this:

if objRS1.eof then
objRS1.Close
set objRS1=nothing
shopwriteerror getlang("langProductSearch")
exit sub
end if
if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL ' Previous /Next Images
else
PageNavBar SQL ' Previous /Next / Numbers in text
end if
response.write prodheaderfont & header & prodheaderfontend


********************************************

That is it... now ftp it over and replace your file and you are done.
And if you did not know how to cut and paste you should probably not be messing in the code to begin with..... lol


Wayne
www.WorldFamousGiftBaskets.net
Go to Top of Page

ProductivePC
VP-ASP New User

USA
199 Posts

Posted - February 16 2004 :  20:31:06  Show Profile  Visit ProductivePC's Homepage  Reply with Quote


Modifications to this code.

If you would like both of them to show you at the same time
Just mark out the following lines in the if statement

The following is courtesy of user JohnMadrid. Thanks John.


'if getconfig("xproductpagingnextprevious")="Yes" then
PageNavBarNext SQL ' Previous /Next Images
'else
PageNavBar SQL ' Previous /Next / Numbers in text
'end if


This will make it so your images Next and Previous appear first and your text links appear next



Hope it helps

Wayne
www.WorldFamousGiftBaskets.net
Go to Top of Page

ProductivePC
VP-ASP New User

USA
199 Posts

Posted - February 16 2004 :  20:36:46  Show Profile  Visit ProductivePC's Homepage  Reply with Quote

To go 1 step further, if you would like to modify the look of your text links check out the following website.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vidref98/html/virefgeneraltabpagenavbarpropertiesdialogbox.asp


Wayne
www.WorldFamousGiftBaskets.net
Go to Top of Page

stone5150
VP-ASP New User

USA
186 Posts

Posted - April 06 2007 :  11:11:05  Show Profile  Visit stone5150's Homepage  Reply with Quote
It seems like there should be an easier way to do this.
Go to Top of Page

stone5150
VP-ASP New User

USA
186 Posts

Posted - April 07 2007 :  11:05:44  Show Profile  Visit stone5150's Homepage  Reply with Quote
There is an easier way.

Just below line 170 of shopdisplayproducts.asp:
response.write "<p class=""ac"">" & smallinfofont & getlang("langCommonPage") & " " & mypage & getlang("langCommonOf") & " " & maxpages & smallinfoend & "</p>"

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

or just add PageNavBarNext SQL above or below that line.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000