Web Design & Internet Marketing
Text or Call Now: 813.360.0932


How To Truly Allow Backorders on Magento

kimfooyoung

magento backorders

Despite the easy peasy button that says "allow backorders" on Magento Ecommerce's backend there are a couple problems when you do this.

For instance if the product says out of stock the checkout button won't show up. So here is a fix for that...

Around line 62 on view.phtml under app/design/frontend/base/default/template/catalog/product remove the if saleable lines surrounding this

getChildHtml('addtocart') helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')-> getAddUrl($_product)):__('OR')

The next problem you will find is after clicking checkout there is a red box that pops at the top saying that the product is out of stock - stopping you from moving further to actually put the items in the cart. Here is the fix for that...
Under code/core/mage/cataloginventory/model/stock/item.php comment out the following items

if (!$this->getIsInStock()) { $result->setHasError(true)->setMessage (Mage::helper('cataloginventory')->__ ('This product is currently out of stock.')) ->setQuoteMessage (Mage::helper('cataloginventory')->__ ('Some of the products are currently out of stock')) ->setQuoteMessageIndex('stock'); $result->setItemUseOldQty(true); return $result; }

Thats all there is to it. You should now be able to check out products listed as out of stock.



We thought you might like to see these other posts about web development...



kimfooyoung About The Author
Kim Young is Founder, CEO, and a developer at Foo - a web development company based in Wesley Chapel, Florida. She can also be found on . With over 16 years of experience as a web developer, Kim is excited to share with you tidbits that she has picked up along the way. Kim prioritizes continuing education and out of box thinking in order to bring the most valuable solution to Fooweb's clients.

SHARE WITH YOUR FRIENDS


Let's Do This!


We are so excited to hear more about your organization and chat about how we can drive more traffic your way. Reach out to us now and get a free quote.

Request Pricing Now


web development services© Foo Web Development LLC    Web Design & Development    Serving Clients Worldwide    Client Login   RSS Feed   Feedburner