Answers for "render html helper list + prestashop 1.7"

0

render html helper list + prestashop 1.7

public function renderList()
	{
		$this->addRowAction('edit');
		$this->addRowAction('duplicate');
		$this->addRowAction('delete');
		$this->addRowAction('test');
		return parent::renderList();
	}
Posted by: Guest on January-28-2021
0

render html helper list + prestashop 1.7

public function displayTestLink($token = null, $id, $name = null)
	{
		$tpl = $this->createTemplate('helpers/list/list_action_edit.tpl');
		if (!array_key_exists('Test', self::$cache_lang))
			self::$cache_lang['Test'] = $this->l('Test', 'Helper');
	
		$tpl->assign(array(
				'href' => $this->currentIndex.'&'.$this->identifier.'='.$id.'&update'.$this->table.'&token='.($token != null ? $token : $this->token),
				'action' => self::$cache_lang['Test'],
				'id' => $id
		));
	
		return $tpl->fetch();
	}
Posted by: Guest on January-28-2021
0

render html helper list + prestashop 1.7

<a href="{$href}" class="edit" title="{$action}">
	<img src="../img/admin/edit.gif" alt="{$action}" />
</a>
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language