Note that there are some explanatory texts on larger screens.

plurals
  1. POBundle Product not visible at frontend after upgrading to 1.7.0.1
    text
    copied!<p>Bundle product is not visible at the front end maybe due to js issue, after upgrading from 1.6 to 1.7.0.1</p> <p>debugging with firebug i found the following js error</p> <pre><code>&lt;script type="text/javascript"&gt; var optionsPrice = new Product.OptionsPrice( Fatal error: Call to undefined method Mage_Bundle_Model_Product_Price::getBasePrice() in /var/www/vhosts/stage.planetjill.com/httpdocs/app/code/core/Mage/Bundle/Model/Product/Price.php on line 117 &lt;/script&gt; </code></pre> <p>the method in price.php</p> <pre><code> public function getFinalPrice($qty = null, $product) { if (is_null($qty) &amp;&amp; !is_null($product-&gt;getCalculatedFinalPrice())) { return $product-&gt;getCalculatedFinalPrice(); } $finalPrice = $this-&gt;getBasePrice($product, $qty); //$finalPrice = $product-&gt;getPrice(); $product-&gt;setFinalPrice($finalPrice); Mage::dispatchEvent('catalog_product_get_final_price', array('product' =&gt; $product, 'qty' =&gt; $qty)); $finalPrice = $product-&gt;getData('final_price'); $finalPrice = $this-&gt;_applyOptionsPrice($product, $qty, $finalPrice); $finalPrice += $this-&gt;getTotalBundleItemsPrice($product, $qty); $product-&gt;setFinalPrice($finalPrice); return max(0, $product-&gt;getData('final_price')); } </code></pre> <p>if you see the commented line </p> <blockquote> <p>//<strong>$finalPrice = $product->getPrice();</strong></p> </blockquote> <p>which was used in magento 1.6. If i use this line in place of</p> <blockquote> <p><strong>$finalPrice = $this->getBasePrice($product, $qty);</strong></p> </blockquote> <p>the bundle product is now visible but the price as configured is always set to 0 and addtocart button breaks.</p> <p>Any solutions?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload