Jump to content

Customer data in custom hook


felek

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...