News:

Support the VirtueMart project and become a member

Main Menu

Create media programatically?

Started by vmfyelloq19, April 03, 2025, 20:55:20 PM

Previous topic - Next topic

vmfyelloq19

Friends,
I'm trying to add a media (product image) using virtuemart's media model and assign it to a product.
Does anyone have a hint how to pass media data and wether to use VmModel::getModel('Media')->store() or VmModel::getModel('Media')->storeMedia()?

Thanks in advance!