• Resolved SLV

    (@dwnl)


    Hello,

    We show the stock status on each product page and this one can differ from each product variation.
    I believe this is for variable products: class=”woocommerce-variation-availability”
    I believe this is for simple products: class=”electro-stock-availability” (We use the Electro theme)

    We would like to display this stock status for each product in all the order confirmation emails. (and it must not change when ever we change it for that product in the shop)
    Can anyone please tell me how I can do this?

    • This topic was modified 3 years, 10 months ago by SLV.
Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter SLV

    (@dwnl)

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @dwnl ??

    We would like to display this stock status for each product in all the order confirmation emails. (and it must not change when ever we change it for that product in the shop

    Looks like there’s already a solution for this which you can find here.

    Cheers.

    Thread Starter SLV

    (@dwnl)

    Hello,

    Yes I found that code also, and yes, that code works but… Is it possible to not show outofstock/instock/onbackorder but the custom text we use? We do use this plugin: https://nl.www.ads-software.com/plugins/woo-custom-stock-status/ (There is no support anymore)

    For variable products our class is: <div class=”woocommerce-variation-availability”>Levertijd: With for example:<p class=”stock in-stock in_stock_color”>bij afhalen: binnen 3 werkdagen, bij bezorging: binnen 14 werkdagen</p></div>

    For our simple products our class is: <div class=”availability”>Levertijd: <span class=”electro-stock-availability”> With for example: <p class=”stock in-stock in_stock_color”>binnen 12 werkdagen</p></span></div>`

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @dwnl,

    If you look at line 5-6 of the code snippet:

    
    // gets stock status product
    $stock_status = $product->get_stock_status();
    

    The function get_stock_status() is being used to get the order status. This function will only return the default WooCommerce order status and not the custom one that you created using the mentioned plugin.

    Since we did not develop this plugin, I am unable to tell which function to use in this case. I suggest you post on the plugins’ support forum for further assistance. If you don’t get a response from the developer then I recommend using a different plugin that has an active support forum.

    Thanks!

    Hi @dwnl

    This is from https://nl.www.ads-software.com/plugins/woo-custom-stock-status support,
    We have checked your requirement to include the custom stock message in order emails, and we will implement it in next release of the plugin.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hi @softound,

    That’s great news!

    In that case, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks!

    Thread Starter SLV

    (@dwnl)

    Hi @dwnl
    And when will this next release be?

    @dwnl We will update you tomorrow.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hi @dwnl,

    As per @softound, they are currently working on fixing this. Therefore, I’m going to mark this as resolved – if you have any further questions, you can start a new thread here.

    Thanks!

    Thread Starter SLV

    (@dwnl)

    @softound, you updated the plugin with this feature but…

    I noticed that this does not work with variable products.
    With variable products I go to the product page (backend) itself and go to variations, I set under: Adjusted stock status, the actual status.
    This status is not showing on order confirmation page, mails and orders in Woocommerce.

    It takes the status set at: Woocommerce – settings – Adjusted stock

    • This reply was modified 3 years, 10 months ago by SLV.
    • This reply was modified 3 years, 10 months ago by SLV.
    Thread Starter SLV

    (@dwnl)

    @softound, why is there no support/answer?
    Can you help me please and reply?

    Thanks for your update and the new feature, but that Show Stock Status in Order Email does not work with variable products.
    With variable products I go to the product page (backend) itself and go to variations, I set under: Adjusted stock status, the actual status.

    On the order confirmation page, mails and order in Woocommerce it shows the stock status set in: Woocommerce – settings – Custom Stock.

    Also: you say: The custom stock status message in email may be differ based on availability of product at the time of order, it is not always same as customers see in shop page
    This results in: Today the stock status is 10 days, this shows in the order mail and in the woocommerce orders. But when I change the stock status of that product to 20 weeks. This new stock status is showing. So the clients logs in and sees this new order status which is not correct. And we see it to in the woocommerce orders.

    Can you help me please and reply?

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @dwnl,

    Since the discussion is about a different plugin, it would be ideal to proceed on their forum.
    I see you have created a thread on their forum already: https://www.ads-software.com/support/topic/custom-stock-status-in-all-the-order-confirmation-emails/

    Thus, I’ll go ahead and mark the thread on the WooCommerce forum resolved.

    If you have questions about the core WooCommerce plugin, please feel free to create a new thread here.

    Thanks!

    Thread Starter SLV

    (@dwnl)

    There is no support with that plugin…
    Is there another way to show a custom Stock status in all the order confirmation emails?

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @dwnl,

    You can use try the WooCommerce Order Status Manager extension. It does exactly what you are looking for.

    Cheers.

    Thread Starter SLV

    (@dwnl)

    @sohanhossain I don’t think that plugin does what I ask for. It’s for order statuses not stock statuses…

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Stock status in all the order confirmation emails’ is closed to new replies.