drupaldrupal-7drupal-taxonomydrupal-nodes

Drupal 7: Generating HTML e-mail depending on chosen term and node


I want to make ability for anonymous users to get e-mail with discount coupon for manually chosen product.

It could be put in one form (select lists) or multiple steps (product selection > user info)

How it should work:

  1. User in page/block chooses taxonomy term (category of product)
  2. User chooses node (filtered by chosen taxonomy term)
  3. User inputs name, e-mail.
  4. User clicks submit button
  5. Html e-mail is being generated and sent with user name, chosen node title and custom field from that node with discount rate.

Is it difficult to achieve it work?

Thank you for your help.


Solution

  • What you're looking for can be recreated with the Webform module (https://drupal.org/project/webform), Simply create a webform with your desired fields (category, node, name, email) and then customize the receipt to use the [node:discount-code] token for the user's chosen node.