• Resolved oturia

    (@oturia)


    Hello, there. I am on the latest version of Gravity Forms and have tried both the latest stable and beta versions of this plugin and have not been able to resolve my issue.

    Custom Post Taxonomies are saved when I have PayPal add-on installed but choose to have the post published before payment is received.

    If I choose to have the post created after payment has been received, all meta fields, title, excerpt and featured image save but the taxonomy does not.

    I am using a dropdown for the taxonomy and have it populating with the taxonomy under Advanced.

    I have tried with and without custom values.

    I have also tried setting the custom taxonomy in a custom function and it’s not working.

    This seems to me to be an issue with the PayPal post not sending the custom taxonomy through, but I was asked by GF to also post this issue here to see if you had any insight.

    Thanks in advance for your help!

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

Viewing 1 replies (of 1 total)
  • Thread Starter oturia

    (@oturia)

    Just in case anyone wants the solution, you need to set the post to a draft before it goes to PayPal, which will allow the custom taxonomies to be assigned. Then you would use the hook for gform_paypal_fulfillment for changing the post status.

    Add to the functions.php file:

    function update_post_status_after_payment($entry, $config, $transaction_id, $amount) {
    
        // get post_id from $entry
        $post_id = $entry['post_id'];
        change_post_status($post_id,'publish');
    }
    add_action("gform_paypal_fulfillment", "update_post_status_after_payment", 10, 4);
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Gravity Forms Custom Post Types] Custom Post Taxonomy PayPal Addon’ is closed to new replies.