De Gravity Forms Checkout extensie voor Easy Digital Downloads stelt u in staat om aankoopformulieren voor al uw producten te maken via Gravity Forms.
Installatie
Nadat u de Gravity Forms Checkout extensie heeft geïnstalleerd en geactiveerd, zijn er geen verdere installatiestappen nodig – de extensie is klaar voor gebruik.
Opmerking: Deze instructies vereisen deGravity Forms Checkoutextensie enGravity Forms.
Inhoudsopgave
Verbinden met EDD Download
Voeg in de Gravity Forms formuliereditor een Productveld toe aan uw formulier.

Bewerk het Productveld en geef het een naam die u aan gebruikers wilt tonen. In het onderstaande voorbeeld heeft het product de naam "Productnaam" gekregen.
Dit kan gedaan worden door met de muis over het productveld te gaan en op de knop "Instellingen" te klikken.
Er zal een dropdownveld verschijnen onder de tekst "Verbinden met EDD Download." Selecteer het juiste EDD-product uit de lijst. Als het product variaties heeft, ziet u een bericht dat er variaties zijn (die aanvullende instellingen vereisen). Instructies voor variabele producten kunnen hieronder worden gezien.

Sla nu het formulier op en u bent klaar!
EDD Download verbinden met Variabele Prijzen
Bij het verbinden van een product met Variabele Prijzen ziet u een extra bericht onder de dropdown "Verbinden met EDD Download" waarin staat dat de download variaties heeft.

Bij het verbinden van een Download met Variabele Prijzen moet u ook een "Optie"-veld toevoegen aan het formulier.

Zodra het "Optie"-veld op zijn plaats staat, selecteert u een Download uit het dropdownmenu "Product Field Mapping".

Als het product dat u koos variaties heeft, verschijnt er een knop "Laad EDD Opties & Prijzen voor dit Product":

Door op de knop "Laad EDD Opties..." te klikken, worden de prijsvariaties van het geselecteerde Easy Digital Downloads product geladen:

Sla nu het formulier op en u bent klaar.
Geavanceerd: Hoe Gravity Forms Checkout Verbindt met EDD Variaties
Ofwel de Naam van de productvariatie of de Prijs-ID moet hetzelfde zijn als in Easy Digital Downloads.
Verbinden met Variatienaam
De eenvoudigste manier om de Gravity Forms optiekeuzes te verbinden met Easy Digital Downloads prijsvariaties is door ze dezelfde naam te geven. De EDD-namen worden automatisch geladen wanneer u op de knop "Laad EDD Opties & Prijzen voor dit Product" klikt.
Verbinden met Variatie Prijs-ID
Wanneer u variabele prijzen inschakelt in Easy Digital Downloads, gebruik dan de naam van de prijsvariaties.
Als u in plaats daarvan een andere naam wilt gebruiken, gebruik dan het getal dat de positie van de optie vertegenwoordigt, beginnend met één. In het onderstaande voorbeeld zou de variatie "Goed" 1 zijn, "Beter" zou 2 zijn, en "Best" zou 3 zijn.

U kunt in de volgende schermafbeelding zien dat de ingestelde waarden 1, 2 en 3 zijn. ook al zijn de namen anders, het zal worden verbonden omdat die nummers overeenkomen met de EDD-variatieposities.

Veelgestelde vragen
Why are Purchases being marked as “Pending”?
There are a few reasons why a Gravity Forms purchase would be marked as Pending in Easy Digital Downloads.
The Gravity Forms form didn’t include any payment methods.
The status will be set to “Pending” if:
- The total of the order is greater than zero
- The connected Gravity Forms form has no configured method of payment; there is no payment made at the time of submission
If this is the case, then you will need to modify the default payment status to be “Completed.”
Gravity Forms hasn’t “heard back” from the payment processor yet
It can take some time for payment processors to notify a website that a payment has been accepted or rejected. During this time, the purchase will be marked as “Pending” until the notification comes in.
Does Gravity Forms Checkout support subscription payments?
No, at this time subscription payments are not supported with Gravity Forms Checkout. If this feature is important to you, please let us know.
How to define the Customer fields that should be used
If you have a form that has multiple name, email, or address fields, you may want to change which fields are used for the Customer.
In Version 2.0, if your form has multiple fields of those types, you will see a new “EDD Fields” form setting.

From the EDD Fields settings page, choose the field that will be used for the EDD Customer. By default, the first field of its type will be used.
How to redirect to the EDD Payment Confirmation page
If you want to show users an Easy Digital Downloads receipt instead of a Gravity Forms receipt, you can do that by updating the Gravity Forms form confirmations. Here’s how.
While in the form, navigate to Settings → Confirmations.
Hover over “Default Confirmation” and click the “Edit” link.

Change the “Confirmation Type” to “Redirect”. Once it’s set to redirect, update the Redirect URL setting to the Purchase Confirmation page URL from Easy Digital Downloads.

Once you have the redirect URL in place, click “Save Confirmation” and new purchases will now be redirected to the Easy Digital Downloads purchase confirmation page. Users will see a receipt generated by Easy Digital Downloads.
Wijzigingen
How to modify the default payment status
The default status of new orders before payment is applied is “Pending.” If you want to accept payments by default, use the code below:
<?php
add_filter( 'edd_gf_default_status', 'modify_edd_gf_default_status', 10, 2 );
/**
* Modify the default status when there's no status match.
*
* @param string $default Default payment status for EDD ("pending" or "publish") (Default: "pending")
* @param string $status The status of the Gravity Forms entry, set in $entry['payment_status']
*/
function modify_edd_gf_default_status( $default = 'pending', $status = '' ) {
// Set the default status to be Completed/Paid
return 'publish';
}
How to include base product download links when purchasing a product with price variations
Prior to Version 1.3, if a customer purchased a product with variable pricing and the base product also had a download associated with it, they would receive a link to the base product as well as the variable product they bought. In Version 1.3, this was changed so that customers would only receive a link to the option they purchased.
If you would like to restore this functionality, add this code to your theme’s functions.php file:
<?php
add_filter('edd_gf_variable_products_include_base', '__return_true');
