felek Posted February 21, 2015 Share Posted February 21, 2015 Hello, Im need to get customer data (email) in my controller. class AdminOrdersController extends AdminOrdersControllerCore i override function to get some data in my hook. public function renderView() { parent::renderView(); $this->context->smarty->assign(array( 'product' => $product, 'order' => $order, 'currency' => new Currency($order->id_currency), 'can_edit' => $this->tabAccess['edit'], 'invoices_collection' => $invoice_collection, 'current_id_lang' => Context::getContext()->language->id, 'link' => Context::getContext()->link, 'current_index' => self::$currentIndex, 'display_warehouse' => (int)Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT'), )); $this->context->smarty->assign('addresses',$this->tpl_view_vars); return AdminOrdersControllerCore::renderView(); } But I want to pass in render viev current user order email but I cant find it any one can help in that ? Link to comment Share on other sites More sharing options...
NemoPS Posted February 21, 2015 Share Posted February 21, 2015 $customer = new Customer($order->id_customer); You can then get the email: $email = $customer->email; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now