Magento how to update product price programmatically
<p>I am trying to update product price programmatically by using this code.</p>

<pre><code>$id = 1;
$product = Mage::getModel('catalog/product')-&gt;load($id);
$product-&gt;setPrice($price);
$product-&gt;setUrlKey(false);
$product-&gt;save();
</code></pre>

<p>but on product list page its showing like this like I have some special price.</p>

<p><a href="https://i.stack.imgur.com/JlkR5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JlkR5.png" alt="enter image description here"></a></p>

<p>When I use <code>var_dump()</code> its showing me changed price in <code>price</code> but in <code>min,max,final</code> still have previous price not the changed one.</p>

<pre><code>["price"]=&gt;string(7) "18.0000"
["final_price"]=&gt;string(7) "16.0000"
["minimal_price"]=&gt;string(7) "16.0000"
["min_price"]=&gt;string(7) "16.0000"
["max_price"]=&gt;string(7) "16.0000"
</code></pre>

<p>I have also tried this code</p>

<pre><code>$product = Mage::getModel('catalog/product')-&gt;load($id);
$product-&gt;setPrice($price);
$product-&gt;setFinalPrice($price);
$product-&gt;setMinimalPrice($price);
$product-&gt;setMinPrice($price);
$product-&gt;setMaxPrice($price);
$product-&gt;setUrlKey(false);
$product-&gt;save();
</code></pre>

<p>but still showing me same result not changing values in <code>final,min,max</code></p>