• Resolved barns.be

    (@barnsbe)


    Thank You for this wonderful plugin! I read that the location, by default, is hooked to woocommerce_after_order_notes and that it can be overridden using the local_pickup_time_select_location filter.

    I would like to hook the location to woocommerce_review_order_before_payment, but I can’t get it to work. Could you please write an example of how I should implement it in my functions.php? THANK YOU!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Matt Banks

    (@mjbanks)

    Thanks for the kind words! You can use a filter to change the location:

    
    /**
     * Filter Local Pickup Time Select Location
     * default location is <code>woocommerce_after_order_notes</code>
     */
    function my_custom_location_function( $location ) {
    	$location = 'woocommerce_review_order_before_payment';
    
    	return $location;
    }
    add_filter( 'local_pickup_time_select_location', 'my_custom_location_function' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Can you give an example of how to change the location of the pickup time box?’ is closed to new replies.