Using Events on WooCommerce (WordPress)
Get more details about how to send WooCommerce (WordPress) events to Gameball.
Ahmed El Assy avatar
Written by Ahmed El Assy
Updated over a week ago

Before starting, please read this article to learn more about Gameball events engine:
How does Challenge Event(s) Rule Engine work?

❗️❗️IMPORTANT NOTE:

You can control what events should be sent to Gameball and what should not through Gameball plugin page on your WordPress dashboard, as shown below:

Available WooCommerce (WordPress) events on Gameball:

Add_to_Cart

This event will be sent to Gameball when your player adds a product to your WooCommerce website cart.

Keys

  • Category: product category of the product added to cart (fashion, electronics, etc.) This will be based on the available categories on your WooCommerce website

  • Discounted: a flag indicates if this product has a discount applied on it or not

  • Price: product price

  • Tag: product tag assigned to this product. This will be based on the available tags on your WooCommerce website

  • Vendor: product brand/vendor inside this order (Zara, Nike, etc.) This will be based on the available vendors on your WooCommerce website

  • Weight: product weight

Remove_From_Cart

This event will be sent to Gameball when your player removes a product from your WooCommerce website cart.

Keys

  • Category: product category of the product added to cart (fashion, electronics, etc.) this will be based on the available categories on your WooCommerce website

  • Price: product price

  • Tag: product tag assigned to this product. This will be based on the available tags on your WooCommerce website

  • Weight: product weight.

View_Cart

This event will be sent to Gameball when your player views the cart page of your WooCommerce website cart.

Keys

  • Products_count: number of products inside the cart

  • Total: total price of all items inside the cart

Order_Completed

Description

This event will be sent to Gameball when your player places an order on your platform completely (completely means that the order status is Completed on WooCommerce).

Keys

  • Category: product category of the order (fashion, electronics, etc.) It can be one category or multiple categories based on how many items are in the order. This will also be based on the available categories on your WooCommerce website

  • Discounted: a flag indicates if there is any product in the order has a discount applied or not

  • Price: total order price

  • Tag: product tag of the order. It can be one tag or multiple tags based on how many items are in the order. This will also be based on the available tags on your WooCommerce website

  • Vendor: product brand/vendor inside this order (Zara, Nike, etc.) It can be on brand or multiple brands to be sent simultaneously. This will also be based on the available vendors on your WooCommerce website

  • Weight: order weight.

❗️❗️IMPORTANT NOTE:
Order_Completed event will not be sent to Gameball unless the order status is "Completed" on WooCommerce to avoid potential fraud cases for payment methods like COD (Cash on delivery).

Review

This event will be sent to Gameball when your player writes a review on a product.

Keys

  • Category: product category of the product added to cart (fashion, electronics, etc.) This will be based on the available categories on your WooCommerce website

  • Discounted: a flag indicates if this product has a discount applied on it or not

  • Tag: product tag assigned to this product. This will be based on the available tags on your WooCommerce website

  • Vendor: product brand/vendor inside this order (Zara, Nike, etc.) This will be based on the available vendors on your WooCommerce website

  • Weight: product weight

View_Product_Page

Description

This event should be sent when your player views a product page on your Woocommerce website.

Keys

  • Category: product category of the product added to cart (fashion, electronics, etc.) This will be based on the available categories on your WooCommerce website.

  • Discounted: a flag indicates if this product has a discount applied on it or not

  • Price: product price.

  • Stock: available stock from this product on your WooCommerce inventory.

  • Tag: product tag assigned to this product. This will be based on the available tags on your WooCommerce website.

  • Vendor: product brand/vendor inside this order (Zara, Nike, etc.) This will be based on the available vendors on your WooCommerce website.

  • Weight: product weight.

All the above events can be used in both the challenges events engine and sending an in-app message.


Did this answer your question?