VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vmfyelloq19 on April 03, 2025, 20:55:20 PM

Title: Create media programatically?
Post by: vmfyelloq19 on April 03, 2025, 20:55:20 PM
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!