function mailchimp_ecommerce_create_queue_item in Mailchimp E-Commerce 7
Callback to create a queue item.
Parameters
array $item: Properties to send to the Queue API.
- 'op' (string) The operation to be performed by the Mailchimp API. This
maps to the actual Mailchimp API methods.
- 'cart_id' (string) The ID of the current cart.
- 'store_id' (string) The Store ID.
- 'customer' (array) A fully loaded Mailchimp $customer.
- 'cart' For cart operations, this is the $order from Drupal.
- 'order' For order operations, this is the $order from Drupal.
9 calls to mailchimp_ecommerce_create_queue_item()
- mailchimp_ecommerce_add_cart in ./
mailchimp_ecommerce.module - Adds a new cart to the current Mailchimp store.
- mailchimp_ecommerce_add_cart_line in ./
mailchimp_ecommerce.module - Adds a line to a cart in the current Mailchimp store.
- mailchimp_ecommerce_add_order in ./
mailchimp_ecommerce.module - Adds a new order to the current Mailchimp store.
- mailchimp_ecommerce_delete_cart in ./
mailchimp_ecommerce.module - Deletes a cart in the current Mailchimp store.
- mailchimp_ecommerce_delete_cart_line in ./
mailchimp_ecommerce.module - Deletes a line in a cart in the current Mailchimp store.
File
- ./
mailchimp_ecommerce.module, line 82 - Mailchimp eCommerce core functionality.
Code
function mailchimp_ecommerce_create_queue_item($item) {
$queue = DrupalQueue::get('mailchimp_ecommerce_ops');
$queue
->createItem($item);
}