I have the Same Issue I can find PHP code to change every other stock option that woo and WordPress has to offer but not backorder? I really need a extra stock option that says “available” for drop ship items.
Thanks
Hi I finally found a solution:
1. GO TO:
plugin folder in woocommerce/classes)
to remove the back orders allowed text, you need to edit two files:
– /class-wc-product variable.php)
– /class-wc-product variation.php)
2. Where ever it says “backorders allowed” (in brackets only) – delete “backorders allowed” but leave the brackets.
3. Do this through out both php files and it should be ok.
Im sorry you are wrong my good man.
These 2 files have a total of 4 places where backorder_allowed is shown 1 on class-wc-product variation.php and 3 on class-wc-product variable.php I changed the them all, and along with all the different combinations. the only thing i got accomplished was watching the footer disappear…
I was hoping that when i changed
‘backorders_alolowed’ => $this->backorder_allowed() ? ‘ ‘ : $variation->stock,
to
‘backorders_alolowed’ => $this->available() ? ‘ ‘ : $variation->stock,
was going to do
Im not sure we have the same problem as it worked for me… you dont really need the word “available” as wordpress itself has it own which says “in stock” – If you want this option you have to go into word press and have the following settings:
If your product is a variable:
products – inventory – (do not tick) Enable stock management at product level – stock status (put out of stock) – allow backorders (put allow but notify customers)
then as a failsafe make sure you go to:
woocommerce – inventory (please tick Enable stock management & Enable out of stock notifications)
This will enable the customer to have a choice to still buy the item even if it is not instock, just means they will have to wait a little longer.
as you can see on my site here:
http://www.brazilianweave.com/?product=indian-remy-deep-wave
In regards to changing to the word “available” try:
plugin folder in woocommerce/i18n/languages/
http://docs.woothemes.com/document/woocommerce-localization/