• Resolved maxdass

    (@maxdass)


    Hi,
    I’d like to add the condition :

    If no price print “contact us” instead of a blank /day.

    Where can I do this ? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ashanna

    (@morki)

    Hello!

    Please add this code to your theme’s functions.php:

    add_filter( 'easy_booking_display_price', 'wceb_no_price', 10, 2 );
    
    function wceb_no_price( $content, $product ) {
    
        if ( ! $product->is_purchasable() ) {
            $content = "Contact us";
        }
    
        return $content;
    
    }

    Regards,
    Natasha

    • This reply was modified 7 years, 9 months ago by Ashanna.
    Thread Starter maxdass

    (@maxdass)

    Perfect ! thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact us instead of /day’ is closed to new replies.