• Resolved Palijn

    (@palijn)


    Hi,

    great plugin, thanks (still ?? ) !
    When I select “Sort by inventory”, I expect the products to be displayed in the following order :
    – products in stock (from higher to lower)
    – products out of stock BUT backorder authorized => because the customer CAN get these products and place an order
    – products out of stock, no backorder => because there is no way the customer can ask for them in the store.

    It seems to me that the current sorting lumps all “out of stock” products together.
    How can I achieve the sorting I expect ?

    Thanks for your help !
    Regards
    Thierry

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hey Thiery,

    Our plugins can sort by availability, however, as you noticed we only take the stock into account, nad not if backorders are allowed.

    I’ll forward this to our Product team, and hopefully, this will be something we will implement in the future. ??

    Is there anything else I can assist you with?

    Cheers,
    Vladimir

    Thread Starter Palijn

    (@palijn)

    Hi Vladimir,

    I saw in the source that the sort order of your plugin actually sorts by availability, and then defaults to sorting by product title.
    If your developers would be so kind to send me a line of code to try changing that, I would be thrilled to test and report back ! ??

    Thanks !
    Regards
    Thierry

    Hey Thierry,

    You can default it to sort it by availability as well.

    Simply navigate to the wp-admin dashboard of your site, and tap on Appearance>>Customize>>WooCommerce>>Product Catalog, and set the default sort to be “By Availability“.

    Could you please let me know if that does the trick for you?

    Cheers,
    Vladimir

    Thread Starter Palijn

    (@palijn)

    Hi Vladimir,

    I already set the default sorting to “By Availability”, thanks.
    I may have not expressed myself very clearly, so please allow me to try again :

    the “By Availability” sort that I see implemented in your source code does 2 things. First, it sorts all products by their stock number. Then, if stock numbers are ( equal ? missing ? zero ? I’m not sure exactly ) the sort will be by product title for the remaining products.

    You can see it “live” on my shop page at https://shop.ethiqueetchiens.fr . All products with positive stock numbers are neatly displayed first, sorted by stock from higer to lower. This is good !
    Then all remaining products are displayed, sorted alphabetically. Better than no sort, but still…
    That’s the SECOND sort I would like to alter, so that the remaining products are sorted first by backorder type, and then maybe alphabetically or whatever.

    Hopefully this makes it clear ??

    As I wrote, if your developers could jot a quick patch to the code in order to achieve this, I’ll be happy to test and report.

    Regards
    Thierry

    Hey Thierry,

    I filed in feedback for our product team, as they are the ones that ultimately decide on new features and changes to our plugins.

    Hopefully, the new sort will be something that you will be seeing in the future.

    In the meantime is there anything else we can assist you with?

    Cheers,
    Vladimir

    Thread Starter Palijn

    (@palijn)

    Hi Vladimir,

    thanks for your help !
    Thierry

    Hi @vrandjelovic94,

    I installed your plugin exactly for this purpose, and came to the support page to ask for the same thing.

    So I’ll just add my voice to @palijn ‘s. This would be a neat and -from where I stand- logical addition.

    Thank you for this useful plugin.

    Hi @wpguillaume!

    Thanks for chiming in. Vladimir has already logged this feature request, so please know that our product team will review it for potential inclusion in the plugin going forward.

    Thanks for your feedback!

    Julie ??
    SkyVerge

    Thread Starter Palijn

    (@palijn)

    Hi @julieskyverge !
    Do you have any news to share on the addition of this fallback sort order ?
    I did try to alter the code myself, but I have to admit I currently have no understanding of how the $fallback sort actually works from the actual code (function not called from anywhere apparently). However I understand that the _backorders key is in the product_meta table, so maybe it makes it harder to access than a product key such as ‘title’.
    If you could be so kind as pointing towards the right solution, as stated earlier, I am happy to try solving the problem myself and give back the code for inclusion, barring review by your developers of course.
    So, any hint will be welcome heartily !
    Regards
    Thierry

    Plugin Support Steve

    (@skyvergesteve)

    Hey @palijn

    I reached out directly to our product team on this, just to check the feasibility of getting this in place from our end.

    As`we need to conform to the sorting arguments made available in the woo filter we use, which allows very basic manipulation of the order and orderby arguments, we can’t incorporate another meta key => value pair as a fallback option. the fallback, in this filter, must use a WordPress core orderby option.

    What you’re looking to do would require a custom query, which would be best done in a custom template and not using the existing WooCommerce pages. This type of customization would be outside of our support policy, though I can recommend some developers that could assist in this.

    Regrettably, due to this, it won’t be something that we will be able to incorporate into future versions of the plugin, but we do appreciate your feedback!

    Sorry that I don’t have better news for you on this! Can you please let me know if you have any questions?

    Cheers,

    Steve
    SkyVerege

    Plugin Support Steve

    (@skyvergesteve)

    Hey @palijn ,

    It has been a long time since we heard from you, so I’m going to mark this topic as resolved.

    If you’re still experiencing issues please take a look at our FAQs for more information and create a new thread if you have further questions.

    Cheers!

    Steve
    SkyVerge

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sort by inventory : in-stock first, then backorder, then out-of-stock ?’ is closed to new replies.