Jump to content

How add Icon and ALT in Backoffice Order list (PHP SMARTY)


seog

Recommended Posts

Hi all

I am customizing the file AdminOrdersController.php to show the private customer note inside of a ALT and I dont know how add a short code in PHP Smarty. Here I resume my work:

 

Code added below $this->_use_found_rows = true; around line 84 (controllers/admin/AdminOrdersController.php):

$test_icon[] = array('src' => '../genders/Unknown.jpg', 'alt' => '($customer->note)');

 

 

1) How add the variable {$customer->note} within smarty/php ALT ?

 

After I add within $this->fields_list = array( :

		
'note' => array(
	'title' => $this->l('Note'),
	'search' => false,
	'icon' => $test_icon,
	'width' => 50
),
'id_gender' => array(
	'title' => $this->l('Gender'),
	'icon' => $test_icon,
	'width' => 50
),

 

2. How add a ICON to variable "note"? 

Remark: The 'icon' => $test_icon within of 'note' is not shown. If I test it and remove 'icon' => $test_icon then I get the private customer note in plain text when I want to show these Notes in ALT because always will be long notes that dont fit in columns.

Remark2: Testing the code 'icon' => $test_icon within of 'id_gender' the icon WORKS so I dont understand why it is not working in 'note' 

 

Waiting for a bit help, it is not more than 1 line of php code

Thank you very much

example.jpg

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