Can I please have an example of how to change the quantity of an item (SLIP) in the Session? I am using the PHP SDK and do not understand how to send the alter array as the API documentation describes. Thanks!
On the API docs it says to use the alter array. Am I not doing this correctly? I am trying to change the quantity of an item that has already been added to the session.
There is reference to some line_id parameter in docs, but I don't see it in response.
I found old post about items with simple pricing are allowed to set quantity, but can't find where can I check if item is simple pricing or not in UI or API.
Comments
Thanks for reaching out!
Here's an example of how you could modify the quantity (parameter ID) of an item using the PHP SDK.
Hopefully this helps. Please let us know if you have any other questions.
Cheers,
Mitch
Checkfront support team
$url = "session_id=$sessionid&alter[$line_id]=$qty";
$Booking->set('booking/session/', $url);
On the API docs it says to use the alter array. Am I not doing this correctly? I am trying to change the quantity of an item that has already been added to the session.
If I were to set the booking session I'd do something like this:
Hopefully this helps!
Cheers,
Mitch
Checkfront support team