Home › Forums › Product XML Feeds for WooCommerce › Filter results based on variations stock
- Support forum for the Product XML Feeds for WooCommerce.
- This topic has 0 replies, 2 voices, and was last updated 1 year, 10 months ago by WPWhale.
July 3, 2021 at 2:50 pm #105804Dimitrios FekasParticipant
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
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
July 4, 2021 at 9:20 pm #105805WPWhaleModerator
- This topic was modified 5 days, 17 hours ago by Omar Dabbas.
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?
OmarJuly 4, 2021 at 10:44 pm #105806Dimitrios FekasParticipant
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.July 5, 2021 at 4:38 pm #105807WPWhaleModerator
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).
- You must be logged in to reply to this topic.