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
  • Availability
  • In stock
  • Available for order
  • Not available
  • Showing sold out products
  1. frontstore
  2. Basic selling flow
  3. Product detail

Availability and count info in products

There are three ways of showing the product availability:

  • In stock

  • Available for order

  • Not available

Availability

In stock

If a product has count greater than 0, it means it can be ordered directly.

Available for order

If a product does not have count but has is_available_for_order parameter set to true, you can show availability info in order_availability (plain text). This product will always be added to the shopping cart, also if count === 0.

Not available

If a product does not have count and also is is_available_for_order set to false, it means that this product is not available to order.

Showing sold out products

By default, API does not return sold out products. If you want to have these products shown in the listing, add showSoldOut=true parameter to the request.

PreviousProduct detailNextAdd products to cart

Last updated 2 years ago