ivalea Posted October 23, 2006 Posted October 23, 2006 Hi! I'm using the 2nd Address Line contrib and just realized that the second line isn't printing on checkout_confirmation.php. I've searched for hours trying to find the answer, but haven't found anything. Can anyone tell me how I can do this? I found that this code on line 157 in checkout_confirmation.php is what prints out the addresses - one for billing and one for delivery - <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td> I even found reference to format_id in checkout_process.php and it looks like the query is correct.... but just can't get it to show on checkout_confirmation..... Thanks! :) Quote
ivalea Posted October 23, 2006 Author Posted October 23, 2006 I found out that the problem seemed to be in /includes/general.php around line 484 where $streets = $street; // Second Address Field mod: if ($street_2 != '') $streets = $street . $cr . $street_2; // :Second Address Field mod For some reason, it just wasn't pulling the second line and printing it. I couldn't find a fix to this no matter what I did - all the queries were correct... So instead I ended up replacing line 157 in checkout_confirmation.php from this: <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?> to this: <?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?> and line 242 from this: <?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>');?> to this: <?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?> Not sure if this was the correct way to do this but it doesn't seem to have affected anything else. If in case anyone is able to correct general.php so that I can return the original code please let me know. Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.