Email attachments module for specific order state in prestashop

 Hello, we are interested in your module to create and send attachments  But we have some questions: Are attachment associated with order status? And the other question is, is there any way to attach automatically attachments depending of the articles in purchase? Thank you


Hello,
Module adds attachments to emails that prestashop sends to customers and/or to shop's admin.
It depends on you (by selecting the email template) to what email the attachment will be added.
 

Are attachment associated with order status? 

In context of the module's workflow and in context of your question - not each order state sends the email to customer. Moreover order states in prestashop has unique email template behind (for example payment modules may have own email templates that are used when order status is changed). Just take a look: 



 
It means that you can achieve what you expect by specific configuration of the module or even by creating an individual email template for your specific order state. You can just create new email template for some specific order states and point this template in the module as an email where you expect to add attachment :)
 
default core template example
For example, let's say that you expect to send some specific attachment only when order state is set to "payment accepted": https://i.imgur.com/eYBFdwt.png - during configuration of the attachemnt just point this email template as a template where you expect to add attachment: https://i.imgur.com/yu2e60h.png  As a result of this configuration attachemnt will be send to customer with this specific email only - when order state will be marked as "payment accepted"
 
custom template for specific order state
For each order state you can create individual email template that will be used to build and send email to customer, you can point email template in configuration section of each order state: https://i.imgur.com/LDjOr4e.png 
there is a section to point template to use: https://i.imgur.com/N89Bf9Y.png  - point there your unique email template (that you can manually create in /mails/ directory) and just use your new email template  in "attachments" module. As a result you will be able to attach an attachment to this specific mail with information about order status update
 
 
According to the last question about specific product purchase:

is there any way to attach automatically attachments depending of the articles in purchase?

Of course there is such option to point specific product, attachment will be added to email when email will be associated with selected product purchase , screenshot for reference: https://i.imgur.com/Zf3Vv1S.png 
Email template of order is identified by availability of {id_order} variable.
 
nbest regards

milosz 

Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment