Jump to content

[Solved] CSV Import - change order of fields


Recommended Posts

Ok .. this is driving me crazy. The default value on the Import CSV on prestashop is Categories. Sometimes i forget to change it to Products and then i F... up all the categories.. and takes some time to fix. Is there a way to have Products on default on that pull down list instead of Categories? Using version 1.2.4.0...

Link to comment
Share on other sites

I don't have an 1.2 installation handy, this is how you would do it in 1.3, may be similar in 1.2, if not attach a copy of AdminImport.php to the thread so I can look.

 

In admin/tabs/AdminImport.php, within the constructor function find where the instance variable $entities are assigned, thus

$this->entities = array_flip(array($this->l('Categories'), $this->l('Products'), $this->l('Attributes'),...

 

If you swap the categories and products, it would be the products that appear by default at the beginning, like so

$this->entities = array_flip(array($this->l('Products'), $this->l('Categories'), $this->l('Attributes'),...

  • Like 1
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...