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

woocommerce email template detect email recipient

The template you need to override sits on this path woocommerce/templates/emails/admin-new-order.php This template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php. You can put your code there and this code will be executed for all the recipients that have been configured through the backend by going to Woocommerce > Settings > Emails > New order … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)