Help needed editing automated email output.

Hi folks im using Joomla 3 along with virtuemart 3… I have a plugin that im using for sample order (customer can order a sample ofg theproduct)

The plugin im using is alled vmwishlist and with this youcan send your list to an admin. Im using this feature for customers to send there sample request to our admin team.

At the moment the send to admin sends an email to the admin with a list of the products in the customers wishlist.

I need to add to this email the customers real name and address from the customers profile.

As for as i can see this is the code for the email.

echo "<p><div align=\"left\">\n<form action=\"".$url_favlist."\" method=\"POST\" name=\"sendmail\" id=\"sendmail\">\n ".JText::_('VM_SHARE_DESC')."<br /><textarea id=\"afaq_desc\" class=\"inputbox\" cols=\"50\" rows=\"3\" name=\"afaq_desc\" onkeypress=\"return imposeMaxLength(this, 100);\"></textarea><br /><br />\n <input type=\"hidden\" name=\"mode\" value=\"sendmail\" />\n <input type=\"hidden\" id=\"email_to\" name=\"email_to\" value=\"".$conf->get('mailfrom')."\" />\n <input type=\"hidden\" id=\"email_subj\" name=\"email_subj\" value=\"".JText::_('VM_AFAQ_SUBJECT')."\" />\n <input type=\"hidden\" id=\"email_body\" name=\"email_body\" value=\"".$afaq_message."\" />\n <input type=\"submit\" class=\"modns button art-button art-button\" value=\"".JText::_('VM_AFAQ_BUTTON')."\" title=\"".JText::_('VM_AFAQ_BUTTON')."\" /> </form>\n</div>\n</p>\n"; }

you will also need to find the processor code to do what you are wanting … this is just the information to be sent to the processor then in that processor code will be the function that gathers this information and actually sends the email.

since i dont know the available vars that this plugin uses here is an example on how i would change this … Keep in mind that you would still have to edit the processor or it wont know what to do with the new fields …
[php]echo “

<div align=“left”>\n<form action=”".$url_favlist."" method=“POST” name=“sendmail” id=“sendmail”>\n
“.JText::(‘VM_SHARE_DESC’)."
<textarea id=“afaq_desc” class=“inputbox” cols=“50” rows=“3” name=“afaq_desc” onkeypress=“return imposeMaxLength(this, 100);”>

\n
<input type=“hidden” name=“mode” value=“sendmail” />\n
<input type=“hidden” id=“email_to” name=“email_to” value="".$conf->get(‘mailfrom’)."" />\n
/* i would add the new fields here */
<input type=“hidden” id=“email_sender” name=“email_sender” value="".SName::
(‘VM_AFAQ_SENDER’).”" />\n
<input type=“hidden” id=“email_address” name=“email_address” value="".SAddr::(‘VM_AFAQ_ADDRESS’)."" />\n
<input type=“hidden” id=“email_city” name=“email_city” value="".SAddrCity::
(‘VM_AFAQ_CITY’)."" />\n
<input type=“hidden” id=“email_state” name=“email_state” value="".SAddrState::(‘VM_AFAQ_STATE’)."" />\n
<input type=“hidden” id=“email_zip” name=“email_zip” value="".SAddrZip::
(‘VM_AFAQ_ZIP’)."" />\n
/* i would add the new fields here */
<input type=“hidden” id=“email_subj” name=“email_subj” value="".JText::(‘VM_AFAQ_SUBJECT’)."" />\n
<input type=“hidden” id=“email_body” name=“email_body” value="".$afaq_message."" />\n
<input type=“submit” class=“modns button art-button art-button” value="".JText::
(‘VM_AFAQ_BUTTON’)."" title="".JText::_(‘VM_AFAQ_BUTTON’)."" />
\n\n

\n";
}[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service