X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Want to add a list of FAQ in the customer email order invoice but it won't show (https://forum.x-cart.com/showthread.php?t=76804)

Hallsons 02-01-2019 10:15 AM

Want to add a list of FAQ in the customer email order invoice but it won't show
 
Hello,

I am trying to add a list of frequently asked questions to the bottom of my customer order confirmation emails but for the life of me can't figure out how to get it to show up in the html emails. My new language item shows up in simple text emails.

I am using light responsive template, and have edited the skin file found in skin/light_responsive/mail/html order_customer.tpl I added my new language field {$lng.order_customer_faq} here at the bottom, but nothing shows up.

{include file="mail/html/order_invoice.tpl"}

{$lng.order_customer_faq}

{include file="mail/html/signature.tpl"}

Is there something else I need to do to make it show up, or am I editing the wrong file?

Thank you for any help.

Chris

Hallsons 02-02-2019 02:47 PM

Re: Want to add a list of FAQ in the customer email order invoice but it won't show
 
While I still don't understand why I can't get any new language text to show up in my order confirmation emails or other templates (obviously I am missing some step for calling new language variables) I did manage to get around it and have something working now.

So what I did was I created a new template file and put my text into that new template directly, and then at the bottom of my order_customer.tpl I added a link to my new template like this:

{include file="mail/html/order_invoice.tpl"}

{include file="mail/html/order_faq.tpl"}

{include file="mail/html/signature.tpl"}

Inside the order_faq.tpl I have my list of frequently asked order questions and it shows up great.

If anyone reads this and can explain to me how to add new language variables so that it shows up let me know.


All times are GMT -8. The time now is 10:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.