how I can or change the link "view all" on front page in cms static block? If I click on this link there not only products of this categorie.
3 answers
Could you please explain a little bit more how you want the link to be changed? When you click on that link, it directs you to a list of Latest, Featured…products, no matter to which categories those products belong.
How you can see on front page in e.g Fashion. When I cklick on view all there is not only fashion there are all products. I should seperate for each category
You can try with following steps:
1) Open the app\design\frontend\default\jm_megamalltemplate\j oomlart\jmproducts\list.phtml file, change:
HTML Code:
<a href="<?php echo Mage::getBaseUrl()."jmproducts/viewall/index/type/".$config['mode']; ?>"> view all </a>
To:
HTML Code:
<a href="<?php echo Mage::getBaseUrl()."jmproducts/viewall/index/type/".$config['mode']."/catid/".$config['catsid']; ?>"> view all </a>
2) Go to the app\code\local\JoomlArt\JmProducts\Block\list.php file, you would see this line of code:
PHP Code:
$this->_config ['catsid'] = $helper->get ( 'catsid', $attributes );
Right below it you add:
PHP Code:
if($catid = $this->getRequest()->getParam('catid')){
$this->_config ['catsid'] = $catid;
}
Hope this helps.