• Resolved mrdelish

    (@mrdelish)


    I have a shop set up with the plugin, it’s working great except for one issue.

    Some items in the shop are out of stock, but I still want the quote to include them while notifying the user. I have these products set to display, but the out of stock notification is suppressed. The other pages show the number of stock as expected, but this could create some friction between the store and user if it appears that it is in stock.

    I toggled different settings for WooCommerce and RFQ, but could not get these notices to show unless I changed the checkout option to “Normal Checkout” under the general settings, which tells me the plugin is indeed overriding this behavior. Is there an option I’m overlooking, or some other workaround?

    • This topic was modified 2 years, 5 months ago by mrdelish. Reason: Wording
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    is the “Allow quote items when they are out of stock” checked?

    Thread Starter mrdelish

    (@mrdelish)

    Yes, that part works just fine. The user can still add the product to the quote request without any issue, but there’s no indication that it’s out of stock.

    Plugin Author Neah Plugins

    (@gplsaver)

    To allow adding to cart, it is basically considered “in-stock”. I understand what you are requesting, but it is not available as of now. A workaround would be nice!

    Thread Starter mrdelish

    (@mrdelish)

    I’m not sure I understand the response. The solution would be to not hijack the default WooCommerce stock notifications, or give the option to hide them in the plugin settings. When I switch it to the regular checkout, it goes back to showing that it is out of stock. So the plugin is clearly overriding this functionality, but in a way that is detrimental to the quote process.

    What I want is to still have the notice in there and use a filter to change the wording to “on backorder” or something similar so the availability is clear to the user and doesn’t discourage them from submitting a quote request.

    If this is not planned for a future release, I’ll try modifying the plugin files to leave the stock notifications alone.

    Plugin Author Neah Plugins

    (@gplsaver)

    Hello,

    Didn’t mean to upset anyone!

    The plugin in fact does not change the message directly. Let me take a look and get back to you.

    I said a workaround would be a good idea

    • This reply was modified 2 years, 5 months ago by Neah Plugins.
    Plugin Author Neah Plugins

    (@gplsaver)

    Please try this and let me know if it works for you:

    if (function_exists('gpls_get_out_of_stock_text')) {
        function gpls_get_out_of_stock_text($text, $product)
        {
    
            if (!$product->get_stock_quantity()) {
                $text = __("On Back Order", "woo-rfq-for-woocommerce");
                $text = '<p class="stock in-stock">' . $text . '</p>';
            }
            return $text;
        }
    }
    
    if (function_exists('gpls_get_out_of_stock_variable_message')) {
        function gpls_get_out_of_stock_variable_message($text)
        {
            $text = __("On Back Order", "woo-rfq-for-woocommerce");
    
            return $text;
        }
    }
    Plugin Author Neah Plugins

    (@gplsaver)

    We found some errors in the above. We have moved the code in the plugin now. There is a place in the labels to put a message. if there is no message, then the message is suppressed for quote items that are soldout. Have a nice weekend.

    Thread Starter mrdelish

    (@mrdelish)

    That’s exactly what I needed. Thank you for adding that in.

    Plugin Author Neah Plugins

    (@gplsaver)

    Thank for the review!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Out of Stock Notices Missing’ is closed to new replies.