danslo / ApiImport

Boilerplate between the Magento API and ImportExport, so that you can do fast Array/XMLRPC/SOAP based product imports.
244 stars 79 forks source link

Enhancement/attributes #22

Closed willy-ahva closed 10 years ago

willy-ahva commented 10 years ago

Hi @danslo,

This time I worked to add a way to import attributes, attribute sets, attribute groups and to associate attributes to attribute groups in one or more attribute sets you specify.

I added three API methods : importAttributes, importAttributeSets and importAttributeAssociations.

I added a new behavior : delete_if_not_exist. Works with attributes, attribute sets and attribute associations import. Any data you do not specify in your array will be deleted! Send your array, data that there are in Magento and not in your array are deleted.

You are free to merge PR #17 which is the base of this one, and then merge this one.

New stuff begin at #537be07.

danslo commented 10 years ago

Wow, I'm impressed. Sorry for not being too active around this lately, I've been extremely busy.

I'll see if I can get this and the other PR merged tonight.

danslo commented 10 years ago

These should now be merged. Github doesn't seem to understand because I did a rebase.

Once again thanks for all your work and your patience. I'll do my best to be faster in the future!

danslo commented 10 years ago

Oh I should mention, there will be a change that I made that will be relevant to you if you decided to switch over to this repository: I renamed sortOrder to sort_order for consistency. So whatever is building your API requests, you should change that array key.

Other than that I am very impressed, thanks again.

willy-ahva commented 10 years ago

You're welcome ! Totally agree with changes ;) Thank you !

barryvdh commented 8 years ago

Will BEHAVIOR_DELETE_IF_NOT_EXIST also delete products that are not in the feed? Or is it just for attributes?