• Resolved Mayank Bhalodiya

    (@mayankbhalodiya)


    Hi,

    I need to know what are the parameters to use to book an appointment using ajax.

    Currently, I am passing below parameters but still not able to add to cart.

    $new_booking_data = array(
    ‘_year’ => ‘2018’,
    ‘_month’ => ‘9’,
    ‘_day’ => ’27’,
    ‘_date’ => ‘2018-9-27’,
    ‘date’ => ‘September 27, 2018’,
    ‘_time’ => ’20:00′,
    ‘time’ => ‘8:00 pm’,
    ‘_qty’ => ‘1’,
    ‘_start_date’ => ‘1538078400’,
    ‘_end_date’ => ‘1538082000’,
    ‘_all_day’ => ‘0’,
    ‘_cost’ => ‘0’,
    ‘_booking_id’ => ‘400’,
    );

    $response = $woocommerce->cart->add_to_cart($productid);

    Please check that values are passing correctly or not? your support will be very helpful to complete my task.

    Regards,
    Mayank.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Booking’ is closed to new replies.