Change Related Products on change of attributes like color, size in Woocommerce

I need to change related products on ajax call of attributes swatches in WordPress woocommerce. Please help me as I am newbie in wordpress. Could not understand more about filters and action.

I tried to use woocommerce_output_related_products_args filter but it can use only directly in function.php or theme’s override file. I could not use that filter in ajax called function.

Please let me know, How can I achieve this in wordpress (Woocommerce) ?

Read more here:: Change Related Products on change of attributes like color, size in Woocommerce

Leave a Reply

Your email address will not be published. Required fields are marked *