Woocommerce : Can’t get product info in loop

First of all, get_price_html() outputs html code for product price. To get sale price specifically, use get_sale_price() instead, and get_price() to get regular price. Use Chrome web dev tool to inspect for any php error. The Loop breaks after outputing title, so my guess would be to look for error there.

Customize WordPress widget – Product Category

Taking a look at the output rendered by the widget shows that the markup is missing a closing <a> tag for the term links and the widget instance does not have the closing </li>. Viewing the page source and formatting the output makes it easier to identify these issues: <li id=”mdk_wpcat_widget-2″ class=”widget-container mdk_wpcat_widget”> <h3 class=”widget-title”>Wooooo!</h3> … Read more

How do I hide ‘out of stock’ products in the admin ‘product’ page?

You can do that by adding the code below on your theme functions php file. add_action( ‘pre_get_posts’, ‘iconic_hide_out_of_stock_products’ ); function iconic_hide_out_of_stock_products( $q ) { if ( ! $q->is_main_query() || is_admin() ) { return; } if ( $outofstock_term = get_term_by( ‘name’, ‘outofstock’, ‘product_visibility’ ) ) { $tax_query = (array) $q->get(‘tax_query’); $tax_query[] = array( ‘taxonomy’ => ‘product_visibility’, … Read more

Refund from wooCommerce with stripe [closed]

When you refunded the order in Woocommerce, did you click the button to Refund via Stripe instead of Refund manually? If you clicked Refund via Stripe, and Stripe is connected properly, the order will refund in Stripe. Have you setup a webhook endpoint in Stripe? For example, https://yourdomain.com/?wc-api=wc_stripeWoocommerce at https://dashboard.stripe.com/login?redirect=%2Faccount%2Fwebhooks