The CreatorCon Call for Content is officially open! Get started here.

Restricting the ordering ability of physical item orders when they are out of stock

a_secor_osjl
Tera Contributor

I am tasked with finding a solution to help our Store Operations Team support the retail side of our business by making the internal store orders process less confusing and more streamlined for the fulfillment team. One of the ways we'd like to do this is by restricting the ability to order an item if it is out of stock, while still leaving it visible in the catalog. Like if there was a way to grey out the order button or replace it with an "out of stock" label so the store ops team can easily communicate the status and avoid orders they cannot fulfill. Currently they are deactivating the catalog items to remove them from the catalog, but this is causing stores to call land email asking where the item is and why they can't see it. I was looking into a way to add a custom Request Method in Portal Settings tab that would show an Out of Stock display, but had no luck. 

I realize this is not a true Inventory Control system, but have any other retailers created a solution similar to this? 

1 REPLY 1

YaswanthKurre
Tera Guru

Hi @a_secor_osjl ,

 

We can achieve this by editing Widget but that consume lot of effort and not upgrade feasible,but the simple step-by-step approach  is using DOM manipulation in a Catalog Client Script combined with a Script Include that checks inventory from a custom table or your inventory table and passes the value back to the client.

 

Steps:

  • On catalog item load, check inventory status via Script Include.

  • Pass stock status back to client.

  • Disable order button and show “Out of Stock” message using DOM manipulation if no stock.

 

Mark this as helpful and correct if this answers your question.

 

Thanks,

Yaswanth