PDA

View Full Version : shipping and billing address side-by-side


liquid21
January 23rd, 2004, 03:02 PM
A few questions:

Is there any way to get the shipping and billing address form fields to be side-by-side rather than one over the other?

How do I get rid of the "Are you a returning customer? Login in..." line from that page? We're not going to have customers set up accounts, so the line/link is superfluous.

Finally, in the store.php file, I only need the cart content section for checkout purposes so I reworked the page to match the rest of our html site. Is the <? } ?> on line 49 of the code necessary to make the cart function properly? I only included the lines for cart_content.php from 42-45.

liquid21
January 27th, 2004, 04:22 PM
It's been four days. Is anyone reading the messages?

Jamie
February 14th, 2004, 01:58 PM
Hi,

Sorry for the delay.

Is there any way to get the shipping and billing address form fields to be side-by-side rather than one over the other?

Yes, this is possible. The template files that control this are as follows, in order:

ship_header.php

ship_billing_address_header.php
ship_fields.php (used once per field)
ship_billing_address_footer.php

ship_shipping_address_header.php
ship_fields.php (used once per field)
ship_shipping_address_footer.php

ship_footer.php

You need to change the layout from this basic example:

<table border="1">
<tr>
<td colspan="2">
BILLING ADDRESS HEADER IMAGE
</td>
</tr>
<tr>
<td>Field Name:</td><td>Field</td>
</tr>
<tr>
<td colspan="2">
SHIPPING ADDRESS HEADER IMAGE
</td>
</tr>
<tr>
<td>Field Name:</td><td>Field</td>
</tr>
</table>

To this:

<table border="1">
<tr>
<td>
<table border="1">
<tr>
<td colspan="2">
BILLING ADDRESS HEADER IMAGE
</td>
</tr>
<tr>
<td>Field Name:</td><td>Field</td>
</tr>
</table>
</td>
<td>
<table border="1">
<tr>
<td colspan="2">
SHIPPING ADDRESS HEADER IMAGE
</td>
</tr>
<tr>
<td>Field Name:</td><td>Field</td>
</tr>
</table>
</td>
</tr>
</table>

How do I get rid of the "Are you a returning customer? Login in..." line from that page? We're not going to have customers set up accounts, so the line/link is superfluous.

Search for "Are you a returning customer" (with quotes) in the forums. There are 3 posts that explain how to remove this.

Finally, in the store.php file, I only need the cart content section for checkout purposes so I reworked the page to match the rest of our html site. Is the <? } ?> on line 49 of the code necessary to make the cart function properly? I only included the lines for cart_content.php from 42-45.

I you only are using lines 42-45, you don't need the closing <? } ?>. That is closing the if statement that begins on line 30.

Thanks,
Jamie