Joseph

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Joseph
    Participant

    Thanks Geoff & Nico.

    This was low on my client’s list of priorities and they wanted to launch the site, so we have launched as-is for now. They are also more interested in waiting for the new WooTickets with attendee meta data; if we’re going to be rolling out to that when it comes out, they don’t see a point in spending time refining a workaround.

    However, I’d still be interested in troubleshooting this instance when I have time. I will need to dupe the site to a test server to make changes and I may not get to it until next week, but I will keep you informed.

    J

    Joseph
    Participant

    Hi Nick,

    Sorry, I got caught up in some other work. I still need to try commenting out the code to test. Alternatively I may try adding the code to complete the automatic orders within the same function to see if this makes a difference.

    In response to your latest comment, I use an additional plugin to automatically complete virtual orders, so I suppose there’s room for error there as well (even though the orders are being completed properly).

    However, you mention you’re not seeing the automated orders being created – correct? This is strange. I am definitely seeing the automated orders being created (and completed) in my system using only the code above.

    It may take me a little bit to get time to try this so I appreciate your patience and attentiveness.

    J

    • This reply was modified 10 years, 6 months ago by Joseph.
    Joseph
    Participant

    This reply is private.

    • This reply was modified 10 years, 6 months ago by Joseph. Reason: pasted wrong code first time
    Joseph
    Participant

    Hi Nick,

    I’ll post the code in a private reply next. I just wanted to make it really clear that I’m not asking for help with my custom code; the code is working. It’s the Events Calendar WooTickets plugin that is (apparently) no longer tracking orders and populating the attendee lists with that information.

    In my previous forum query, it was confirmed by support that the above was the behavior. Essentially that I could, even manually, complete a system order for a user, and so long as there was a completed order in WooCommerce with a ticket/product in the order, that user would appear as an attendee for the associated event.

    Is this not the case?

    Thanks for your help.

    J

    Joseph
    Participant

    Hello!

    Reverting to the old PayPal settings had no effect.

    This was working properly prior to migration to the live server, but it was also working after launch so it’s unlikely that it’s the server or server settings.

    Is it still the case that the attendee list should be populated dynamically based on completed orders within WooCommerce? Because, as I said, I never actually customized WooTickets – I automated the orders. When it was working, as soon as the orders were created and completed as the appropriate users, those users would appear in the attendee list of the event associated with the ticket/product in the purchase.

    I can confirm that the orders are being processed properly – or at least, the correct ticket/product is being purchased and the orders are appearing in the WooCommerce order list with the correct customer assigned. Everything is working as before except the attendee list is not populating based on the completed orders.

    Thanks for your help.

    Joe

    in reply to: Programmatically register user for event #1003517
    Joseph
    Participant

    For anyone watching this thread, I’ve completed my task here.

    I’ve used woocommerce_payment_complete to loop through coupons, grab users, and open/complete new orders for the same item(s) in the originating order. Once these orders are complete within WooCommerce, the user is properly “enrolled” for that event in the attendee list.

    Joey

    in reply to: Programmatically register user for event #1003499
    Joseph
    Participant

    Hi Geoff,

    Thanks for your response. Just to make sure I’m understanding correctly, essentially: if I wanted the attached users to be added as attendees, I would need to loop through the coupons on a given order after payment is processed for that order, then generate and complete orders for each coupon/user for that product/ticket. Once these automatic orders are completed in WooCommerce, the attendee will appear in the list for the event corresponding to that product/ticket. Correct?

    Thanks!

    Joe

Viewing 7 posts - 1 through 7 (of 7 total)