Bug- Empty_cart empties customer cart, but does not clear the Appointment cart

Issue #550 resolved
Valentina R created an issue

WC APOINTMENTS VERSION: 4.5.11
WC CLASS: https://docs.woocommerce.com/wc-apidocs/class-WC_Cart.html
WC FUNCTION: WC()->cart->empty_cart();

TEST: a) Add several items to the cart, and then b) run ->empty_cart() function in WooCommerce.
CUSTOMER: All item appear to be removed from cart.
VERIFY: Customer can not select a time slot, even though the cart is now empty.

BACKEND: Appointments > All Appointments > In Cart > (Several cart items remain even though cart was emptied.)

When removing items from the cart manually, they become available to book again. When removing items from the cart using WooCommerce class, items are remove from the frontend, but remain in the backend cart until they timeout (one hour).

Image is attached in the ticket below.

Reported here: https://bookingwp.com/forums/topic/bug-empty_cart-empties-customer-cart-but-does-not-clear-the-appointment-cart/

Comments (1)

  1. Log in to comment