Read product data CSV

The tutorial explains how to read product data from the CSV. Please click here to download the sample products.csv file.

This CSV file was exported from the opencart website.This step reads the CSV product data as show below.Please refer the tutorial which explains how to import the products in magento.

Read data from CSV

The following code reads the data from the csv and get the result in an array ($arrResult).

The above function reads the data from the products and create the following array.

import products magento

Share this Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

*