wcService.invoke (serviceId, parameters)

The wcService.invoke function finds the registered service with the specified service ID and invokes the service via AJAX by using the specified parameters.

Example

wcService.invoke('AjaxCouponsAdd');

Parameters

parameters
(Object) The service parameters.
serviceId
(String) The service ID.