I patched the module so I could add the "From price" field, and now I get this error when the View attempts to be displayed:

Fatal error: Call to undefined function uc_price() in /hanlovelights/sites/all/modules/uc_hotel/hotel_booking/views/hotel_booking_handler_field_from_price.inc on line 22

Comments

mattcasey’s picture

Status: Active » Needs review

I compared the uc_product modules from D6 to D7, and instead of uc_price, it now uses uc_currency_format. Here's the new function I have that works in hotel_booking_handler_field_from_price.inc:

class hotel_booking_handler_field_from_price extends views_handler_field_numeric {

  function render($values) {
    $price = $this->get_value($values);
    if ($price == 0) {
      return 0;
    }
    $price = uc_currency_format($this->get_value($values));
    return $price;
  }

}
larowlan’s picture

Status: Needs review » Fixed

Fixed in slightly different fashion in dev version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.