Jump to content

DisplayCarrierExtraContent ajax controller


Recommended Posts

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:

image.png.e29e3f8d6fc46aea20295bbdbafbe67b.png

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:

image.png.092a439ec10ea413aa78a773c2fa3b5c.png

And the controller? 

image.png.17fca5e7f4409c14acebe596809b99c9.png

 

I hope someone can help me.

Thanks

 

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...