Back order

By default, customers will not be able to add products that are out of stock on your website to their basket. Both the platform and your theme will prevent it.

Activating this extension will enable out of stock products to be bought and, if purchased, changed the stock quantity to a negative number.


Installing the extension

Select 'apps and extensions' from the left menu and then 'available extensions'. Find the 'stock on back order' extension and click to activate it on your account.

Once the extension is activated you'll then need to change the relevant code to your website's files (described below). Changing the code will enable out of stock products to be purchased. To change the code you'll need to use the page editor, alternatively you can click the 'request installation' button and we'll change the code for you (a small charge will be made for the installation, which is listed on the extension page).

Self-installation

When a product is out of stock, instead of the normal 'add to basket' button your theme will instead display an 'out of stock' button which cannot be clicked. When you activate this extension, you'll need to change the code on your theme that does this.

1. Locate the product.twig file (located in /views/product pages/product.twig)

2. Find the code that shows the out of stock button. The exact code will depend on your theme, e.g.

<div class="button out-of-stock-button">{{ global.theme.settings.button_out_of_stock }}</div>

or

<button disabled="disabled" class="btn full-md button-out-of-stock disabled out-of-stock-button">{{ global.theme.settings.button_out_of_stock }}</button>

You'll need to change the code so that instead of displaying the DIV (as in the first example) or a disabled button, it instead displays an add to basket button, e.g.

<button class="btn full-md button-out-of-stock out-of-stock-button">add to basket</button>

3. Please note the exact classes required will depend on your individual theme, where possible you can copy these classes from the normal add to basket button, but you must include the class out-of-stock-button.

4. If you'd like to display a message on the product page the gives the customer an expected delivery date or custom lead time you can use the custom fields extension.