Pass Customer ID
Posted 28 March 2012 - 06:40 PM
Thanks for any help.
Posted 29 March 2012 - 10:42 AM
Yes, most models extending on the Db_ActiveRecord have an 'id' field that is used as an identifier. In your case, it might be useful to look at the the class references for Shop_Order and Shop_Customer. The order's customer id can be accessed directly with $order->customer->id (assuming $order is a Shop_Order) object.