Plugin fill field programmatically

Hi,

 

I am learning the basics of shopware plugin creation and need to fill some fields using incoming javascript arrays and am stuck on the best way to do so.

 

I feel stupid for asking this question because I am sure there is a very basic / neat way to do what I want but I just cannot think of it.

 

If I was just doing basic HTML/JS I would just do .innerHTML edits which could possibly work with shopware too, but I do not feel like thats the cleanest way to do it, and could just get messy quickly.

 

I am hoping to be able to do it via some Ajax but again can’t think of how.

 

Any advice you may be able to offer is appreciated

 

Thanks in advanced

Ian

For the frontent just use jQuery func to insert the field value, for example: $(“input#some_field”).val(‘some_value’);

1 „Gefällt mir“