Return to AspDotNetStorefront.com

Go Back   AspDotNetStorefront Community | ASP.NET eCommerce Shoppingcart Software > Customization > WSI (Web Service Automation Interface)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old   
Amazing {Offline}
Senior Member
 
Join Date: Nov 2008
Posts: 102
Default Trigger Email Tracking# - 02-01-2010

Using v8.0.0.0

We have created a WSI application which uploads the tracking information, and marks the orders as shipped, but have not figured out how to have it auto send the tracking emails.

Any pointers?
Reply With Quote
  #2  
Old   
ssgumby {Online}
Senior Member
 
Join Date: Feb 2009
Posts: 500
Default 02-01-2010

We've found it easier to have UPS/Fedex send the emails for us. In UPS World Ship its just a flag they set that tells them to email the customer.
Reply With Quote
  #3  
Old   
AspDotNetStorefront Staff - Scott {Offline}
Administrator
 
Join Date: Mar 2007
Posts: 2,009
Default 02-02-2010

You could probably use the OrderShipped Event Handler to do that pretty easily as well.
__________________
ECommerce Shopping Cart
Reply With Quote
  #4  
Old   
jmdjmd {Offline}
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default 02-11-2010

Has anyone been able to accomplish this?
Reply With Quote
  #5  
Old   
alp {Offline}
Junior Member
 
Join Date: Feb 2010
Posts: 2
Default This might work for you - 02-25-2010

Referencing the WSI, I created a class with a function for processing the "OrderManagement" feature. All of the options for this feature are documented online under the WSI Master Doc Reference...way at the bottom.

My function accepts parameters for each of the possible attributes (OrderNumber, Action, RefundReason, TrackingNumber, ShippingCarrier, Notes, and NewEMail.)

Important Note: The "ShippingCarrier" attribute is actaully "ShippedCarrier." Had to dig that out of the source code after I realized it was not working. Make sure the XML Attribute in the OrderManagement node is titled "ShippedCarrier."

In my function I used a StringBuilder to build up the XML for the call to the WSI. If a parameter is passed in a empty string, I exclude it from the XML string.

I call this function from my code and pass in "MarkAsShipped" for the Action Attribute, along with the OrderNumber, TrackingNumber, and ShippedCarrier.

That is pretty much it. My function processes the WSI call and the Order record is updated in the database and the email goes to the Customer just like it would if you were to mark something as shipped from the StoreFront Admin interface.

I hope this helps someone.
Reply With Quote
  #6  
Old   
jdudley {Offline}
Member
 
Join Date: Oct 2007
Posts: 41
Default 06-10-2010

Can you post your function? I am running into an issue where I need to send the shipped email after updating the shipping using the WSI. I just realized that it doesnt do this automatically...
Reply With Quote
  #7  
Old   
alp {Offline}
Junior Member
 
Join Date: Feb 2010
Posts: 2
Default Here is how I formatted the XML and sent to WSI - 06-10-2010

Note: the function this code in within, takes String params for the values such as action, refundReason, trackingNumber, etc.

Dim sb As New StringBuilder
sb.Append("<AspDotNetStorefrontImport Verbose=""false"">")
sb.Append(" <Transaction>")

sb.Append("<OrderManagement OrderNumber=""" & orderNumber & """")
sb.Append(" Action=""" & action & """")

If refundReason <> "" Then
sb.Append(" RefundReason=""" & refundReason & """")
End If
If trackingNumber <> "" Then
sb.Append(" TrackingNumber=""" & trackingNumber & """")
End If

If shippedCarrier <> "" Then
sb.Append(" ShippedCarrier=""" & shippedCarrier & """")
End If

If notes <> "" Then
sb.Append(" Notes=""" & notes & """")
End If

If NewEMail <> "" Then
sb.Append(" NewEMail=""" & NewEMail & """")
End If

sb.Append(" />")

sb.Append(" </Transaction>")
sb.Append("</AspDotNetStorefrontImport>")

strXML = wsi.DoIt(Me.AuthenticationEmail, Me.AuthenticationPassword, sb.ToString())
wsi.Dispose()
Reply With Quote
  #8  
Old   
Jose Rojas {Offline}
Member
 
Send a message via MSN to Jose Rojas
Join Date: Jul 2006
Posts: 45
Default Trigger Email - 06-11-2010

I can help with the Tracking Number email, PM or send a email if interested.
Reply With Quote
  #9  
Old   
Laban {Offline}
Junior Member
 
Join Date: Mar 2010
Posts: 4
Cool 06-12-2010

I am having the same issue - how to get a shipment confirmation email sent when marking the order as shipped via WSI.

Here is an example of the XML of the request:

<AspDotNetStorefrontImport Verbose="false">
<OrderManagement OrderNumber="100161" Action="MarkAsShipped" ShippedOn="06/02/2010" ShippedCarrier="UPS" TrackingNumber="2216Y19F031237777" NewEMail="joe@acme.com"/>
</AspDotNetStorefrontImport>

This updates the order just fine, but no email gets sent (I have tried with and without the NewEMail attribute).

Is there any way to make this work via WSI?

Thanks,
Laban
Reply With Quote
  #10  
Old   
AspDotNetStorefront Staff - Alfred {Offline}
Senior Member
 
Join Date: Nov 2007
Posts: 1,689
Default 06-15-2010

That should work fine. Just make sure your appconfig: SendShippedEMailToCustomer is set to true. You'll have to remove the NewEmail attribute also, that's only used in OrderManagementActionEnum.ChangeOrderEMail operation.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Style by: vBskincenter.com
Copyright © 2008, AspDotNetStorefront. All rights reserved.