Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Mail order Template!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-13-2014, 05:31 AM
 
cotedor cotedor is offline
 

Newbie
  
Join Date: Aug 2014
Posts: 7
 

Default Mail order Template!

Hello dear!

Can you show me how change this:

We have this - forum 1 pict.
Need have this - forum 2 pict.
What need do - forum 3 pict.

And a little bit change text in message.
Attached Thumbnails
Click image for larger version

Name:	forum1.png
Views:	153
Size:	80.3 KB
ID:	3868  Click image for larger version

Name:	forum 2.png
Views:	159
Size:	51.0 KB
ID:	3869  Click image for larger version

Name:	forum3.png
Views:	148
Size:	51.0 KB
ID:	3870  
__________________
CDor
Reply With Quote
  #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

The following user thanks tony_sologubov for this useful post:
totaltec (08-13-2014)
  #3  
Old 08-18-2014, 05:19 AM
  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!

Здравствуйте!

Просто повторю свой ответ по-русски, на случай если другим русским пользователям понадобится инструкция.

1) Создайте модуль как описано тут: http://kb.x-cart.com/display/XDD/How+to+create+a+module
2) После этого в вашем Main.php файле пропишите метод runBuildCacheHandler() как описано здесь: http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(Custom...-2.2.ByPHPcode
В нём надо прописать удаление шаблона skins/default/en/order/invoice/parts/bottom.tpl из view lists.

Код вашего метода будет таким:
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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:09 AM.

   

 
X-Cart forums © 2001-2020