Only the phonenumber and email....
I think this line is what brings it up..
<?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?>
Any ideas?????
Posted 08 October 2003, 12:01
<?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?>
Posted 08 October 2003, 15:03
Posted 08 October 2003, 19:10
<tr>
<td class="main"><b><?php echo ENTRY_SOLD_TO; ?></b></td>
</tr>
<tr>
<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
</tr>
<tr>
<td class="main"><?php echo $order->customer['telephone']; ?></td>
</tr>
<tr>
<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
</tr>
<tr>
<td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td>
</tr>
Posted 25 October 2003, 01:39
Posted 25 October 2003, 01:41
Posted 25 October 2003, 01:59
Posted 25 October 2003, 10:42
Posted 25 October 2003, 14:59
<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>add the following:
<?php
function akoza_debug_var($cText, $xVar) {
$cText = $SCRIPT_NAME . $cText;
if (is_array($xVar) || is_object($xVar)) {
echo "<p>$cText:</p>\n<pre>\n";
print_r($xVar);
reset($xVar);
echo "</pre>\n";
} else {
echo "<p>$cText: $xVar</p>\n";
}
}
akoza_debug_var('$order', $order);
?>
to make the whole thing look like:<?php
function akoza_debug_var($cText, $xVar) {
$cText = $SCRIPT_NAME . $cText;
if (is_array($xVar) || is_object($xVar)) {
echo "<p>$cText:</p>\n<pre>\n";
print_r($xVar);
reset($xVar);
echo "</pre>\n";
} else {
echo "<p>$cText: $xVar</p>\n";
}
}
akoza_debug_var('$order', $order);
?>
<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>
When you view the orders page it will display the contents of the order class. Copy the customer and delivery sections and paste it here.
Edited by Daemonj, 25 October 2003, 15:00.
Posted 25 October 2003, 17:23
$order: order Object ( [info] => Array ( [currency] => GBP [currency_value] => 1.000000 [payment_method] => PayPal IPN [cc_type] => [cc_owner] => [cc_number] => [cc_expires] => [date_purchased] => 2003-10-24 16:41:47 [orders_status] => 99999 [last_modified] => ) [totals] => Array ( [0] => Array ( [title] => Sub-Total: [text] => £29.71 ) [1] => Array ( [title] => Table Rate (Best Way): [text] => £0.00 ) [2] => Array ( [title] => Total: [text] => £29.71 ) ) [products] => Array ( [0] => Array ( [qty] => 1 [name] => Motley crue - girls girls girls [model] => [tax] => 75.0000 [price] => 8.9900 [final_price] => 8.9900 [attributes] => Array ( [0] => Array ( [option] => Size [value] => Xtra Large [prefix] => [price] => 0.0000 ) ) ) [1] => Array ( [qty] => 1 [name] => Aerosmith - Redwing [model] => [tax] => 75.0000 [price] => 7.9900 [final_price] => 7.9900 [attributes] => Array ( [0] => Array ( [option] => Size [value] => Xtra Large [prefix] => [price] => 0.0000 ) ) ) ) [customer] => Array ( [name] => xxxxxxxx [company] => [street_address] => xxxxxx [suburb] => [city] => xxxxxxx [postcode] => CA28 6FR [state] => [country] => Lincolnshire [format_id] => 0 [telephone] => 01946 592496 [email_address] => xxxxxxxxxxx ) [delivery] => Array ( [name] => xxxxxxxx [company] => [street_address] => xxxxxxxx [suburb] => [city] => xxxxxxx [postcode] => CA28 6FR [state] => [country] => Lincolnshire [format_id] => 0 ) [billing] => Array ( [name] => xxxxxxxx [company] => [street_address] => xxxxxxx [suburb] => [city] => xxxxxxxxxx [postcode] => CA28 6FR [state] => [country] => Lincolnshire [format_id] => 0 ) )
Edited by Daemonj, 26 October 2003, 00:40.
Posted 25 October 2003, 17:40
Posted 25 October 2003, 23:55
<?php echo tep_address_format($order->customer['[B]HERE[/B]'], and also in here $order->customer, [B]HERE[/B], '', '<br>'); ?>
Posted 26 October 2003, 00:37
Edited by Daemonj, 26 October 2003, 00:41.
Posted 26 October 2003, 01:35
Posted 26 October 2003, 02:34
Posted 26 October 2003, 02:36
Posted 26 October 2003, 02:40
<tr>
<td class="main"><?php echo 1, $order->customer, 1, '', '<br>'); ?></td>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
</tr>
<tr>
<td class="main"><?php echo $order->customer['telephone']; ?></td>
</tr>
<tr>
<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php echo ENTRY_SHIP_TO; ?></b></td>
</tr>
<tr>
<td class="main"><?php echo 1, $order->delivery, 1, '', '<br>'); ?></td>
</tr>
Edited by interbikes, 26 October 2003, 02:42.
Posted 26 October 2003, 02:48
Edited by Daemonj, 26 October 2003, 02:51.
Posted 26 October 2003, 14:47
Posted 26 October 2003, 16:05
Posted 26 October 2003, 18:27
Daemonj, on Oct 26 2003, 12:05 PM, said: