• Resolved evermeg

    (@evermeg)


    Hello. Could you help me replace the intro heading and text that comes up when clicking on the Make Offer button. I’d like a different heading and to put different intro text in besides (To make an offer please complete the form below:)
    Thank you. This plugin is very useful.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor angelleye

    (@angelleye)

    We don’t have it documented yet (will get that done ASAP) but there are filters available for those things. Are you familiar with WordPress Filters? We have the following filters in place:

    * woocommerce_make_offer_form_tab_name – Filter for tab name
    * woocommerce_make_offer_form_tab_title – Filter for tab title
    * aeofwc_offer_form_top_message – Filter for text above form
    * aeofwc_offer_form_bottom_message – Filter for text below form

    Thread Starter evermeg

    (@evermeg)

    Thank you so much for your quick reply. I’ve tried to figure out the filters, but I guess it is not as simple as I thought…

    Can you show me an example of how I might write the aeofwc_offer_form_top_message filter in my child theme functions.php folder to change the message to say:
    “Tell us the price you need, and we’ll do our best to match or beat it.”

    Thanks,

    Plugin Contributor angelleye

    (@angelleye)

    I’m sorry for the delay getting back to you. Give this a try.

    function aeofwc_offer_form_top_message( $message ) {
    	$message = 'Tell us the price you need, and we’ll do our best to match or beat it.';
    	return $message;
    }
    add_filter( 'aeofwc_offer_form_top_message', 'aeofwc_offer_form_top_message' );
    Thread Starter evermeg

    (@evermeg)

    Thanks so much for your response. However, what you sent didn’t work.
    I found this page… https://www.angelleye.com/offers-for-woocommerce-developer-hooks-guide/
    and using what I found there I used the following:

    function my_offer_form_top_message( $message ) {
    $message = ‘<p>Tell us the price you need, and we’ll do our best to match or beat it.</p>’;
    return $message;
    }
    add_filter( ‘aeofwc-offer-form-intro-html’, ‘my_offer_form_top_message’ );

    Plugin Contributor angelleye

    (@angelleye)

    So are you saying that’s working for you then? I can’t tell if you’re good to go now or still need help..??

    Thread Starter evermeg

    (@evermeg)

    Yes, the other filters I found worked:

    my_offer_form_top_message

    I’m good to go for that. Thank you.

    • This reply was modified 9 years, 3 months ago by evermeg.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change Intro Text’ is closed to new replies.