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

Khow i can modify subject.twig in e-mail template?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-23-2016, 02:25 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Question Khow i can modify subject.twig in e-mail template?

Good day! Please, help me

I need to change the file \skins\mail\common\common\subject.twig
I copy this file to \skins\MySkin\mail\common\common\subject.twig... change it there, reboot x-cart... and don't see the changes (((

what's my mistake? thanks!
__________________
my wife's shop
Reply With Quote
  #2  
Old 11-23-2016, 04:01 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Khow i can modify subject.twig in e-mail template?

Did you enable MySkin directory via the getSkins() method in your module's Main.php file?

Also, what is the base theme? Is it the standard theme, or Crisp White, or other one?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 11-23-2016, 05:02 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Default Re: Khow i can modify subject.twig in e-mail template?

Skin "MySkin" work property a long time ago, and many *.twig files correctly replaced *.twig files in base x-cart 5.3 theme (skins\customer\ folder).

in "MySkin" i replace parts for mailings too - put my *.twig files in skins\MySkin\mail\ folder. All work OK.

Problem only with this one file (((
__________________
my wife's shop
Reply With Quote
  #4  
Old 11-23-2016, 06:10 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Khow i can modify subject.twig in e-mail template?

What is your getSkin() method?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 11-23-2016, 11:55 PM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Default Re: Khow i can modify subject.twig in e-mail template?

Quote:
Originally Posted by qualiteam
What is your getSkin() method?
PHP Code:
public static function getSkins()
    {
        return array(
            \
XLite::ADMIN_INTERFACE     => array('MaayaSkin/admin'),
            \
XLite::CUSTOMER_INTERFACE  => array('MaayaSkin/default'),
            \
XLite::MAIL_INTERFACE      => array('MaayaSkin/mail'),
        );
    } 
for example, i put bottom.address.shipping.twig in skins/MaayaSkin/mail/common/order/invoice/parts folder, it works ok.
__________________
my wife's shop
Reply With Quote
  #6  
Old 11-26-2016, 12:39 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 81
 

Default Re: Khow i can modify subject.twig in e-mail template?

no tips? ((( I have to hard change this file in the default template....
__________________
my wife's shop
Reply With Quote
  #7  
Old 12-07-2016, 03:04 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Khow i can modify subject.twig in e-mail template?

I'm not sure, but I would try placing the file into skins/MaayaSkin/common/common/... directory and adding it to getSkins() module:
PHP Code:
public static function getSkins()
    {
        return array(
            \
XLite::ADMIN_INTERFACE     => array('MaayaSkin/admin'),
            \
XLite::CUSTOMER_INTERFACE  => array('MaayaSkin/default'),
            \
XLite::MAIL_INTERFACE      => array('MaayaSkin/mail'),
            \
XLite::COMMON_INTERFACE  => array('MaayaSkin/common'),
        );
    } 
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 11:27 AM.

   

 
X-Cart forums © 2001-2020