WooCommerce and ACF: How to Redirect Upon Add to Cart – Partially Working Example

Try with below code. i have tested and it is working fine for me. add_filter( ‘woocommerce_add_to_cart_redirect’, ‘acf_product_redirect’ ); function acf_product_redirect() { #Get product ID if ( isset( $_REQUEST[‘add-to-cart’] ) || is_numeric( $_REQUEST[‘add-to-cart’] ) ) { $product_id = (int) apply_filters( ‘woocommerce_add_to_cart_product_id’, $_REQUEST[‘add-to-cart’] ); # Check if redirect url set or not if (!empty(get_field(‘redirect_url’, $product_id))) { $redirect_id … Read more

How to vary WooCommerce product prices based on order dates

I’ve found 6 WordPress plugins that provide the functionality to vary prices of bookings/rentals according to dates and date ranges. All are premium. In no particular order they are: RnB – WooCommerce Booking & Rental Plugin WooCommerce Easy Booking (requires the extension “Easy Booking: Pricing“) YITH Booking and Appointment for WooCommerce WooCommerce Bookings And Appointments … Read more

Photo cover in WooCommerce

You are using cropped image. Your image is 300×300 cropped while the section is bigger. Your first div is already set to 40% width, so limiting the image to 40% in that section doesn’t make sense. Use properly sized thumbnail or actual image. Here is the result i got using actual image /3dcc1cba-c209-4a1a-a1f2-edd17fc8b58e.jpg & NOT … Read more

Woocommerce change the price of products in the database

So after a few attempts, I managed to change the price for variable products. If someone needs to send my code: UPDATE wp_postmeta LEFT JOIN wp_posts ON wp_posts.id = wp_postmeta.post_id LEFT JOIN wp_term_relationships ON wp_posts.post_parent = wp_term_relationships.object_id SET wp_postmeta.meta_value = wp_postmeta.meta_value*1.05 WHERE wp_posts.post_type=”product_variation” AND wp_postmeta.meta_key = ‘_regular_price’ AND wp_term_relationships.term_taxonomy_id = ‘2396’