Product Categories


Overview

The product categories API allows you to view individual or a batch of products.


List all categories

Returns products back from WooCommerce, include parementers to query data.

getProductCategories()

Parameters

int page,
int perPage,
String search,
List<int> exclude,
List<int> include,
String order,
String orderBy,
bool hideEmpty,
int parent,
int product,
String slug

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.getProductCategories().then( (productCategories) {
        print(productCategories);
    });

});

Response

List<ProductCategory> instance

Represents the following object - WooCommerce list all product categories