Monday 29 February 2016

Programatically Creating Custom csv files in Magento


magento.png
It's simple to create custom csv in magento . follow the steps to create custom csv.
Create a controller to access data that you want to export in csv file like as below:
  1. public function createcsvAction(){
  2.       $param     = $this->getRequest()->getPost();
  3.         $csv = '';
  4.               $_columns = array(
  5.                   "Shop Number",
  6.                   "Shop Name",
  7.                   "Total Sales ",
  8.                   "Orders Sum" ,
  9.                   "Orders Average ",
  10.                   "Total Year To Date Sales ",
  11.                   "Year To Date Orders Sum" ,

To read full blog about Programatically Creating Custom csv files in Magento visit Findnerd.

You can also post Blogs at Findnerd and also ask tech queries on topics like Javascript, Java C, iOS, Android programming Question and Answers etc.


No comments:

Post a Comment