Fatal error with Iphone template

Hello Team!!

I has change the website design to see iphone default magento template in Configuration -> Design -> Theme, adding exceptions on Templates, Skin, Design and Default fields.

When save this settings i have the following error in mobile browser:

"Fatal error: Call to a member function isHomepage() on e non-object in …/app/design/frontend/default/jm_rasite/template/catalog/navigation/top.phtml on line 40"

Any help or suggestion??

Regards,

Richardmax

1 answer

Profile photo of thangnn1510 0.00 $tone June 3, 2011
Public

You should copy top.phtml from app/design/frontend/default/jm_rasite/template/catalog/navigation/ to app/design/frontend/default/iphone/template/catalog/navigation/ and remove this code:

Code:

<?php if ($tmpTools->isHomepage()===FALSE) 
			 {
					$homecls='class="nav-home"';
			 } else {
					$homecls='class="nav-home active"';
			 }
				?>

It will help.

#1

Please login or Register to Submit Answer

Written By

Comments