Ulisses Ramos Posted August 1, 2011 Share Posted August 1, 2011 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 More sharing options...
phrasespot Posted August 3, 2011 Share Posted August 3, 2011 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'),... 1 Link to comment Share on other sites More sharing options...
Ulisses Ramos Posted August 6, 2011 Author Share Posted August 6, 2011 Thank you very much. I had upgraded to 1.4.4. meanwhile... and this hack works perfectly in 1.4.4. Link to comment Share on other sites More sharing options...
gianvi Posted August 9, 2011 Share Posted August 9, 2011 TKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS i indicate your tip also on this post related to the CSV import. link to post If you can help also on other problem we have found ... you are welcome :rolleyes: Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now