Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

setprice not save decimal
 
David Sedeño
Jr. Member
 
Total Posts:  20
Joined:  2008-09-25
 

i’m trying to update the price of products in a php script and it’s save it without decimal value.

The code basically does:

$price=7.50;
$product->load(entity_id);
$poduct->setPrice($price);
$product->save();

The final price is 7.0. Any idea about this?

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
David Sedeño
Jr. Member
 
Total Posts:  20
Joined:  2008-09-25
 

For instance, with $product->setData("price", $price); does the same thing…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top