Jerome wrote: Hi,
You have to add the $admin in the variables in the preload (like the vendor, order, shipping_address...)
Then in the email you can display an element of the object, using : {admin.username}
Regards,
OK, I finally found the problem. The correct use is:
$userClass = hikamarket::get('shop.class.user');
$admin = $userClass->get($data->vendor->vendor_admin_id);
then in vars add this plus:
$vars = array(
'admin' => $admin
);
Finally you can call the vendor's admin username in HTML part by this: