Needs review
Project:
Ubercart CCK currency
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2011 at 20:37 UTC
Updated:
28 Feb 2011 at 08:11 UTC
Hi there,
when uc tax is used,
on /cart/checkout it calculate tax from the default price.
I have solved it by setting price in hook_nodapi .
/**
* Implementation of hook_nodeapi().
*/
function uc_cck_currency_nodeapi(&$node, $op) {
if ($op == 'load' && $node->sell_price) {
if (($field_name = uc_cck_currency_get_user_currency()) && ($node->{$field_name}[0]['value'])){
$node->sell_price = $node->{$field_name}[0]['value'];
}
}
}
Comments
Comment #1
dejan.maric.max commentedupdate: no need to load values on node edit form