Hello,
Thanks for your message. What you described is actually the expected behavior, because as soon as you add some rental items to the cart, the rental start and end dates will be locked into the PHP Session. If you wanted to change the rental dates, then you would need to empty the cart.
This is because with VikRentItems it is possible to book multiple rental items or multiple units of different items within the same rental order. However, the rental start and end dates are tied to the rental order itself, not to the various rental items. For example, with one single rental order you could book 2 units of an item called “Mountain Bike XL” and 1 unit of an item called “Electric City Bike”, but all rental items in the cart will be booked for the same dates and times.
For this reason, as soon as you start booking an item, the rental dates (start/from and end/to) will be locked and it won’t be allowed to change them until you empty the cart from the reservation summary page, which is the last step of the booking process. There’s also a “summary” widget that can be published on your website to take the users directly to the summary page where the button to empty the cart or to change the rental dates will be displayed.
We hope this is helpful! We also invite you to get in touch with our team through our website should you have any technical questions.
The VikWP Team