Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Add a table to shopdisplaycategories.asp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alina
Starting Member

Canada
20 Posts

Posted - April 05 2004 :  13:44:15  Show Profile  Visit Alina's Homepage  Reply with Quote
some help please :)
How do I add a table to shopdisplaycategories.asp (see my page at http://www.canadianclothing.ca/velocity_cart/shopdisplaycategories.asp - please ignore all the missing pics - this is not my live site - I am building a new site to switch to 5.0)

I want to add this table above my category links - and snug against the header - similar to this static page http://www.canadianclothing.ca/girlsts.html

ALSO - I have been able to add a table to shopdisplayproducts.asp using a file reference in catextra in the categories tables - here: http://www.canadianclothing.ca/velocity_cart/shopdisplayproducts.asp?id=13&cat=Hoodies (again please ignore missing pics) but I can't get the table snug against my shoppagehedder.asp

Thanks - any insight is appreciated

GTM
VP-CART New User

USA
122 Posts

Posted - April 05 2004 :  14:26:58  Show Profile  Reply with Quote
"ALSO - I have been able to add a table to shopdisplayproducts.asp using a file reference in catextra in the categories tables - here: http://www.canadianclothing.ca/velocity_cart/shopdisplayproducts.asp?id=13&cat=Hoodies (again please ignore missing pics) but I can't get the table snug against my shoppagehedder.asp"

I would take a look at the end of the shoppage_header.htm and make sure there is only the <center> at the end of the file, you might have an extra tag that is causing the break in your page.


Greg







Edited by - GTM on April 05 2004 14:36:34

Edited by - GTM on April 05 2004 14:39:35

Edited by - GTM on April 05 2004 14:54:06
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - April 05 2004 :  16:18:12  Show Profile  Visit devshb's Homepage  Reply with Quote
on shopdisplaycategories.asp, each category that's displayed has a spurious </center> at the end.
netscape and internet explorer show this differently as ie will ignore/forgive this, but netscape doesn't.
so, I think if you change your category template and take off the </center> that's at the end of it then this should be ok (there's no corresponding start <center> for each category, so this should be ok).

Also, on a similar topic, if you ever find spurious white-space around a form (such as a category poplist or login form) that you can't get rid of, that's usually because the <form> tags are inside a column definition which'll print white-space in some browsers; to fix that just move the <form> tags so that they're between <tr></tr> instead of around <td></td>

Simon Barnaby
Freelance Developer
Java-E UK
[email protected]
Go to Top of Page

Alina
Starting Member

Canada
20 Posts

Posted - April 05 2004 :  21:11:25  Show Profile  Visit Alina's Homepage  Reply with Quote
Thanks - I tried your suggestions - but the spaces remain - removing the extra center tags will clean up my html :)

The extra space it isn't in my page header see this page for example: http://www.canadianclothing.ca/velocity_cart/shopcustadminlogin.asp and it isn't in my template - see this page I'm using for a template: http://www.canadianclothing.ca/velocity_cart/tmp_tshirts.html (please excuse missing images)




Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - April 06 2004 :  11:12:05  Show Profile  Visit devshb's Homepage  Reply with Quote
to get rid of some of that whitespace, you could try taking out the <p></p> tags:

from:
<td valign=top align=center>
<p>
<a href="shopdisplayproducts.asp?id=13&cat=Hoodies"><img border="0" src="images/SHOPhoodies.gif"></a>
</p></td>


to:
<td valign=top align=center>


and/or also changing cellpadding+cellspacing to zero on the relevant table definitions (currently set to 2)
<a href="shopdisplayproducts.asp?id=13&cat=Hoodies"><img border="0" src="images/SHOPhoodies.gif"></a></td>

Simon Barnaby
Freelance Developer
Java-E UK
[email protected]

Edited by - devshb on April 06 2004 11:13:33
Go to Top of Page

Alina
Starting Member

Canada
20 Posts

Posted - April 07 2004 :  12:23:34  Show Profile  Visit Alina's Homepage  Reply with Quote
The solution of combined efforts - if anyone wants to know
Thanks to everyone :)

To get rid of the break
I changed
response.write "<br>"
to
response.write ""
in line 169 (if my line #'s are unchanged - I'm not sure) of shopdisplayproducts.asp

To add a table to shopdisplaycategories.asp rate after my shoppage_header.htm
I added HTML directally after this line:
ShopPageHeader ' Page header for shop
with my HTML between %> <% tags

I also had to go into my shoppage_header.htm and change table borders/padding to zero - on the table that all content goes into - so the end of my file looks like this:
<!-- Start: Main display-->
<table bgcolor='#FFFFFF' width=715 align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td>
<center>

see results here (table content on the shop page is temporary - it's just a place holder)
http://www.canadianclothing.ca/velocity_cart/shopdisplaycategories.asp
http://www.canadianclothing.ca/velocity_cart/shopdisplayproducts.asp?id=13&cat=Hoodies


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