Skip navigation
Currently Being Moderated

Stock control – hide if out of stock

Jul 14, 2012 5:57 PM

Tags: #hide #ecommerce #products #stock_control

Hi,

I’m trying to figure out the best way to go with a site I’m building. The client has hundreds of products and if a product is sold they want the item hidden from the website. The issue is – if I choose that option – hide if out and stock and most items there is only 1 of – then when that product is added to the visitors cart the items disappears and says This product is unavailable or out of stock. I’ve added js to say Product added successfully however if the visitor wants to look at their item again (by clicking on it in their shopping cart) then the message comes up ‘This product is unavailable or out of stock’. This can be confusing for customers so I’m wondering what’s the best way to work around this? Ideally it would be great if the customer could still see their item.

Can anyone suggest a solution?

Cheers

EM

 
Replies
  • Liam Dilley
    4,055 posts
    Feb 28, 2012
    Currently Being Moderated
    Jul 14, 2012 7:06 PM   in reply to EM-99

    You do not need javascript for that, you can just show hide elements that are in or out of stock.

    You can also hide out of stock items in the admin itself so products once out of stock do not even show.

    You can update your script as an other option to look at the cart and if the item on the page is in the cart just have something that says "this item is already in your cart" as well.

     

    Lots of options, depends on what your after.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points