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
 Minicart Problems
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alan F
VP-ASP New User

102 Posts

Posted - February 27 2004 :  10:53:34  Show Profile  Visit Alan F's Homepage  Reply with Quote
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-ASP New User

USA
122 Posts

Posted - February 27 2004 :  16:11:57  Show Profile  Reply with Quote
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

Go to Top of Page

devshb
Senior Member

United Kingdom
1898 Posts

Posted - February 28 2004 :  05:36:25  Show Profile  Visit devshb's Homepage  Reply with Quote
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.

Go to Top of Page

Alan F
VP-ASP New User

102 Posts

Posted - February 28 2004 :  05:49:24  Show Profile  Visit Alan F's Homepage  Reply with Quote
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>


Go to Top of Page

devshb
Senior Member

United Kingdom
1898 Posts

Posted - February 28 2004 :  06:10:11  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

Alan F
VP-ASP New User

102 Posts

Posted - February 28 2004 :  08:19:51  Show Profile  Visit Alan F's Homepage  Reply with Quote
Hi Dev

Removing all the <breaks> did the trick.

Your help was appreciated.

Best Wishes

Alan

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000