Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the cart page, I had removed a booking and noticed that the upgrade and addon product listed there did not have a remove box to click.
Comment | File | Size | Author |
---|---|---|---|
bugreport.jpg | 226.98 KB | weblance |
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedThey are not supposed to.
Since they can be applied to specific dates, and what is listed in the cart does not necessarily reflect that, a simple remove this item checkbox would not work for these. They are child elements of the booking item, essentially "attributes".
They can be removed by using the "Edit Upgrade/Addon Items" link in the booking details pane, or by clicking on their names either in the cart or booking details pane, either of these links back to the addons page, where quantities can be adjusted.
However, it appears there might still be a bug you're reporting here...
Removing the parent booking item should automatically remove all the associated addon items..
I noticed this last week as well, but it only happened one time and then I wasn't able to repeat it. I'll take another look at the remove functions and see if I can't figure out the issue.
Comment #2
willvincent CreditAttribution: willvincent commentedComment #3
weblance CreditAttribution: weblance commentedFYI: I am not able to reproduce this error. I have done this 7-8 times now.
Comment #4
willvincent CreditAttribution: willvincent commentedThat was my experience with it as well.
I'll leave the issue status as is and look into it more in the future. I have an idea of how I might be able to modify the deletion code to better prevent this.
But, it seems to be a fluke that is extremely unlikely to occur
Comment #5
weblance CreditAttribution: weblance commentedOk, so I am able to reproduce this now with some regularity.
However, I can only help to narrow down the possibilities for you. I don't know which of these circumstances is the cause, I just know that I get the bug when I do the following:
4 or more distinct reservations for one day or more in cart
1 add-on purchased for all days of reservation
reservations sits in cart for more than a day without being checked out
delete all reservations
hope there is something there that helps.