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.
- AuthorPosts
-
July 3, 2021 at 2:50 pm #105804
Dimitrios Fekas
ParticipantHello, 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, XLWe have
S= 0 STOCK ,
M = 0 STOCK,
L = 2 STOCK,
XL = 1 STOCKIt 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 5 days, 17 hours ago by
Omar Dabbas.
July 4, 2021 at 9:20 pm #105805WPWhale
ModeratorHi 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?
Omar
July 4, 2021 at 10:44 pm #105806Dimitrios Fekas
ParticipantHello 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 #105807WPWhale
ModeratorHey 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).
Omar
- This topic was modified 5 days, 17 hours ago by
- AuthorPosts
- You must be logged in to reply to this topic.