Hello,
I need some help to achieve some ajax into a plugin.
I'm working on a kind of cart for asking quote. I'd like to do some ajax inside the plugin.
Into the cart, when changing quantity for example on my checkout page, i need to call a file (ajax.php) to update information into session, compute new total and so.
how could i achieve this indo a plugin ? I try to configure something :
if ($this->ajax_url && $this->ajax_url == $uri->path()) {
$this->enable([
'onPageFallBackUrl' => ['ajaxCall', 0]
]);
}
But i don't know what event to call without displaying a page.
Any help will be appreciate.
Thanks for all