01generator Posted September 28, 2015 Share Posted September 28, 2015 Hello i am developing a module and in need it to fetch another template when a bulk action is clicked. Right now my code in bulk actions is protected function processBulkPrintSelected() { $all_order_voucher = array(); foreach ($this->boxes as &$value) { $order_info = $this->registerOrder($value); $all_order_voucher[] = $order_info; $tpl = $this->context->smarty->createTemplate(dirname(__FILE__).'/../../views/templates/admin/mass-print.tpl'); $tpl->assign('module_url', __PS_BASE_URI__.'modules/myspeedex/'); $tpl->assign('all_order_voucher', $all_order_voucher); return $tpl->fetch(); } But it doesn't do the trick. Any pointers? 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