Still not patched

anschinsan@drupal.org's picture
Offline
Joined: 02/04/2010
Juice: 2
Still not patched

It would be very nice, to patch this in the ubercart core - as one has to hack core to make it work.

It's in /uc_store/includes/uc_price.inc
line 155 and 156 and should look like this

      $values['formatted-original'] = $handlers['formatter']($values['original'], $options, $context);
      $values['formatted'] = $handlers['formatter']($values['altered'], $options, $context);

instead of

      $values['formatted-original'] = $handlers['formatter']($values['original'], $options);
      $values['formatted'] = $handlers['formatter']($values['altered'], $options);

Adding the $context variable had no side effects for the existing formatter handler uc_store_price_handler_format in my test environment.

Thanks for your work!
Anschinsan

Usage of a price formatter By: fmueller (4 replies) Thu, 05/14/2009 - 10:26