After install e-commerce and creating a product, I noticed that upon viewing the product, the price was "$0.00". I thought that was odd and decided to edit the product. In the edit page, the price was also "$0.00". So I checked the database for that product and the price was set to "55.00". So after poking around in the source I found that the product_nodeapi operation for load was modifying the node object rather than returning the additions to the node. So, for all of those affected, here is what will fix the problem.
In the product_nodeapi function (line 535 of product.module)
Change:
case 'load':
if ($product = product_load($node)) {
foreach ($product as $key => $value) {
$node->$key = $value;
}
}
break;
TO:
case 'load':
$product_arr = array();
if ($product = product_load($node)) {
foreach ($product as $key => $value) {
$product_arr[$key] = $value;
}
}
return $product_arr;
break;
Enjoy!
Comments
Comment #1
brmassa commentedHey,
it has been fixed
regards,
massa
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.