Okay
  Public Ticket #4505026
Inventory filtering
Open

Comments

  •  1
    Barbara started the conversation

    Hello,

    Thank you for helping me add the filter, but I don't know why it doesn't always work correctly - screenshots are attached.

    The product is on order, but it's shown as in stock.
    How can I fix this?

    Can we add the status: On backorder to the filter?

    Best regards
    Barbara Muszko

    Attached files:  error.jpg
      error-2.jpg

  •  2,570
    WebWizards replied
    At the moment, the filter conflates the Instock/Backorder options.
     
     
    To find a solution, can you please clarify, what are your settings under B2BKing -> Settings -> Other -> Stock? https://prnt.sc/R-GRjJxX-thc
  •  1
    Barbara replied

    b2b.rotulamed.pl is a B2B shop only.
    Stock settings are available in the attachment.
    Customers can purchase the entire assortment. They will receive it immediately (in stock) or by backorder. It's important for customers to know what's in stock and what they'll have to wait for.

    Can we add the status: backorder to the filter?

    Attached files:  stock.jpg

  •  2,570
    WebWizards replied

    Hi Barbara,

    Thank you for clarifying this - I've now added this functionality to the plugin.

    Please update to the attached version of B2BKing Pro, then add this code snippet to your site:

    add_filter('b2bking_bulkorder_instock_filter','__return_true');
    add_filter('b2bking_bulkorder_instock_filter_show_onbackorder', '__return_true');

     

    This should now properly distinguish between "In Stock" and "On Backorder" products in the filter. The implementation is a bit tricky since WooCommerce normally treats backorder products as "in stock" internally, so these two statuses can get mixed up.

     

    If you encounter any issues or problems with columns in the order form after this update, please let me know. If needed, it would be helpful if you could share temporary backend access to the site so we can investigate directly.

    Kind regards,
    Stefan

  •   WebWizards replied privately
  •   Barbara replied privately
  •  2,570
    WebWizards replied

    Hi Barbara,

    Thanks for providing the login details - I've investigated this further on the site.

    As far as I can tell, the filter is working as expected. When going to https://b2b.rotulamed.pl/formularz-zamowienia-hurtowego/ and choosing 'in stock', all items that show have at least one variation that is in stock (which explains why they appear): https://www.loom.com/share/1da8ab8fcaa64de1be495a74312445af

    I did a test with the SKU #284048 which has only 1 variation in stock. When I temporarily set stock to 0 for that variation (so all are on backorder), it no longer shows in the 'in stock' filter. Then it shows again if I add back qty 1: https://www.loom.com/share/62536ef165df4b4fb653b77667f9cc35

    Could you please check again and let me know if you're still seeing specific products that appear incorrectly? If so, it would be helpful if you could share the exact page you are testing this on (is it https://b2b.rotulamed.pl/formularz-zamowienia-hurtowego ? ) and what username you are logged in with when testing.

     

    Kind regards,
    Stefan

  •  1
    Barbara replied

    Hi Stefan,

    You're right, but when I filter for size 38 and then select "In stock," I also see "On backorder" products—as in the screenshot you sent earlier.

    I wish you'd asked about this last week; I can't wait any longer. It's a shame they'll only order in-stock products through B2BKing and backordered products via email.
    I need to change the product settings.
    Maybe one day the filter will work properly. There's an option for that in WooCommerce:


  •  2,570
    WebWizards replied

    Hi Barbara,

    I'm sorry about this issue and I understand the frustration.

    This inventory filtering functionality is not currently a default feature of our plugin. This is a new/beta implementation and as with any new feature, it requires significant testing and can run into issues.

    We will consider adding it directly into the plugin as a standard option in future updates when it is ready,

    Kind regards,
    Stefan

  •  1
    Barbara replied

    Hi Stafan,

    Thank you for the information.
    In our case, and probably not only ours, this is a critical filter.
    Currently, customers only order in-stock items through B2BKing (we don't maintain high inventory levels), and most orders must be placed by email.
    We look forward to the update.

    Kind regards,
    Barbara