Eeco_WCO_Ajax
in package
Table of Contents
- __construct() : mixed
- add actions
- eeco_wco_cancel() : bool
- update an offer status to cancelled
- eeco_wco_create_post() : int
- Create an offer post
- eeco_wco_customer_decline() : bool
- update an offer status to customer decline
- eeco_wco_decline_offer() : mixed
- update offer status to top manager declined declined
- eeco_wco_edit_offer() : int
- Create or edit an offer
- eeco_wco_query_items() : array<string|int, mixed>
- Get query items
- eeco_wco_update_cart() : mixed
- update cart with offer items and add coupon for cart
- wco_filter_repors() : mixed
- Filter reports by date
Methods
__construct()
add actions
public
__construct() : mixed
Return values
mixed —eeco_wco_cancel()
update an offer status to cancelled
public
eeco_wco_cancel() : bool
Return values
bool —true || false if status cancelled
eeco_wco_create_post()
Create an offer post
public
eeco_wco_create_post() : int
Return values
int —ID of post created
eeco_wco_customer_decline()
update an offer status to customer decline
public
eeco_wco_customer_decline() : bool
Return values
bool —true || false if updating offer successful
eeco_wco_decline_offer()
update offer status to top manager declined declined
public
eeco_wco_decline_offer() : mixed
Return values
mixed —eeco_wco_edit_offer()
Create or edit an offer
public
eeco_wco_edit_offer() : int
Return values
int —ID of post created or edited
eeco_wco_query_items()
Get query items
public
eeco_wco_query_items() : array<string|int, mixed>
Return values
array<string|int, mixed> —Edited menu items
eeco_wco_update_cart()
update cart with offer items and add coupon for cart
public
eeco_wco_update_cart() : mixed
Return values
mixed —wco_filter_repors()
Filter reports by date
public
wco_filter_repors() : mixed