VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Merchant''s Email on Registration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sharon
VP-ASP Super User

353 Posts

Posted - March 30 2005 :  02:31:22  Show Profile  Visit Sharon's Homepage  Reply with Quote
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
1898 Posts

Posted - March 30 2005 :  02:38:40  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

Sharon
VP-ASP Super User

353 Posts

Posted - March 30 2005 :  05:52:01  Show Profile  Visit Sharon's Homepage  Reply with Quote
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.



Go to Top of Page

devshb
Senior Member

United Kingdom
1898 Posts

Posted - March 30 2005 :  06:07:28  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page

Sharon
VP-ASP Super User

353 Posts

Posted - March 30 2005 :  07:44:04  Show Profile  Visit Sharon's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000