Hello i had a use case where i had to develop a functionality for the Gift module in a online store using ubercart and the feature was very simple :

Have the oportunity to send diferent emails (customized tpl files) to customer based on an attribute selected, in this case ther where two attributes, one was "Ocasion" such as "Birthday Gift Card", "Corporate Gift Card", "Happiness Gift Card" and the other the type of jewelery you wanted (several types to choose from).Based on the combination of these attributes the customer would receive a specific email.

My idea was this is a goof feature to eventually be a part of the Gift Module, where you could set for a specific atribute the template (tpl file in theme directory for example..) you want the customer to receive.

This would give a chance for speacially retail stores have their gifts more customized and professional, allways focusing on improving the client experience.

I am sending the code i had to change to make this work in the .module file.I used the latest version of the gift_certificate module.

Also i had to crate the attributes and add them to the gift.

Since i am relativelly new to Drupal i would like to also contribute in this feature and learn a bit more about developing for Drupal, if i knew enough already would have made a good patch and make this "not hardcoded" as it basically is right now..

Best regards,

CommentFileSizeAuthor
#1 module_gift.txt44.9 KBjoaogarin

Comments

joaogarin’s picture

StatusFileSize
new44.9 KB

The .module file;) had to rename to txt.