Jump to content

how to add function to export emails on AdminCustomers.php


taker330

Recommended Posts

Hello i am trying to add a function that extracts emails to a csv file i already have this:

 

 

if ($this->exportCSV AND (!isset($this->noAdd) OR !$this->noAdd))
				    echo '<a href="'.$currentIndex.'&csv'.$this->table.'&token='.$this->token.'"><img src="../img/admin/add.gif" border="0" /> '.$this->l('Export to CSV').'</a><br /><br />';

 

But i am stuck, i need to know where " &csv'.$this->table.' " goes to can someone maybe just explain how that link works and wich php pages it goes to

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

 

it is quite a simple piece of code, i added this in a new page and included admintab.php to it, then you can just add the link somewhere:

 

				    $table="ps_customer"; // this is the tablename that you want to export to csv from mysql.

				    AdminTab::exportMysqlToCsv($table);

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