Hi guys,
Hope someone can help.
I am using ubercart and would like to create a form that sends a recommendation of a product to a friend, when the anonymous user visits product node.
Apparently "ubercart webform productize" module and "webform associate" module used to do this task but are obsolete with webform 3.0.
Until now I have installed webform 3.4 and created a very simple webform node with name, email, friend's name, and friend's email. But when trying to define the email template in /webform/emails I cannot figure out what I should do to include the product node (and all its ubercart product content like price, pictures, etc). I inserted the following details :
Submitted on %date
Submitted by user: %username
Submitted values are:
%email_values
$_SESSION[node]
The results of this submission may be viewed at:
%submission_url
But the product node content doesnt come up in the email received by the friend.
I tried "Previewing Email Template" module but it didn't help and after searching during two days I cannot find any hints on how to add the node content into the email template.
Any suggestion will be very much welcome.
Many thanks
Comments
Comment #1
quicksketchI would not recommend using Webform for the purpose you're describing. With Webform, every single product node would be a separate Webform. Either that or you'd somehow make a single Webform and point everyone on the site to that one Webform. Since you're really concerned with just sending e-mails, not not with recording the recommendations or statistics, I don't think Webform is a very good fit for what you're trying to do. A simple form that could be attached to product nodes and sends out e-mails would be a more appropriate approach to take, though I'm not sure if such a module has been written for Ubercart.
Comment #2
andrews501 commentedThanks for your response.
Yes, I am trying the option of attaching a webform node to product nodes. I tried of using product nodes as webform as well, but it would be very time consuming the creation of webforms in individual nodes. Therefore the option of attaching a webform node is better. However, I would like the webform node to include information about the node where it is attached to.
Comment #3
topdillon commentedPlease post back if you make any headway. I would like this capability too. If webform will work, I will gladly go that route. For me, being a non-programmer, the only other option I can see is to sit and wait for a module. Well, not sit.
Comment #4
giucas commentedTry with autocreate node reference module as explained in this article
http://drupal.org/node/371518
Comment #5
quicksketchComment #6
peterx commentedTwo options without creating hundreds of forms: http://drupal.org/node/1046382#comment-6305354