Similar to issue http://drupal.org/node/1119844 rooms reservations can't be removed from cart. Running uc 2.6 and April dev version of Hotel Booking System . Can't remove reservations from cart.

CommentFileSizeAuthor
#5 hotel_booking.panes_.inc_.patch571 bytes_boban

Comments

larowlan’s picture

Hi
Are you running the booking upgrade module?
Are there any upgrades in the cart?
Did you change the installed version of any of the modules after the item was added to the cart?
If so can you access the database?
If so, can you remove the cart items using this query:

DELETE FROM uc_cart_products;

You may need to rename the table to suit your db_prefix if one exists.
That will remove all items - can you then try again and report back?
Unfortunately the items are identified based on nid and the serialized $product->data array, which can be acted on by other modules after loading from the database.

Lee

_boban’s picture

Hi Lee,
I got into the same issue, thought as a problem some where in ubercart.
for your question my quick answers are
Are you running the booking upgrade module? no.
Are there any upgrades in the cart? no.
Did you change the installed version of any of the modules after the item was added to the cart? no.
If so can you access the database? I can acces, if required.......

the error message I am getting when trying to delete room was.
Notice: Undefined index: qty in uc_cart_update_item_object() (line 1555 of /home/boban/public_html/drupal7/sites/all/modules/ubercart/uc_cart/uc_cart.module).

using 7.x-1.0-beta1 with ubercart-7.x-3.0-rc2

larowlan’s picture

Hey, there's a 7.x issue for removing from the cart.
Pretty sure we'd resolved that.

_boban’s picture

Thanks, Lee.
will check with the dev. version.
-boban.

_boban’s picture

StatusFileSize
new571 bytes

it just confuses me,
here is what i did to overcome, the issue.

Aixya’s picture

using 7.x-1.0-dev with ubercart-7.x and Drupal 7.8

I have the same above problem, The above patch works to remove the entry from the shopping cart but kills the checkout and loads it with errors regarding the qty field. Please provide an updated patch or how to get the checkout working with above patch.

F.Y.I I am using a patched 7.x-1.x-dev that fixes the date errors.

Please provide some help as I have to put the site in production mode to start receiving live bookings.

Thanks