View Single Post
  #6  
Old 05-06-2015, 03:39 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Navbar on Checkout page

Quote:
Originally Posted by totaltec
Phil,
Do you know how to decorate a class in your own module? If not watch some of my tutorials on the subject. (Link in sig)

That should get you warmed up. After you have your module setup and going you want to decorate the class that Tony referenced above.

Then include this in the code of your decorated class. This should be the only method that you have to define in your class, otherwise the file will be empty except for opening tag, namespace and opening class defintion:

Code:
/** * Return true if checkout layout is used * * @return boolean */ public function isCheckoutLayout() { return false; }
That is basically the code I was trying. Is there something wrong with my namespace maybe?


<?php

namespace XLite\Module\Pmall\PmallSkin\Controller\Customer;

abstract class ACustomer extends \XLite\Controller\AController implements \XLite\Base\IDecorator
{
public function isCheckoutLayout()
{
return false;
}
}
__________________
Ver 5.2.6
Reply With Quote