displaying the last product comment in the woocommerce category
displaying the last product comment in the woocommerce category
displaying the last product comment in the woocommerce category
You should be able to use the woocommerce_customer_get_downloadable_products filter and return the array of downloads in reversed order. function reverse_my_downloads_order( $downloads ) { return array_reverse( $downloads ); } add_filter( ‘woocommerce_customer_get_downloadable_products’, ‘reverse_my_downloads_order’ ); Add this code to your functions.php file of your active child-theme or theme. I didn’t test it, but it should work.
How do I make the product image smaller on a WooCommerce product page?
$user = wp_get_current_user(); if ( in_array( ‘b2buser’, (array) $user->roles ) ) { // load the code to set minimum order quantities }
Woocommerce Export and import Orders
customers are not showing up in woocommerce
Custom template – query issues
Get current page url and simply apply display none css on button based on current page inside wp_footer action for woocommerce pages you can use predefined functions like is_cart(),is_checkout()..(see code) just put below code inside your child theme functions.php file function hide_oneclick_toolbar() { if(is_cart() || is_checkout()) { ?> <style>#pojo-a11y-toolbar{display:none!important;}</style> <?php } } add_action(‘wp_footer’,’hide_oneclick_toolbar’); **hide by … Read more
apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
I found a solution to the problem. This code remove the validation of the custom fields if the Local Pickup method is selected. add_action(‘woocommerce_after_checkout_validation’, ‘thwcfe_remove_unwanted_error’, 11, 2); function thwcfe_remove_unwanted_error($data, $errors){ if (isset($data[‘shipping_method’]) && $data[‘shipping_method’][0] == ‘ local_pickup:8’) { $errors->remove(‘ billing_region’); $errors->remove(‘ billing_cityalt’); } }