fidlimidly Posted May 23, 2019 Posted May 23, 2019 (edited) Hi I need send with email confirmation 2 files(1*pdf+1*docx) I found some solution for Prestashop 1.5 / 1.6 but doesnt works with TB 1.08 Please help me with this problem Edited May 29, 2019 by fidlimidly
1 datakick Posted June 10, 2019 Posted June 10, 2019 I've just added new feature to my conseqs module that can handle this use case https://store.getdatakick.com/en/blog/conseqs-attach-file-to-outgoing-emails
0 yaniv14 Posted May 23, 2019 Posted May 23, 2019 I think the easiest way will be to hook into actionEmailSendBefore and add your attachments. In case your 2 files are the same for all customers than why don't you just put the files on your server and add a link to them in the email body.
0 fidlimidly Posted May 23, 2019 Author Posted May 23, 2019 (edited) Ok ...I am not Steven Jobs 😕 can You tell me how I ca do it? Anyway these 2 files are for all customers totally same so please can You tell me more about solution nr. 2 ? But i need send them as files not only links in email... Thank You Edited May 24, 2019 by fidlimidly
0 datakick Posted May 29, 2019 Posted May 29, 2019 @yaniv14 answered you already. I can elaborate more: 1) create new module 2) this module should register hook actionEmailSendBefore 3) in this hook, you can add your files to 'fileAttachments' output parameter. That requires loading the file content from disk and passing it in a structure like this: [ 'content' => ...file content... 'name' => 'filename.pdf', 'mime' => 'file mime type' ] If you don't know how to do any of these steps, then you will have to study. There are plenty of resources for prestashop module development out othere. If you don't have time, then hire somebody to do this for you.
0 fidlimidly Posted May 29, 2019 Author Posted May 29, 2019 Thx for help @datakick and @yaniv14... but my skills are not in this level 😞 but this not first thing what is different from Prestashop..... I will migration back to Presta .. there is bigger support and more topics about any problems than here... For sellers with small IT skills is better Presta...this is true
0 Baarssen Posted May 29, 2019 Posted May 29, 2019 maybe its better for you to buy a module who can do this. There are several options on the market and if they work for presta 1.6 they will also work for thirtybees
0 datakick Posted May 29, 2019 Posted May 29, 2019 36 minutes ago, fidlimidly said: but this not first thing what is different from Prestashop..... There is nothing different here from prestashop 16. You will need to do the same changes on both platforms.
0 fidlimidly Posted May 29, 2019 Author Posted May 29, 2019 thx it works like in Prestashop. You are right @datakick, I just add some code to classes/Mail.php
0 datakick Posted May 29, 2019 Posted May 29, 2019 9 minutes ago, fidlimidly said: thx it works like in Prestashop. You are right @datakick, I just add some code to classes/Mail.php Please don't, that's not how you should customize thirtybees (or prestashop). Changing core files is the worst you can do, it will lock you to the current version, with very limited options to upgrade. The best way to do this is to implement your own module. If that's too hard for you, at least do this using override. You should never change core files. In other words, Advanced Parameters > Configuration Information > LIST OF CHANGED FILES should be empty. If it's not, you will hate yourself soon enough.
0 fidlimidly Posted May 29, 2019 Author Posted May 29, 2019 Ok so it is bad way....is there anyone who has the experience and time to create such a module? Please write me to PM
0 Factor Posted June 10, 2019 Posted June 10, 2019 On 5/23/2019 at 3:10 PM, fidlimidly said: Ok ...I am not Steven Jobs 😕 can You tell me how I ca do it? Anyway these 2 files are for all customers totally same so please can You tell me more about solution nr. 2 ? But i need send them as files not only links in email... Thank You Do you need to send these files in every single email you ever send. I you need to send the at least once to every customer? then is every customer who gets and invoice?
0 fidlimidly Posted June 10, 2019 Author Posted June 10, 2019 I need send 2 files only once , with email confirmation of order. Yes for each customer
Question
fidlimidly
Hi
I need send with email confirmation 2 files(1*pdf+1*docx)
I found some solution for Prestashop 1.5 / 1.6 but doesnt works with TB 1.08
Please help me with this problem
Edited by fidlimidly13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now