Thanks for your question. You don’t mention the specific ecommerce product you’re using so it is difficult to give you a specific answer.
There is no MLA core feature that would accomplish this, but it would be straightforward to use the hooks MLA provides to write a small custom plugin to provide a solution. There are several MLA example plugins that could be adapted for this purpose. To have a look:
- Navigate to the Settings/Media library Assistant Documentation tab.
- Click the “Example Plugins” button.
- Type “mapping” in the text box and click “Search Plugins” to filter the table.
If you give me more details on your specific application I can look through the example plugins and see which one’s best to adapt. Thanks for any additional information you can provide and for your interest in the plugin.
Thread Starter
tukinu
(@tukinu)
Hi David,
Thank you for the answer and explanation.
To be more specific: The store is built with WooCommerce and has only simple products. All my images have the Product SKU as a custom field, and this could be used to map with the product itself.
I found some ideas in the example plugins section that are a good starting point. Guess it would make sense to have a button on the product page to run a function that does the mapping. Something like searching all images with the same SKU and attaching them.
With this information, I can move on and code something.
Thanks again.
Thanks for your update and for taking the time to dig into the example plugins.
You might also find the “WooCommerce Fixit” example plugin useful. Just do a search for “Woo” in the example plugins table.
I am happy to help in any way I can if you have problems or further questions as you develop a solution. If you come up with something that might be of use to other MLA users I can add it to the example plugins.
I will leave this topic unresolved for now. Good luck with the project.
It has been a month since my last post in this topic. I assume you have found a solution that works for your application.
I am marking this topic resolved, but please update it if you have problems or further questions regarding attaching items to their products.