an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Custom Field in order confirmation email
Last Post 6/10/2009 2:45:46 PM By lukezy. 3 replies.
6/10/2009 1:56:14 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Custom Field in order confirmation email
Hi Luke,
 
I created a custom field in order confirmation email and added that to the addtokens method in Order.cs
 
But it's still now showing up in the email.
 
In the email it shows up as
 
GP Customer ID: %Order.CustomerGPID%
 
Here is what the Order.cs looks like
 
<newCustomerSource newCust = new newCustomerSource();
            tokens.Add("Order.OrderNumber", OrderNumber);
            tokens.Add("Order.Email", Email);
            tokens.Add("Order.CustomerGPID",newCust.getGPCustomerID(userId));
 
and here is how i am using it in templetae
 
<font  face="verdana,arial,helvetica" size="-1" >
                            <b>GP Customer ID:</b>&nbsp;&nbsp;%Order.CustomerGPID%
                          </font>
 
Am i missing something else??
 
Thanks
 
-D
 
 
6/10/2009 2:19:12 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Custom Field in order confirmation email
If you changed Core project, did you copy the core.dll to orderpipeline folder and then restart the orderpipeline service?
DotShoppingCart Staff
6/10/2009 2:41:04 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Custom Field in order confirmation email
I didn't do that. I just updated the core.dll in the bin folder.
 
How do i stop the service and start it back again? It doesn't show up in Services under Administrative Tools.
 
When i tried to copy over the core.dll, it said cannot replace core.dll. Its being used by some other process.
 
Whats the best way to do this?
 
Thanks
6/10/2009 2:45:46 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Custom Field in order confirmation email
The full service name is "ComOrderPipeline". Stop it first before replace it.
DotShoppingCart Staff