Close

Add attachments programatically

Wibble
2 years ago
#21766 Quote
Avatar
  • 1
Is it possible to add attachments without using the UI interface, I have a nightly job that reads in product lines and some of those products would have attachments included in the feed.

I assume there is no API to enable this but if I write some SQL and put the files where they are supposed to be, would it work?
todor.atanasov
2 years ago
#21778 Quote
Avatar
  • Moderator
  • 249
Wibble wrote:
Is it possible to add attachments without using the UI interface, I have a nightly job that reads in product lines and some of those products would have attachments included in the feed.

I assume there is no API to enable this but if I write some SQL and put the files where they are supposed to be, would it work?


Greetings,

Thank you for your reply!

Our plugin provides the UI interface in the admin, but not an API. If you wish to have such customization, you can create your own plugin that populates values in our Attachments database table.

However, this would require some development knowledge, so that there are no further issues.
Best regards,
Todor Atanasov
Nop-templates.com