Jump to content

Bulk Actions load new template


01generator

Recommended Posts

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

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...