nikikelly Posted April 1, 2008 Posted April 1, 2008 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?
insaini Posted April 1, 2008 Posted April 1, 2008 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'],
Recommended Posts
Archived
This topic is now archived and is closed to further replies.