1

My client needs to be able to manually set a product 'out of stock'. In store v1 they could do this simply by ticking the limit stock check box on the relevant product page (against the relevant product modifier). This doesn't seem to work in store 2.

We are controlling what is shown using the dynamic class options eg:

<span class="store_product_in_stock">IN STOCK</span><span class="store_product_out_of_stock">OUT OF STOCK</span>

However no matter what we set in the admin, the product is being shown as 'in stock'.

Here is a grab of our admin: enter image description here

Any advice much appreciated.

6
  • What version of Store and EE are you using? Also on the product page can you check the error console to make sure you are not getting any JS errors? Commented Oct 15, 2013 at 20:03
  • Are you running Store v2.0.3? Also have you tried ticking "limit stock" and explicitly setting the stock level to '0'? Commented Oct 17, 2013 at 20:46
  • I am having the same problem. Store v2.0.3, EE v2.7.1. Loading jQuery 1.8.0 in the <head> of my page. No console errors. I've explicitly set stock to zero for several SKUs. When I click on modifiers, the price updates exactly as it should, but combinations that should be out of stock fail to flip store_product_out_of_stock to display:block;. Commented Oct 18, 2013 at 22:28
  • FWIW, {store_product_stock} doesn't seem to output anything. I'm guessing this is the correct usage: <p>Stock level: <span class="store_product_stock"></span></p> Commented Oct 18, 2013 at 22:45
  • FWIW again, store_product_sku does work fine: <p>SKU of this variation: <span class="store_product_sku"></span></p> Commented Oct 18, 2013 at 22:56

0