Multi-buy creates \uc_store\includes\uc_price.inc on line 85 in Ubercart RC3

Project:Multi-buy
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
uc_multibuy

I think the problem is related to the following issue...

http://www.ubercart.org/forum/bug_reports/10731/fatal_error_unsupported_...

Same problem here and I tracked the "uc_product_price" line of code to the Multi-buy module on line 107. Any idea of what this code should be changed to in order to get the module to work?

Can this be updated?

Thanks

Version: 
Ubercart 2.0-RC1
mkrapf's picture
Offline
Joined: 04/13/2009
Juice: 34
This fixed the issue I was having since RC3

Removed line 107 from uc_multibuy.module:

$data['price'] = array('#value' => theme('uc_product_price', $node->sell_price, 'sell-price', TRUE), '#cell_attriubtes' => array('nowrap' => 'nowrap'));

Replaced with:

$context['subject']['field'] = 'sell_price';
$context['class'] = array('sell-price');
$data['price'] = array('#value' => uc_price($node->sell_price, $context, array('label' => FALSE)), '#cell_attriubtes' => array('nowrap' => 'nowrap'));

No errors and price is displayed