I am wondering if anyone has any hints on how one might go about implementing some back-order functionality. Specifically, I would like to first make the user aware that the product is out of stock by making the "Add to cart" button a "Back order" button on product pages, by flagging out-of-stock parts on product kit pages (color it red and put "Out of Stock" next to it), and also by changing the price field for that product on the cart page to "Backordered". Also, I would like to keep the part on the order but not charge for it right away (essentially just make it $0 and 0 weight for the purposes of checkout) so that we can charge for it (along with shipping) when it is back in stock and shipped. Is this feasible?

Comments

longwave’s picture

This would all need to be done in a custom module at present, using hook_form_alter() to alter the product and product kit add to cart forms, and hook_cart_item() to alter the price and weight of the product once it's in the cart.

It would be good to get some basic "out of stock" support in core, a patch for that would be greatly appreciated if you intend to implement this feature for your own site.

longwave’s picture

Status: Active » Fixed
bancarddata’s picture

Is this truly fixed? I am planning on getting some patch work done on this for a site if not.

longwave’s picture

As a support request it's fixed, the question is answered even if it's not quite what you wanted to hear!

If you want to make a patch for out of stock support in core or any other functionality, please feel free :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

iwant2fly’s picture

I need some similar functionality and have offered a bounty here http://drupal.org/node/1613268
I am welcome to others pitching in their ideas and thoughts, and $ if you can.

kopeboy’s picture

Issue summary: View changes

I really need this.

Not complete backorder functionality, but just ability to notify user by email when item (with specific attribute) is back on stock.

I found someone has done this with Rules and Flag in Commerce, but will this work if I use attributes (with different SKUs adjustements)?