prestaciccio Posted February 11, 2021 Share Posted February 11, 2021 Hello I need help, I'm in trouble. I'm using the DisplayCarrierExtraContent hook. The extra content is a select option. I want to save the value to the DB. I'm trying to use ajax and controllers. I'm not very experienced and although I'm reading from different forums, I can't figure out exactly how I need to do it. Into funcion HookDisplayCarrierExtraContent I call $display = $this->display(__FILE__, 'giorni_cap.tpl'); Into the file .tpl I have got: How should be the Ajax POST to send the selected value to the controller? I have seen many solutions, but I have not yet reached it alone. It should be somethings like this: And the controller? I hope someone can help me. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now