Woocommerce: hide “Price display suffix” when the VAT is zero
Woocommerce: hide “Price display suffix” when the VAT is zero
Woocommerce: hide “Price display suffix” when the VAT is zero
WP_Query->get_posts() take too long time to load data maybe 33 sec
First, you need to ensure that your count($args[‘options’] is actually 1. Check the following example: You can see that when I print_r($args[‘options’]), I got 4 elements, so count($args[‘options’] here is 4. But if you look at the dropdown beneath it, you see that it only has 1 option. Why? Because variations (and their attributes) that … Read more
I can’t say it looks particularly blurry to me, but you are enlarging it in your CSS. It looks like the image is 500 by 781 pixels, whereas your CSS is pushing it to 600 by 937. Browsers do not do a great job of enlarging images. Start with a bigger image.
Something like this should work: const {select, subscribe} = window.wp.data; const cartStoreKey = window.wc.wcBlocksData.CART_STORE_KEY; const unsub = subscribe( onCartChange, cartStoreKey ); function onCartChange() { const cart = select( cartStoreKey ).getCartData(); console.log( ‘¡ cart change !’, cart ); } The block’s frontend script should have the woocommerce script’s handle as a dependency so the window.wc.wcBlocksData will … Read more
To show the users nickname in WooCommerce order emails instead of the user login, you need to retrieve the users display name from their user data. add_filter( ‘woocommerce_email_customer_details_fields’, ‘add_user_nickname_to_woocommerce_emails’, 10, 3 ); function add_user_nickname_to_woocommerce_emails( $fields, $sent_to_admin, $order ) { $user_id = $order->get_customer_id(); $user_info = get_userdata( $user_id ); // Retrieve the users nickname (display name) $user_nickname … Read more
As we know WooCommerce product reviews are essentially WordPress comments with a specific comment_type. Firstly we hook into the Comment Submission and then we will check If the Comment is a WooCommerce Product Review and then we trigger our Custom Action. Could you please try to add this to your theme’s functions.php or in your … Read more
here is product set in display in cart in cart.php $_product = apply_filters( ‘woocommerce_cart_item_product’, $cart_item[‘data’], $cart_item, $cart_item_key ); $product_id = apply_filters( ‘woocommerce_cart_item_product_id’, $cart_item[‘product_id’], $cart_item, $cart_item_key ); $thumbnail = apply_filters( ‘woocommerce_cart_item_thumbnail’, $_product->get_image(), $cart_item, $cart_item_key ); if ( ! $_product->is_visible() ) { echo $thumbnail; } else { $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($_product->id), ‘thumbnail’ ); $cartimgsrc=UNAVAILABLEIMG; if($thumb[0]){ $cartimgsrc=$thumb[0]; $product … Read more
Lots of people dealing with the same issue and I haven’t found a solution yet either. It’s like the whole thing is broken and most people just don’t care?
How to add field new in account bacs in woocommerce?