php - Magento showing simple price as grouped -
i've migrated magento shop server php 5.3 1 one 5.4. pricing off. in list/grid mode seems showing grouped prices instead of simple price (e.g. beginning price instead of price) using getpricehtml($_product, true);.
on product detail page doesn't show price @ al using gettirepricehtml();
when use old (default) template shows prices correctly, while there no difference between 2 codes requesting price.
if looked on magento misconfigured, seems ok, , products displayed simple products in admin product management.
i have tried reimport database , files, , have been searching days try , solve this. there hasn't been solution yet, hope of may know something.
code of list.phtml:
<?php /** * magento * * notice of license * * source file subject academic free license (afl 3.0) * bundled package in file license_afl.txt. * available through world-wide-web @ url: * http://opensource.org/licenses/afl-3.0.php * if did not receive copy of license , unable * obtain through world-wide-web, please send email * license@magentocommerce.com can send copy immediately. * * disclaimer * * not edit or add file if wish upgrade magento newer * versions in future. if wish customize magento * needs please refer http://www.magentocommerce.com more information. * * @category design_default * @package mage * @copyright copyright (c) 2008 irubin consulting inc. dba varien (http://www.varien.com) * @license http://opensource.org/licenses/afl-3.0.php academic free license (afl 3.0) */ ?> <?php /** * product list template * * @see mage_catalog_block_product_list */ ?> <?php $_productcollection=$this->getloadedproductcollection() ?> <?php if(!$_productcollection->count()): ?> <div class="note-msg"> <?php echo $this->__('there no products matching selection.') ?> </div> <?php else: ?> <?php echo $this->gettoolbarhtml() ?> <?php // list mode ?> <?php if($this->getmode()!='grid'): ?> <?php $_iterator = 0; ?> <div class="listing-type-list catalog-listing"> <?php foreach ($_productcollection $_product): ?> <div class="listing-item<?php if( ++$_iterator == sizeof($_productcollection) ): ?> last<?php endif; ?>"> <?php // product image ?> <div class="product-image"> <a href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($_product->getsmallimagelabel()) ?>"> <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlescape($this->getimagelabel($_product, 'small_image')) ?>" title="<?php echo $this->htmlescape($this->getimagelabel($_product, 'small_image')) ?>" /> </a> </div> <?php // product description ?> <div class="product-shop"> <h5 class="product-title"><a href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($_product->getname()) ?>"><?php echo $this->htmlescape($_product->getname())?></a></h5> <?php echo $this->getpricehtml($product, true) ?> <?php if($_product->issaleable()): ?> <button class="form-button" onclick="setlocation('<?php echo $this->getaddtocarturl($_product) ?>')"><span><?php echo $this->__('add cart') ?></span></button> <?php else: ?> <div class="out-of-stock"><?php echo $this->__('out of stock') ?></div> <?php endif; ?> <div class="moreinfo"> <a class="form-button" href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($_product->getsmallimagelabel()) ?>"> meer informatie </a> </div> <div class="clear"></div> </div> </div> <?php endforeach; ?> </div> <?php else: ?> <?php // grid mode ?> <div class="listing-type-grid catalog-listing"> <?php $_collectionsize = $_productcollection->count() ?> <?php $_columncount = $this->getcolumncount(); ?> <?php $i=0; foreach ($_productcollection $_product): ?> <?php if($i++%$_columncount==0): ?> <ol class="grid-row"> <?php endif; ?> <li class="item"> <p class="product-image"> <a href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($this->getimagelabel($_product, 'small_image')) ?>"> <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135, 135); ?>" width="135" height="135" alt="<?php echo $this->htmlescape($this->getimagelabel($_product, 'small_image')) ?>" title="<?php echo $this->htmlescape($this->getimagelabel($_product, 'small_image')) ?>" /> </a> </p> <h5 class="product-title"><a href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($_product->getname()) ?>"><?php echo $this->htmlescape($_product->getname()) ?></a></h5> <?php echo $this->getpricehtml($_product, true) ?> <?php print_r($_product); ?> <?php if($_product->issaleable()): ?> <button type="button" class="form-button" onclick="setlocation('<?php echo $this->getaddtocarturl($_product) ?>')"><span><?php echo $this->__('add cart') ?></span></button> <?php else: ?> <div class="out-of-stock"><?php echo $this->__('out of stock') ?></div> <?php endif; ?> <div class="moreinfo"> <a class="form-button" href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->htmlescape($_product->getsmallimagelabel()) ?>"> meer informatie </a> </div> </li> <?php if($i%$_columncount==0 || $i==$_collectionsize): ?> </ol> <?php endif; ?> <?php endforeach ?> <script type="text/javascript">decorategeneric($$('.grid-row'), ['last', 'odd', 'even']);</script> </div> <?php endif; ?> <?php echo $this->gettoolbarhtml() ?> <?php endif; ?>
i've solved eventually. i've overlooked 1 file called price.html in template folder.
by copying file template i've corrected problem.
Comments
Post a Comment