Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Want to link to customers.php from orders.php


nikikelly

Recommended Posts

Posted

Can someone tell me why this doesn't work?

$order->customer['id']

 

I'm trying to link to the customer details from the order page so I need the cID to be passed:

In orders.php, I add the following:

<tr>
			<td class="main"><b>Click here for Customer Details:</b></td>
			<td class="main"><?php echo '<a href="customers.php?cID=' . $order->customer['id'] . '">Details</a>'; ?></td>
		  </tr>

 

What am I missing?

Posted
Can someone tell me why this doesn't work?

$order->customer['id']

 

I'm trying to link to the customer details from the order page so I need the cID to be passed:

In orders.php, I add the following:

<tr>
			<td class="main"><b>Click here for Customer Details:</b></td>
			<td class="main"><?php echo '<a href="customers.php?cID=' . $order->customer['id'] . '">Details</a>'; ?></td>
		  </tr>

 

What am I missing?

 

 

open your catalog/includes/classes/order.php file .. look for the sql query which loads the order.. make sure customers_id is part of the query and make sure the value is being assigned to the array

$this->customer = array('id' => $order['customers_id'],

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...