Author |
Topic |
|
Sharon
VP-CART Super User
357 Posts |
Posted - March 30 2005 : 02:31:22
|
I have added extra fields to the registration page (2 are drop downs added in shopcustomerform.asp). I need the content of these fields to appear in the email sent on registration to the merchant but the message doesn't seem to use a template, even though there is a tmp_registration.txt available.
Grateful for any advice.
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - March 30 2005 : 02:38:40
|
make sure your "xemailwithtemplates" config option is set to yes in admin (I think that defaults to being "No"), but be careful when doing that 'cos all your other emails will then start using templates too (ie ordering confirmations etc) and they might look slightly different than a non-template default.
having said that, I'm not sure if there is such a thing as a merchant registration confirmation template; it might just be using normal vbscript inside the email asps for that, and only using the template for the customer one.
yes; I've just had a look and that is the case (the merchant email doesn't use a template) - you'd have to add your new fields in the shopcustregister.asp file inside the SendMailToMerchant function.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons
Edited by - devshb on March 30 2005 02:43:19 |
|
|
Sharon
VP-CART Super User
357 Posts |
Posted - March 30 2005 : 05:52:01
|
I have 2 fields, for fax & company in my registration form that already appeared elsewhere in shopcustregister.asp so with almost no vbscript experience I added these 2 lines Body=body & strfax & vbcrlf Body=body & strcompany & vbcrlf between Sub SendMailToMerchant & end sub
I obviously got it wrong as it gave the following error when trying to register. Microsoft OLE DB Provider for ODBC Drivers error '80040e21' Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. /VPASP/shop$db.asp, line 1916
If I can sort this one I have no idea how to get the next 2 fields to appear in the email as they appear as drop downs in shopcustomerform.asp as below
Response.write tablerow & tablecolumn Response.write "Company Type" & TablecolumnEnd Response.write tablecolumn %> <select name="cotype"> <option value="Contractor" selected="selected">Contractor</option> <option value="Testing House">Testing House</option> <option value="Consultant">Consultant</option> <option value="Government">Government</option> <option value="University/College">University/College</option> <option value="Production">Production</option> <option value="Reseller">Reseller</option> </select> <% Response.write tablecolumnend & tableRowend '......................................... Response.write tablerow & tablecolumn Response.write "Industry Sector" & TablecolumnEnd Response.write tablecolumn %> <select name="sector"> <option value="All" selected="selected">All</option> <option value="Soil/Rock">Soil/Rock</option> <option value="Concrete">Concrete</option> <option value="Cement/Mortar">Cement/Mortar</option> <option value="Blacktop/Asphalt">Blacktop/Asphalt</option> <option value="Sieves">Sieves</option> <option value="Sand/Gravel">Sand/Gravel</option> <option value="Aggregates">Aggregates</option> <option value="Environment">Environment</option> <option value="Calibration">Calibration</option> <option value="None of the Above">None of the Above</option> </select> <%
So I have 2 problems & not enough guesses to get it right.
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - March 30 2005 : 06:07:28
|
I'm not sure if you've added it in exactly the right place (it sounds like you have), the fax+company lines would be added underneath the other lines so that the relevant bit of your SendMailToMerchant looks like this:
Body=body & strPhone & vbcrlf Body=body & stremail & vbcrlf Body=body & strfax & vbcrlf Body=body & strcompany & vbcrlf acount=0
that ole error is connected to the new poplist fields, rather than the extra values being shown in the merchant email.
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
Sharon
VP-CART Super User
357 Posts |
Posted - March 30 2005 : 07:44:04
|
Thanks Simon, I had them in slightly the wrong place. All the fields I wanted now appear in the message.
Edited by - sharon on April 04 2005 08:10:39 |
|
|
|
Topic |
|