RecurringSales
Use this API to create, update and delete recurring sales for subscriptions.
Methods
Invoke via \Components\Commerce\RecurringSales::method()
Click a method name to copy it.
When recurring products exist in the cart, this function returns a string that can be used as a label underneath a summary of the order to describe the recurring products.
Deletes a record from the database
Parameters
$iRecurringSaleId
int unsigned
A record's recurring_sale_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iRecurringSaleId
int unsigned
A record's recurring_sale_id
Return a set of records from the database
Returns all recurring sales for a contact
Gets a single field from a record
Parameters
$iRecurringSaleId
int unsigned
A record's recurring_sale_id
Returns the number of records in the database (matching the filter if specified)
Renders the interval for a recurring sale in a human-readable format
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iRecurringSaleId
int unsigned
A record's recurring_sale_id