Jump to content

Change required field in Adminmport.php - for updates only!!


Recommended Posts

How can I change required import fields ?

As I migrated my project from another and prime filed is ID only I don't want to have name* as a necessary field/necessary table import in all my update.csv for products and categories. Is there a possibility to change this ? Sorry I'm not familiar to php and other code, I'm only an User.

If I change the line 34:

public static $required_fields = array('name'); 



into:

public static $required_fields = array('id'); 



should this work, and also when I'm importing new products ? New products csv is extended, so with all fields, updates only have ID and the table I want to update. I tried import only with two tables named, but always the table signed with * is requested too...

Link to comment
Share on other sites

  • 5 months later...

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