Support » Plugin: WooCommerce » "available on pre-order" wording in woocommerce?

  • Hi everyone,

    I’ve been having a major issue for weeks now, and I feel like I’m going insane because what I’m trying to accomplish is so frustratingly simple, I cannot for the life of me figure out why it isn’t a part of WooCommerce by default.

    Essentially, when you allow people to backorder products in woocommerce, it will say “available on backorder”. But nowhere does it have a pre-order option! Backorder and pre-order are 2 different things entirely…I don’t want a customer ‘backordering’ an item that isn’t due for release for like 6 months time, you feel me?

    So I bought and downloaded the latest woocommerce extension, WooCommerce Pre Order, in hope that it would solve me issue, but no, it doesn’t. I do now have a ‘preorder’ option in the backend, where I can mark a product as being pre-orderable and change the button text from ‘add to cart’ to ‘pre order’. However, that nasty message (available on backorder) still remains. So now it say’s ‘available on backorder’ and has a ‘pre order’ button….how confusing!

    Question is…

    How can I add some sort of IF STATEMENT that check if the product is flagged as a pre-order, and if so, change the text to ‘available on preorder’, and if it isn’t a preorder, it just say’s the usual ‘available on backorder’.

    I hope this all makes sense…let me know if you have any questions and if you can possibly solve this irritating, yet simple issue.



Viewing 2 replies - 1 through 2 (of 2 total)
  • NOTE: I am running the Shelflife theme from WooThemes.

    You need to:

    – Determine how the plugin stores a pre-order flag in the database
    – Use a query to read the flag for the product being displayed
    – take action based on the flag

    Example, assuming the plugin stores the setting in a post meta field called “_preorder”:

    global $product;
    $preorder = get_post_meta( $product->id, '_preorder', true );
    if ( $preorder ) {
         // Do this
    } else {
         // Do that
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"available on pre-order" wording in woocommerce?’ is closed to new replies.