Filter results based on variations stock

Top WooCommerce & WordPress Plugins Forums Product XML Feeds for WooCommerce Filter results based on variations stock

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #105804
    Dimitrios Fekas

    Hello, it is possible to filter the results based on stock of the variation ?
    For example  There is a t shirt with size variations S, M, L, XL

    We have
    S= 0 STOCK ,
    M = 0 STOCK,
    L = 2 STOCK,
    XL = 1 STOCK

    It is possbile to include only the variation which contains stock and exclude the others with zero?
    I have try the  [alg_product_terms taxonomy="pa_size"] but it renders all the variations .
    I also check the Stock status to “in stock” but i think this option enables the “in stock” only in product levels and not on variation levels.

    Thank you very much for your time

    • This topic was modified 12 months ago by Omar Dabbas.

    Hi Dimitrios,

    The “In Stock” option should do it, but if it’s only applying that on parent (variable) and not variations, it might be a bug that we can fix.

    Can you please confirm that you’re selecting “Both Variable & Variations” in the feed Variable products option?


    Dimitrios Fekas

    Hello if i choose the variable and variation products options and it  render the available variation totally corect. But this isn’t what i need because it adds the variation in the title. Ex “tshirt – Large , tshirt – XLarge”. .. In my case i need the title to remain as it is and  the available sizes to be appeared in [alg_product_terms taxonomy="pa_size"] in order to place it correct to the skroutz marketplace.

    So Is there  a way for the in stock variation can appear in the variable products?

    Thank you very much.


    Hey Dimitrios,

    Okay I got it, I can create a shortcode that can solve this issue, will do this in the next update and let you know (tonight or tomorrow).


Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.