• Resolved queenb123

    (@queenb123)


    Hello I really hope someone can help me as i am at my wits end…

    I am new to all this, so please bear with me but I have an outstanding problem:

    I have managed to figure out a solution to the variation stock problem:

    In this example:

    http://www.brazilianweave.com/?product=indian-remy-deep-wave-2

    you can see that 12 inches is out of stock (i have made sure back order is activated)

    but 14 inches is in stock

    how ever 14 inches says: “instock (backorders allowed)”

    this will be confusing for my customers, where do i edit the text “instock (backorders allowed)” please?

    Been driving me crazy for weeks!

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter queenb123

    (@queenb123)

    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

    Thread Starter queenb123

    (@queenb123)

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How cani edit the text "instock (backorders allowed)"’ is closed to new replies.