Example: Find products by keyword and include sold out products with available attributes to filter

Via TheShop Frontstore API v2, you can search for products by a keyword and include sold out products and available attributes for filtering in the response.

This package is open for partners. We are accepting pull requests for additions, edits, and/or improvements.

Each contributor will be set as a maintainer.

API client usage

Navigate to TheShop Frontstore API v2.

API docs

use Theshop\ApiClient\Connector;
use Theshop\ApiClient\Requests\Products\ProductListRequest;

public function search(Connector $connector)
{
    $products = $connector->send(new ProductListRequest(
        showSoldOut: true,
        flags: ['available_attributes'],
        keyword: 'example'
    ))->data['items'];   
}

Frontstore

Last updated