Skip to main content
Version: 2.x

Quick orders

Since version 2.11

Front-Commerce's QuickOrder component allows customers to add products to the cart by entering an SKU and a quantity. This component is self-contained and renders a compact form that has been designed to be integrated into different contexts. This guide explains how to integrate this feature into your application.

QuickOrder Component

The <QuickOrder /> component adds a user interface allowing your customers to directly order an item based on its SKU

Example with the component added to the default&#39;s theme minicart

Integrate QuickOrder into your project

You must include the component in your page with the following lines:

import React from "react";
import QuickOrder from "theme/modules/QuickOrder";

const MyComponent = () => {
return (
<QuickOrder />

You will also need to add the following line to your web/theme/modules/_modules.scss file:

@import "~theme/modules/QuickOrder/QuickOrder";

Customize the QuickOrder texts

The placeholders and messages displayed by the QuickOrder component have translation keys prefixed with modules.QuickOrder. You can customize the text from your application translations files.