• Resolved albertdejager

    (@albertdejager)


    Op dit moment als ik een boeking maak en betaal dan komt er automatisch de tekst te staan Mollie by Indigo.

    Graag wil ik hiervoor het ‘naam’ veld gebruiken zodat ik op naam de betaling kan identificeren.

    Ons boekhoudsysteem is gekoppeld en nu is het lastig terug te vinden in de boekhouding van wie de ideal betaling is.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Indigo Webstudio

    (@indigonl)

    Dear Albert,

    We will try to make this possible in the coming update of our plugin. It will require a couple of lines of code in your child theme but we will guide you through that if necessary.

    I expect that we will be able to release the update within one week.

    Petra

    Thread Starter albertdejager

    (@albertdejager)

    Hi Petra,

    That’s great, many thanks.

    Albert

    Plugin Author Indigo Webstudio

    (@indigonl)

    Hi Albert,

    We just released the new version. We created a filter that can be used to modify the mollie description. The filter modifies the default description send to Mollie and you can use it to replace that description with any one of the fields in your form. Here is an example for a form with ID=4 and a description field with ID=3. Obviously, you need to use your own form ID and field ID.

    add_filter( 'gf_mollie_description', 'my_custom_description', 10, 3 );
    function my_custom_description( $description, $entry, $form ) {
    	$form_id = 4;               //  Replace with the id of the form you want to use
    	$description_field = 3;     //  Replace with the id of the form field you want to use for the description
    
    	/*
    	 * Test against gravityforms form id
    	 */
    	if ($form['id'] != $form_id ) {
    		//  Don't alter the description for other forms
    		return $description;
    	}
    	/*
    	 * Get description or use default if the custom description field doesn't exist
    	 */
    	$my_description = rgar ( $entry, $description_field, $description );
    	return $my_description;
    }

    The form ID is shown if you edit your form and the field id is shown if you edit a field. Please let me know if anything is unclear.

    Petra

    Thread Starter albertdejager

    (@albertdejager)

    Hi Petra, I’m really new in this, where do I have to put the code?

    Plugin Author Indigo Webstudio

    (@indigonl)

    Hi Albert, no problem, please send an email to info[at]indigowebstudio.nl with your phone number and FTP + WordPress gecredentials and we help you out!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Naam vermelding’ is closed to new replies.