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.
On Hotel room view page if we book the particular room on the CART page it gives the NOTICE
Notice: Undefined property: stdClass::$price in hotel_booking_uc_cart_display() line 111 of hotel_booking.ubercart.inc
Comment | File | Size | Author |
---|---|---|---|
#2 | hotel-booking-uc-issue-solution-Feb212013-111.jpg | 69.54 KB | npralhad |
hotel-booking-uc-issue-Feb212013.jpg | 138.96 KB | npralhad |
Comments
Comment #1
npralhad CreditAttribution: npralhad commentedWhile looking at the code of [hotel_booking.ubercart.inc] line #111
There is no variable value for the [$item->price] instead should have been $item->data['total'] as show in the attached screenshot.
Please let me know in case any further assistance required.
Comment #2
npralhad CreditAttribution: npralhad commentedWhile looking at the code of [hotel_booking.ubercart.inc] line #111
There is no variable value for the [$item->price] instead should have been $item->data['total'] as show in the attached screenshot.
Please let me know in case any further assistance required.