HI
I have the code below in Commerce_auction.module , function "function commerce_auction_node_view($node, $view_mode, $langcode)"
But when the auction is over, then my product doesn't change the price.

// Update product price.
       var_dump($product);
       $node_wrapper = entity_metadata_wrapper('node', $node);
       $highest_bid  = $node_wrapper->auction_highest_bid->value();
       var_dump($highest_bid);        
       $product_wrapper = entity_metadata_wrapper('commerce_product', $product);
       $product_wrapper->commerce_price = $highest_bid;
       $product_wrapper->save();

Var_dump values :

var_dump($product);

object(stdClass)#129 (16) { ["revision_id"]=> string(2) "14" ["sku"]=> string(2) "14" ["title"]=> string(3) "a13" ["revision_uid"]=> string(1) "1" ["status"]=> string(1) "1" ["log"]=> string(0) "" ["revision_timestamp"]=> string(10) "1353442069" ["data"]=> bool(false) ["product_id"]=> string(2) "14" ["type"]=> string(19) "typ_produktu_aukcji" ["language"]=> string(0) "" ["uid"]=> string(1) "1" ["created"]=> string(10) "1353442069" ["changed"]=> string(10) "1353442069"
["commerce_price"]=> array(1) { ["und"]=> array(1) { [0]=>
array(3) { ["amount"]=> string(5) "40000" ["currency_code"]=> string(3) "PLN" ["data"]=> array(1) { ["components"]=> array(0) { } } } } } ["rdf_mapping"]=> array(0) { } }

var_dump($highest_bid);

array(3) { ["amount"]=> string(5) "11100" ["currency_code"]=> string(3) "PLN" ["data"]=> array(1) { ["components"]=> array(0) { } } }

Where is the error?