Create Appointment after a payment
Just for woocommerce because i dont know how much will be affected on others connections, but, on woocommerce, if the appointment during more of 15 minutes with status pending this will be clear on EA and Woocommece (with a popup countdown notification like the websites of cinemas that sell the tickets), if the client try to make a payment after this time woocommerce says “your cart is empty”. I don’t know if that is possible but i think that could be work. Thanks for your reply!
In other sence but has relation with the before question, when the client is logged can make unlimited appointments even if the hold appointment is “1”. I’ve been reading that you say than that block just work if the user is logout, but in this case i need that the client will be logged with their account to complete the payment. I block woocommerce with max item for client with “1”, if the client try back and select another date, is created on EA but is not add to cart, prevent double charges.
Woocommerce has this option, but i am forcing this with this code on funtions.php
add_filter( ‘woocommerce_add_cart_item_data’, ‘mk_only_one_item_in_cart’, 10, 1 );
function mk_only_one_item_in_cart( $cartItemData ) {
wc_empty_cart();
return $cartItemData;
}
Maybe a filter like that, working on EA prevent that the client create unlimited appointments blocking differents dates.
I’m not so good programming on php but maybe can help you with the logic of this trouble.
Thanks a lot Nikola.
Hi, we can instead of pending put status to reservation as option to Extension. Those reservations are hold up to 5 minutes and cleared after that time period if user hasn’t completed payment. Can you please tell if that will solve problem that you have?
Best regards,
Nikola
I tried this already and waited more than 5mins and slot never became free again. Maybe I did something wrong.
Here’s what I did but didn’t worked
Config in settings :
1. appointment default status set to confirmed.
2. Auto reservation option checked on.
Here’s what I need :
Scenario of a successful payment:
1.Client choose date and time and click submit.
(Result : Slot is blocked and appointment status is set to reservation for a maximum of 5min timeframe).
2. Client is redirected to Cart and do the checkout within the 5mins.
(Result : Slot remain blocked and appointment status change to confirmed)
Scenario of an unsuccessful payment:
1.Client choose date and time and click submit.
(Result : Slot is blocked and appointment status is pending for a maximum of 5mins timeframe)
2. Client is redirected to Cart but don’t complete the payment within 5min .(ps: probably because he left the cart)
(Result : After 5 mins timeframe, slot becomes free and appointment is deleted or canceled.)
Thanks Nik. Appreciate your help!
Sorry my last part was wrong.
Last paragraph, Line 3, I meant :
1.Client choose date and time and click submit.
(Result : Slot is blocked and appointment status is ****reservation**** for a maximum of 5mins timeframe)
Ok thanks! Do you have an ETA for the new version release ?
It will be released today 🙂
Best regards,
Nikola
Wow that was fast. Thanks Nik! Can’t wait to try this out. ?
Hi Nik, we are experiencing this issue below
Config in settings :
1. appointment default status set to reservation.
2. Auto reservation option checked off.
Situation :
Client choose date and time and click submit.
(Result : Slot is blocked and appointment status is set to reservation for a maximum of 5min timeframe).
***this is working perfectly. If they don’t checkout and pay within 5min, appointment is deleted (not canceled btw). It is simply deleted which is ok with us. Would’ve been better if status was changed to canceled it’s ok for now.
Problem : when client do the checkout and pay within the 5mins, the appointment status remain “reservation” and do not change automatically for “confirmed” and get deleted after 5mins.
In other words everything is perfect when a client don’t complete the checkout but for a client that do pay and checkout, the reservation doesn’t confirm and get deleted.
Thanks!
Thanks for update I will close this thread 🙂
Best regards,
Nikola
See comment above (1 week ago) :
Hi Nik, we are experiencing this issue below
Config in settings :
1. appointment default status set to reservation.
2. Auto reservation option checked off.
Situation :
Client choose date and time and click submit.
(Result : Slot is blocked and appointment status is set to reservation for a maximum of 5min timeframe).
***this is working perfectly. If they don’t checkout and pay within 5min, appointment is deleted (not canceled btw). It is simply deleted which is ok with us. Would’ve been better if status was changed to canceled it’s ok for now.
Problem : when client do the checkout and pay within the 5mins, the appointment status remain “reservation” and do not change automatically for “confirmed” and get deleted after 5mins.
In other words everything is perfect when a client don’t complete the checkout but for a client that do pay and checkout, the reservation doesn’t confirm and get deleted.
Thanks!
Please login or Register to submit your answer