Author |
Topic |
|
Alan F
VP-CART New User
102 Posts |
Posted - February 27 2004 : 10:53:34
|
I am trying to place a minicart on my site in short mode. However, when i place the <%Navigateshowminicart "SHORT"%> line in a table to position it where I want it ;Returns; by default pushing the table down.
Can anyone tell me what I need to edit to stop this happeningIs there
Thanx in Advance
Alan
|
|
GTM
VP-CART New User
USA
122 Posts |
Posted - February 27 2004 : 16:11:57
|
Hello Alan if we could see a snippet of code or where you are trying to place in a table <%Navigateshowminicart "SHORT"%> would help resolve the problem.
Greg
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - February 28 2004 : 05:36:25
|
i could be wrong, but off the top of my head I'd guess this is because there's a form tag that it's using, and on some browsers, form tags force a new line etc (yes, I know; it's very annoying). One way round this is to hack-about the code a bit so that the form tags are at a higher level.
|
|
|
Alan F
VP-CART New User
102 Posts |
Posted - February 28 2004 : 05:49:24
|
Hi Greg
Here is the html code as requested although I am kind of in agreement with Dev
Hi Dev
Which ASP file should I be hacking around in
Thanx
Alan
<td width="158" bgcolor="#FFFFFF" height="21" background="images/smalltop.jpg" align="center" colspan="2"> <img border="0" src="topleft.gif" width="167" height="24"></td> </tr> <tr> <td width="136" align="left" height="18" bgcolor="#FFFFFF"><%Navigateshowminicart "SHORT"%> </td> <td width="30" align="center" height="18" bgcolor="#FFFFFF"> </td> </tr> <tr> <td width="136" align="left" height="18" bgcolor="#003869"><b><font face="Arial" size="2" color="#FFFFFF"> Categories</font></b></td> <td width="30" align="center" height="18" bgcolor="#FFFFFF"> </td> </tr> <tr> <td width="136" align="left" height="18" bgcolor="#FFE1A4"><font color="#FF0000" face="Arial" size="1"><strong> <a href="shopdisplayproducts.asp?id=1&cat=Furniture" class="noline" onmouseover="self.status='';return true;" onMouseOut="self.status=' ';return true" <strong target="_top">Category 1</a></strong></font></td> <td width="30" align="center" height="18" bgcolor="#FFFFFF"> </td> </tr> <tr> <td width="136" align="left" height="1" bgcolor="#FFE1A4"><font color="#FF0000" face="Arial" size="1"><strong> <a href="shopdisplayproducts.asp?id=2&cat=Travel+Packages" class="noline" onmouseover="self.status='';return true;" onMouseOut="self.status=' ';return true" <strong target="_top">Category 2</a></strong></font></td> <td width="30" align="center" height="1" bgcolor="#FFFFFF"> </td>
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - February 28 2004 : 06:10:11
|
the place to change it depends on where you've put the mini-cart call (and what other forms are around that page etc) You need to be careful, because you might have a search-form near the same place, in which case you wouldn't want to put the cart form tags at too high a level.
Generally, you'd put the form tags in the shoppage_header.htm or shoppage_trailer.htm file and take it out of the mini-cart code.
The code that actually prints the mini-cart form is in shopproductsubs.asp (the NavigateShowMiniCart function)
I've just had a look, and that function forces 2 newline characters (and a center tag) before the rest of the mini-cart is shown - it's probably those <br>'s that are causing the problem rather than a form tag; try commenting out those <br>'s near the top of the NavigateShowMiniCart function and see if that works.
To do that, go into shopproductsubs.asp, do a text search for "NavigateShowMiniCart", and then change the line that's about 10 lines down from: response.write "<center><br><br>"
to: 'response.write "<center><br><br>" response.write "<center><br>"
or: 'response.write "<center><br><br>" response.write "<center>"
(where ' is the comment-out tag)
Edited by - devshb on February 28 2004 06:11:07
Edited by - devshb on February 28 2004 06:23:30 |
|
|
Alan F
VP-CART New User
102 Posts |
Posted - February 28 2004 : 08:19:51
|
Hi Dev
Removing all the <breaks> did the trick.
Your help was appreciated.
Best Wishes
Alan
|
|
|
|
Topic |
|