TheShop
  • Home
    • TheShop: Headless e-commerce platform with API-first approach
  • GETTING STARTED
    • Quickstart guide
  • frontstore
    • Introduction
      • Types of frontstores
    • API
      • Frontstore API
      • Template customization
    • API client for Laravel
      • Example: Find products by keyword and include sold out products with available attributes to filter
    • Basic selling flow
      • Homepage
      • Product list
      • Product detail
        • Availability and count info in products
        • Add products to cart
        • Variants tree
      • Shopping cart (Basket)
        • Shopping cart list
        • Voucher (discount code)
      • Shipping and payment
      • Checkout
        • Completing order – payment flow
    • Contact form
    • Headless CMS
    • Caching
    • Known Issues
    • FAQ
Powered by GitBook
On this page
  • API client usage
  • API docs
  • Frontstore
  1. frontstore
  2. API client for Laravel

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

PreviousAPI client for LaravelNextBasic selling flow

Last updated 2 years ago

Via , 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 .

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

TheShop Frontstore API v2
TheShop Frontstore API v2