View all link

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

Profile photo of Sherlock 0.00 $tone February 25, 2014
Public

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.

#1
Profile photo of Sherlock 0.00 $tone February 27, 2014
Public

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.

#3

Please login or Register to Submit Answer

Written By

Comments