Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WC Lovers

    (@wclovers)

    You have to override this template for the purpose – wp-content\plugins\wc-multivendor-membership\templates\vendor_thankyou.php

    Override at child theme\wcfm\membership\

    Thread Starter neilkonka

    (@neilkonka)

    Hello,

    thank-you for the reply, I have copied the vendor_thankyou.php file to the child theme\wcfm\membership\ and added the content “Welcome {first_name},”. But it’s showing the thank you message from the WCFM Store Manager.

    What am I doing wrong?

    regards
    Neil

    Plugin Author WC Lovers

    (@wclovers)

    and added the content “Welcome {first_name},”

    – Where you have to added this? Show me a screenshot please.

    Between, how it’s showing content at thank you page after your edit?

    Thread Starter neilkonka

    (@neilkonka)

    This https://paste.pics/9TD17
    is where I have added the code.

    This https://paste.pics/9TD1A is what the user is seeing after registration.

    This https://paste.pics/9TD1F is what in the message is /store-manager/memberships-settings/ written.

    What am I doing wrong here.

    • This reply was modified 4 years, 3 months ago by neilkonka.
    Plugin Author WC Lovers

    (@wclovers)

    You have to add these lines to that template –

    $member_user = new WP_User(absint($member_id));
    $subscription_thankyou_content = str_replace( '{first_name}', $member_user->first_name, $subscription_thankyou_content );

    Like this – https://ibb.co/p2VyG8m

    Thread Starter neilkonka

    (@neilkonka)

    Thank-you, great it’s working.

    Plugin Author WC Lovers

    (@wclovers)

    Glad to hear ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to add name tag in thank you pages’ is closed to new replies.