Filtering Views by Stock Status

Printer-friendly versionPrinter-friendly version
Stores can now hide out of stock products and only display items that are in stock. Using a combination of Local Store Inventory and a View, you can create a display of readily available titles for customers to shop from. If the titles are not in stock, they will simply disappear from the view until their inventory numbers are updated with an in stock status.
 
This filter will only appear if your website has Local Store Inventory (LSI) enabled and you are uploading LSI files. Please review our help documentation for more information on Local Store Inventory.
 
For this example, we will be working with a Front Page Booklist that is displayed on the homepage on the website. We will be adding an LSI Stock Filter to the View in order to only display books that are in-stock at the store. 
 
Before we add the stock filter, all 6 books are appearing in the view. We want to only show the books that appear as ‘On Hand’ in our LSI file. 
 
Screenshot of a frontpage booklist with 6 titles
 
Reminder: When working with a View with multiple displays, remember to save your changes to that display only.
 

Adding the LSI Stock Filter to the View

  1. Navigate to Structure > Views
  2. Locate the View (Example: Front Page Booklist)
  3. Click ‘edit
  4. Under Fields click the item Content: Books
  5. Under Formatter click the checkbox labeled “Hide out of stock products?
Screenshot highlight option to hide out of stock products
  1. Click Apply
  2. Update the preview within the view to check your work
  3. Save the View
 
After these changes have been made to the View, any books that have a quanity of 0 in your LSI file will be automatically removed from the display. As you can see below, after we have added this filter, the first book in the View has been removed due to a stock level of 0.
Screenshot of frontpage booklist with 5 titles

 

IndieCommerce Help Documents

 

About ABA

The American Booksellers Association, a national not-for-profit trade organization, works with booksellers and industry partners to ensure the success and profitability of independently owned book retailers, and to assist in expanding the community of the book.

Independent bookstores act as community anchors; they serve a unique role in promoting the open exchange of ideas, enriching the cultural life of communities, and creating economically vibrant neighborhoods.

Contact

PRESS CONTACT: Dan Cullen (dan@bookweb.org)

MEMBER and MEMBERSHIP INQUIRIES: info@bookweb.org

INDIECOMMERCE: staff@bookweb.org

ALL OTHER INQUIRIES: info@BookWeb.org

 

 

Copyright 2019 American Booksellers Association. BookWeb is a registered trademark of ABA.
Privacy Policy, Cookie Policy, Accessibility Statement