ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Modifying viewCat_h.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Modifying viewCat_h.asp

 Post Reply Post Reply Page  12>
Author
Message
Dean View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dean Quote  Post ReplyReply Direct Link To This Post Topic: Modifying viewCat_h.asp
    Posted: 01-December-2005 at 1:06am
As you can see from the photshop'd screen capture I am trying to add the additional page pointer to the top of the screen.  The problem with the current situation is our customers are not clicking on the second page because they fail to see it even exists.   I've identified that veiwCat_h.asp is the file that most needs to be changed.  I've found the code and  when I cut and paste it into the most likely looking place in the table, well lets just say the results are not what I'm looking for.    The modified page loses its nice arrangement and no amount of fiddling with <table> <tr> <td> tags seems to fix the problem.  It looks like a simple thing to change, but I'm stummped.  For what it is worth I'm using Dreamweaver MX.



Back to Top
Nothing View Drop Down
Newbie
Newbie
Avatar

Joined: 02-November-2005
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nothing Quote  Post ReplyReply Direct Link To This Post Posted: 01-December-2005 at 3:32pm
hi dean
i had the same issues. the beolw code worked for me.
it's from the product support pages i believe.

----------------------------------------------------------
Yes, but you will have to modify the asp source code on
the page. For example, this is the code that would be used towards the top of
viewCat_h.asp.

2005-12-06_164542_Forward-Back-Buttons.txt

----------------------------------------------------------

i'm using ProductCart v2.75g12a16 and all works great here.
hope it helps.

nothing

Edited by Nothing - 06-December-2005 at 4:46pm
Back to Top
Dean View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dean Quote  Post ReplyReply Direct Link To This Post Posted: 04-December-2005 at 8:42pm
Thanks for the pointer.  Thats just what I needed to get started.  For anyone else that wants to make the change to viewCat_h.asp shown in my screen shot above here is detailed instructions.

On line 226 you will find this line:

            next %></b></font></td></tr>

Insert the code below between the </b> and the </font> tags

           next %></b> Put the code here </font></td></tr>

<% If iPageCount>1 then 'If Page count is more then 1 show page navigation %>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &n bsp;         
<font face="<%=FFType%>" color="<%=FColor%>" size="2"><b>
<% If iPageCurrent > 1 Then %>
<a href="viewCat_h.asp?ProdSort=<%=ProdSort%>&am p;idCategory=<%=mIdCategory%>&page=<%=iPageCurr ent -1 %>"><img src="<%=rsIconObj("previousicon")%>" border="0">&l t;/a>
<% End If
For ICount=1 To iPageCount
If ICount=iPageCurrent Then %>
<%= ICount %>
<% Else %>
<a class=privacy href="viewCat_h.asp?ProdSort=<%=ProdSort%& gt;&idCategory=<%=mIdCategory%>&page=<%=ICo unt%>"><font color="<%=Link%>"><%=ICou nt%></font></a>
<% End If
Next
If iPageCurrent < iPageCount Then %>
<a href="viewCat_h.asp?ProdSort=<%=ProdSort%>&am p;idCategory=<%=mIdCategory%>&page=<%=iPageCurr ent + 1%>"><img src="<%=rsIconObj("nexticon")%>" border="0"></a >
<% End If %>
</b></font>           
<% end if 'end of page navigation %>



Edited by Dean - 06-December-2005 at 10:34am
Back to Top
Nothing View Drop Down
Newbie
Newbie
Avatar

Joined: 02-November-2005
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nothing Quote  Post ReplyReply Direct Link To This Post Posted: 05-December-2005 at 4:53am
your code has formatting issues. the code supplied by product cart should paste into your space without errors.

nothing
Back to Top
Dean View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dean Quote  Post ReplyReply Direct Link To This Post Posted: 05-December-2005 at 8:47am
The code supplied by Early Imapact has formating issues as well.  I'm no expert when it comes to formating <tables> <tr> and <td> tags. But, I do know what I see, and when I posted Early Impacts code into that spot it put the next page pointer down one row.  I wanted it right next to the catagory. 

I am up for learning though, what formatting issues do you see?
Back to Top
Nothing View Drop Down
Newbie
Newbie
Avatar

Joined: 02-November-2005
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nothing Quote  Post ReplyReply Direct Link To This Post Posted: 05-December-2005 at 5:33pm

Hello

I haven’t actually tried your code, but from what I see at the end of line 5 “&l t;/a>“ should be “</a>” and mid way through line 12 “<%=ProdSort%& gt;” should be “<%=ProdSort%>”. I’m sure it’s just a formatting issue, but I believe the code would error if I were to copy and paste it.


nothing

Back to Top
Dean View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dean Quote  Post ReplyReply Direct Link To This Post Posted: 05-December-2005 at 10:34pm
Good eye, you're right, the code as displayed is junk.

When I cut and paste from DreamWeaver or Notepad the code gets scrambled.  Heck I even cut and pasted from your post and it got scrambled. 
Back to Top
Nothing View Drop Down
Newbie
Newbie
Avatar

Joined: 02-November-2005
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nothing Quote  Post ReplyReply Direct Link To This Post Posted: 06-December-2005 at 1:33am
the html text editor for posting messages on this form is corrupting the code. the more i edit the code i posted the worse it gets.

oh well.


nothing



Edited by Nothing - 06-December-2005 at 1:43am
Back to Top
ComputerJack View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote ComputerJack Quote  Post ReplyReply Direct Link To This Post Posted: 06-December-2005 at 8:40am
You can try wraping your code with [ CODE ]    code here    [ / CODE ] (without all the spaces) and the forum should display it properly.
Back to Top
Dean View Drop Down
Newbie
Newbie
Avatar

Joined: 28-October-2005
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dean Quote  Post ReplyReply Direct Link To This Post Posted: 06-December-2005 at 10:35am
Thanks for the [ code ] hint.
Back to Top
 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.