i need some help with product slider
i created 1 category and 2 subcategories
as u can see on image on left slider i want to display only 2 articles that are currently on sale (first subcategory)
Code:
{{block type="joomlart_jmproductsslider/list" name="cate.jmproductsslider1" template="joomlart/jmproductsslider/horizontallist.phtml" title="U Prodaji ! na kioscima" mode="latest" number_items="1" width="237" height="170" catsid="51"}}
on the right side i want to display latest 4 articles which will be on sale soon (second subcategory)
Code:
{{block type="joomlart_jmproducts/list" name="home.jmproducts.list" title="Uskoro na kioscima kiosk ok" template="joomlart/jmproducts/list.phtml" show_desc="no" catsid="52"}}
i set show_desc to no but description still poping up
when i click view all i am getting featured product list
i want when i click view all to display only articles from second category i made
also label is messed up in there.. as u can see on front page one label from article Uskoro 2 is "Novo" and on Uskoro is "Hot" but when u click on view all label on all articles are Hot ..
Thanks
Tolja
6 answers
Actually block on the left in your site is JM Products Slider and block on the right is JM Products List:
http://prntscr.com/4psxhp
To disable description in JM products list by parameter you can use this rule:
Code:
{{block type="joomlart_jmproducts/list" name="home.jmproducts.list" title="Uskoro na kioscima kiosk ok" template="joomlart/jmproducts/list.phtml" max="0" catsid="52"}}
Also, you can refer our guide for details: http://www.joomlart.com/documentatio…uct-list#param
With problem when you click on link "view all", you can fix by editing file \app\design\frontend\default\jm_megamalltemplate\ joomlart\jmproducts\list.phtml, find this rule:
Code:
<a href="<?php echo Mage::getBaseUrl()."jmproducts/viewall/index/type/".$config['mode']; ?>"> <?php echo $this->__('view all');?> </a>
Replace it with:
Code:
<a title="<?php echo Mage::helper('joomlart_jmproducts')->__('View more'); ?>" class="view-more" href="<?php echo Mage::getModel('core/url')->getUrl('jmproducts/viewall/index', Mage::helper('joomlart_jmproducts')->buildParams($config)); ?>"> <?php echo Mage::helper('joomlart_jmproducts')->__('View more'); ?> </a>
And replace file "Data.php" in folder app\code\local\JoomlArt\JmProducts\Helper with file I attached.
With label of product, can you show me link which has this bug on your site?
Hello Lee
max="0" went fine !
and about view all
i replaced code and file as u told me
again i am getting this page "featured product list
view all so posed to show list of all articles in that category ?
like this http://www.boomini.eu/index.php/boom-shop.html
and about label
on jmproduct list it is ok .. but when i click view more all articles there is "hot" ?
Attachment 40206
and i have no idea why 2 articles Yamb mali and Yamb srednji are showing there ?
thanks
Tolja
You can PM me your site’s url, admin and ftp credentials, I’ll detect the root of issue here.
I’ve updated on your site, Please check it.
For more details, I edited some file in folder /app/code/local/JoomlArt/JmProducts, also I backup them in folder JmProducts_bakup.
About label I edited file /app/design/frontend/default/jm_megamall/template/joomlart/jmproducts/viewall.phtml, at line 316, replace this rule:
Code:
<?php if ($labeltype): ?> <span class="<?php echo $labeltype; ?>-label icon-label"><?php echo $labeltype; ?></span> <?php endif; ?>
With:
Code:
<?php if ($labeltype): ?> <?php $_product = Mage::getModel('catalog/product')->load($_product->getId()); $labelname = $_product->getResource()->getAttribute('label')->getFrontend()->getValue($_product); $attribute = $_product->getResource()->getAttribute('label'); if(is_object($attribute)){ $_options= $attribute->getSource()->getAllOptions(true, true); foreach($_options as $option){ if ($option['value'] == $_product->getData("label")){ $class = $option['label']; } } } $labeltype = $class; ?> <span class="<?php echo $labeltype; ?>-label icon-label"> <?php echo $labelname; ?> </span> <?php endif; ?>
Hi Lee
how to display label on category
http://www.boomini.eu/index.php/boom-shop.html
To display label on category page, you can edit file /app/design/frontend/default/jm_megamall/template/catalog/product/list.phtml, before this rule:
Code:
<?php if ($labeltype && $showlabel): ?> <span class="icon-label <?php echo $labeltype; ?>-label"><?php echo $labelname; ?></span> <?php endif; ?>
Add this rule:
Code:
<?php $_product = Mage::getModel('catalog/product')->load($_product->getId()); $labelname = $_product->getResource()->getAttribute('label')->getFrontend()->getValue($_product); $attribute = $_product->getResource()->getAttribute('label'); if(is_object($attribute)){ $_options= $attribute->getSource()->getAllOptions(true, true); foreach($_options as $option){ if ($option['value'] == $_product->getData("label")){ $class = $option['label']; } } } $labeltype = $class; ?> I've just updated it on your site. Please check it.