skip to Main Content

Woocommerce adding "stock" after price in shop page

Hey I need to put "in stock" text after price at my shop page. Screen I found this code add_filter( 'woocommerce_get_price_html', 'prepend_append_icon_to_price', 10, 2 ); function prepend_append_icon_to_price( $price, $product ) { if( has_term( 'fast-shipping', 'product_cat', $product->get_id() ) && ! is_product()…

VIEW QUESTION

Get products by author id using a WC_Query in WooCommerce?

I trying to get products by post author id using a WC_Query in WooCommerce, so I tried to include a new custom meta_key "_author", with the following: add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handling_custom_meta_query_keys', 10, 3 ); function handling_custom_meta_query_keys( $wp_query_args, $query_vars ) { $meta_key…

VIEW QUESTION
Back To Top
Search