“add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar

I create woocmmerce widget that will create loop by product category. Product loops result should as much as same woocommerce default content-product.php file. And everything is fine within loop ( attributes, link etc ) except css class. I can’t figure out actually where i messed up, but i guess the main problem is within $defaults variable or in woocommerce_loop_add_to_cart_args filter. Please someone help me.

How do I add filter with woocommerce categories?

I have created a loop that displays products, however I have ran into a problem when trying to filter them. I have added in tax_query because that is how to filter the search with taxonomies(based on my understanding). I have obtained the current urls term to filter with $term_search = get_queried_object()->slug; and I have echo’d out $term_search to make sure it was outputing the correct information.

Settings API: Setting default option via ‘get_option’ fails

All my options are stored in one array test_hs_options I have select list settings field ( test_hs_options[‘duration_months’] ) which stores the selected month (1-12). For this settings field, I would like to set a default option at 5. All my attempts at setting the default have failed. What am I missing? // Callback for displaying … Read more