kataluszek Merchant Od Germany Člen od apr 2016 kataluszek 28 sep 2016 23:11 And where? I can not find it in admin.
kataluszek Merchant Od Germany Člen od apr 2016 kataluszek 29 sep 2016 09:55 Yes first email - after order. I want to add to content: Terms & Conditions and Right to Revocation.
tim Founder Od Sweden Člen od máj 2013 tim 29 sep 2016 15:48 templates/*/views/printable_order_copy.inc.php
kataluszek Merchant Od Germany Člen od apr 2016 kataluszek 2 okt 2016 12:32 Yes I found it. But I have problem with another languages. Can I add - Terms & Conditions and Right to Revocation, as pdf - for each language separately? Or maybe as: echo language::translate('title_xxxx', 'xxxx'); But here text will be not formatted?
tim Founder Od Sweden Člen od máj 2013 tim 2 okt 2016 13:33 To format the text you need to enable HTML when editing the translation. See the little checkbox when editing. If you want to attach a PDF to the email you would have to tweak email_order_copy() in controllers/ctrl_order.inc.php. See functions/func_email.inc.php which parameter is used for file attachments.
kataluszek Merchant Od Germany Člen od apr 2016 kataluszek 2 okt 2016 13:54 I see it :D How can I add own translations code? Direct in file?
tim Founder Od Sweden Člen od máj 2013 tim 2 okt 2016 13:55 Just enter whatever code you desire. Once the code is executed it will be in the database. language::translate('mycode', 'My text...');
kataluszek Merchant Od Germany Člen od apr 2016 kataluszek 2 okt 2016 14:03 I thougt so. First I must add 2 changes to database. Terms & Conditions Right to Revocation And then language::translate ( 'terms.......' , 'text.....')
tim Founder Od Sweden Člen od máj 2013 tim 2 okt 2016 14:15 Just add the translation placeholders to your view/document: language::translate('mycode', ''); Access the page so it will display once (translations will be generated). Go to Admin -> Translations -> and edit your translations.
flymbox LiteCart Fan Od India Člen od okt 2023 flymbox 28 nov 2023 08:30 functions/func_email.inc.php this file no have help me plice
tim Founder Od Sweden Člen od máj 2013 tim 28 nov 2023 15:37 @flymbox, no you revived a thread that is 7½ years old. 👎 LiteCart 2.x uses a component named ent_email: https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/entities/ent_email.inc.php See how it is used here. https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/entities/ent_order.inc.php#L779-L782 If you want to pass HTML, pass a second parameter true to the function add_body() like this: ->add_body($myhtmlmessage, true).