Auto Processing (via Pay Pal)

Home Forums Ticket Products Event Tickets Plus Auto Processing (via Pay Pal)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #748498
    Darren
    Participant

    Hi there, I canโ€™t get wootickets to auto process payments from Pay pal. I have added the identity token, setup IPN and still no luck. Please help!

    #748958
    Barry
    Member

    Hi Darren!

    So essentially you want orders to automatically complete, is that correct and does this help if so?

    #749090
    Darren
    Participant

    That is correct! Once a customer successfully purchases a ticket via PayPal it needs to auto complete and send them a ticket. At the moment it’s not doing this.

    #749277
    Barry
    Member

    OK – and the proposed solution (that I linked to) doesn’t solve this?

    If so it may be more appropriate to speak to our esteemed colleagues across at WooThemes: this is really something that happens at WooCommerce level, WooCommerce Tickets has no real control over the order flow.

    (You can bear this out by creating a test product – unrelated to tickets – and then running through a test purchase.)

    #750253
    Darren
    Participant

    That worked a charm thank you, thank you Barry ๐Ÿ™‚
    – For others with this issue, simple solution is copy this into your theme functions.php file (EXERCISE CAUTION WHEN OVERRIDING CODE)

    /**
    * Auto Complete all WooCommerce orders.
    * Add to theme functions.php file
    */

    add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
    function custom_woocommerce_auto_complete_order( $order_id ) {
    global $woocommerce;

    if ( !$order_id )
    return;
    $order = new WC_Order( $order_id );
    $order->update_status( ‘completed’ );
    }

    #750546
    Barry
    Member

    Glad that helped ๐Ÿ™‚

    EXERCISE CAUTION WHEN OVERRIDING CODE

    Definitely: it’s always wise to be cautious – especially if you are using a theme which is likely to receive updates that might wipe any changes to functions.php. In cases like this, you could always consider make this change within a child theme functions.php file or indeed you could set it up within a plugin of its own.

    At any rate, I’ll go ahead and close this thread as it looks like you’re all sorted – but if we can help with anything else please don’t hesitate to create a new thread and one of the team will be only too happy to assist ๐Ÿ™‚

    Last but not least, we’re always keen to hear people’s thoughts on The Events Calendar and if you’d like to leave a note about your experiences with the plugin so far over on our plugin review page we’d love to read it. Thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Auto Processing (via Pay Pal)’ is closed to new replies.