Hey Jerome,
I've been looking at the mass action and creating a custom plugin documentation. I'm a little stuck as to how to proceed so I'm attaching an inventory file from my wholesaler so you can see more of what I need. The first thing I need to do is create a manufacturer category if it doesn't already exist and then assign that as the brand to the product. Based on different conditions of the csv file I need to assign the product to categories that are already created. For example:
- if the csv line's caliber is not empty and the gun type is empty and the mag capacity is empty the product will need to be assigned to the ammunition category when created
- if the csv line's caliber is not empty and the gun type is not empty and the mag capacity is not empty the product will need to be assigned to the firearms category when created
- if the csv line's caliber is not empty and the gun type is empty and the mag capacity is not empty the product will need to be assigned to the magazines category when created
Would it be possible to do this with mass actions? If so how do I go about that? If not I did come across this thread
https://www.hikashop.com/forum/4-how-to/3958-how-to-add-the-products-through-api.html
and thought it may be helpful with a custom plugin. Would I need to parse through the csv file with a loop and storing those lines into an array so they can be manipulated to be able to do something like in this thread?