Quantcast
Channel: Developer's Manual
Viewing all articles
Browse latest Browse all 250

Gravity-Forms :: Version2.9

$
0
0
References:
Support:  3rd Party Integrations are supported through the forum only.  Please post all your questions to: https://forums.clickandpledge.com/forumdisplay.php?f=78

Requirements: 
  • Gravity Forms requires a minimum of WordPress version 3.7+
  • MySQL 5
  • PHP 5
Setup:
  1. http://<your_wordpress_home>/wp-login.php
  2. Make sure that Gravity forms plugin installed and enabled (http://www.gravityhelp.com/documentation/page/Getting_Started)
  3. Download the Click & Pledge plugin through GitHub:  https://github.com/ClickandPledge/WordPress-GravityForms
  4. Copy Click & Pledge plugin (‘gravityforms-cnp’ folder) as downloaded in step 3 in the WordPress Plugin folder as outlined below:
  • <your host root>\wp-content\plugins\
  • Go to ‘plugins->Installed Plugins’ enable the ‘Gravity Forms Click & Pledge’
  • Enable Gravity Form / Click & Pledge
  • Click on ‘Forms->Settings->C&P Payments’ to enter Click & Pledge Credentials like ‘Account ID’, ‘API Account GUID’ and to setup other settings
  • Account ID, API GUID are located at the Click & Pledge administrative portal > Account Info > Profile > API

    Click & Pledge API Information

  • Please follow the documentation here to create a form http://www.gravityhelp.com/documentation/page/New_Form
  • Assigning From to process through Click & Pledge:
    • Click on ‘Forms->Click & Pledge’ to display all available forms.
    • Select the ‘Gravity Form’ to process then click on ‘Save’ button

    Setting SKU for an item:

    SKU's are added for each item and option as a hidden field.  The following example shows how to add SKU to a single item as well as one with options.

    Example 1:  T-Shirt with SKU=abc-123

    Item definition:

    Gravity Forms - T-Shirt

    Note:  In the above example the Field id for the item is shown as:  Field ID 2.

    Add a hidden field:

    GravityForms Hidden Fields

    Set up the hidden field referencing the Field ID as in the Product setting:

    Properties field label:  {SKU}{FIELDID=2} - Please note that all fields are case sensitive - SKU & FIELDID should be in all caps.

    Gravity Forms- T-Shirt- Properties

    The Advanced tab is the value of the SKU.
    Gravity Forms- T-Shirt- Advanced

    Example 2:

    For products with options such as those listed in a pull down menu or a radio button, each option needs to be set up with an SKU.  SKU's may be the same or different.

    Hidden field format:  {SKU}{FIELDID=fid}{OPTION=value}
    • fid = Field ID of the product as listed in the Product listing
    • value = Option's label - each option of a product has to be set up with a unique label and that label needs to be listed to identify the SKU's reference.
    Gravity Forms - T-Shirt with Options

    Each "Choice" requires a separate hidden field.  

    Option: Small

    The field label:  Reference the Field ID of the item as shown in the item's blue label area.
    Gravity Forms- T-Shirt Small

    & the SKU value as set in the Advanced tab.  SKU = abc-small

    Gravity Forms- T-Shirt- Small- Advanced

    Option: Medium
    Gravity Forms - T-Shirt Medium option

    & the SKU value as set in the Advanced tab.  SKU = abc-Medium
    Gravity Forms - T-Shirt option Medium


    Option: Large
    Gravity Forms - T-Shirt Large

    & the SKU value as set in the Advanced tab.  SKU = abc-Large
    Gravity Forms - T-Shirt - Large option advanced

    Custom Questions:

    The following fields are posted as custom questions:
    • Single Line Text
    • Drop Down
    • Number
    • Radio Buttons
    • Paragraph Text
    • Multi Select
    • Checkboxes
    • Hidden
    Gravity Form Custom Questions

    The fields may be placed on the page and configured without any special considerations.  The application will consider all the listed fields as custom questions by default.



    Viewing all articles
    Browse latest Browse all 250

    Trending Articles