Hi,
I am trying to load {{block type="joomlart_jmproducts/list" title="Latest product" name="hp-latest-products" mode="latest"}} and get latest and featured products to display. However, instead of displaying products, I’m getting the following error message:
Thanks
Edit: I am on Magento 1.8.1 CE and I am using the latest version of your module, JM Product List Extension 1.3.0
2 answers
Our JM products depend on JM base theme, to get it fixed please open the file app\design\frontend\default\defaulttemplate\jooml art\jmproducts\list.phtml
On line 57, please replace this code:
Code:
<?php $_productCollection=$this->getLoadedProductCollection(); $_helper = $this->helper('catalog/output'); $baseconfig = Mage::helper("jmbasetheme")->getactiveprofile(); if ($baseconfig) : $productlistimagewidth = isset($baseconfig["productlistimagewidth"])&&$baseconfig["productlistimagewidth"]?$baseconfig["productlistimagewidth"]:180; $productlistimageheight = isset($baseconfig["productlistimageheight"])&&$baseconfig["productlistimageheight"]?$baseconfig["productlistimageheight"]:180; $productgriddeslenght = isset($baseconfig["productgriddeslenght"])&&$baseconfig["productgriddeslenght"]?$baseconfig["productgriddeslenght"]:0; $productgridimageheight = isset($baseconfig["productgridimageheight"])&&$baseconfig["productgridimageheight"]?$baseconfig["productgridimageheight"]:180; $productgridimagewidth = isset($baseconfig["productgridimagewidth"])&&$baseconfig["productgridimagewidth"]?$baseconfig["productgridimagewidth"]:180; $showlabel = isset($baseconfig["productgridimagewidth"])&&$baseconfig["productgridimagewidth"]?$baseconfig["showlabel"]:0; else : $productlistimagewidth = 180; $productlistimageheight = 180; $productgriddeslenght = 0; $productgridimageheight = 180; $productgridimagewidth = 180; $showlabel = 0; endif; ?> <?php $randomid = rand(); ?> <script type="text/javascript" src="<?php echo $this->getSkinUrl('joomlart/jmproducts/js/jmproducts.js') ?>"></script> <script type="text/javascript"> ja = jQuery.noConflict(); ja(document).ready(function() { ja("ul#productsgrid"+<?php echo $randomid; ?>).jmproduct({ qtytable:<?php echo $config['qtytable']; ?>, qtytableportrait:<?php echo $config['qtytableportrait']; ?>, istable:<?php echo $config['istable']; ?>, qtymobile:<?php echo $config['qtymobile']; ?>, qtymobileportrait:<?php echo $config['qtymobileportrait']; ?>, ismobile:<?php echo $config['ismobile']; ?>, }); }); </script>
With:
Code:
<?php $_productCollection=$this->getLoadedProductCollection(); $_helper = $this->helper('catalog/output'); ?>
Thanks, Lee Seoki! This worked prefectly.
This question is now closed