View Single Post
  #2  
Old 08-13-2014, 12:15 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Mail order Template!

Hi!

In this case, you need to write a simple module.
1) Create a module according to http://kb.x-cart.com/display/XDD/How+to+create+a+module
2) In your Main.php file create the runBuildCacheHandler method as described here:
http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(Custom...-2.2.ByPHPcode

You runBuildCacheHandler will look like this:

PHP Code:
public static function runBuildCacheHandler()
{
    
parent::runBuildCacheHandler();
 
    \
XLite\Core\Layout::getInstance()->removeTemplateFromLists('order/invoice/parts/bottom.tpl');


__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote