Customizing Email Templates - Tracking Number

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Customizing Email Templates - Tracking Number

Post by drollins » Sat Dec 22, 2007 4:22 am

My customer wants the tracking number to be included in the email that is sent to the customer upon shipping an order. How do you do that? What nVelocity object should I be using etc etc.

I searched about for 10 mins or so before I posted so I apologize if that was already answered. I did find that this was a hot topic in V5.5 - I am using V7.0 so my understanding is that this is available since "all AbleCommerce variables are exposed thru nVelocity in V7.0".

So I guess my real question is... how do I go about finding out what variables are available to me on any given time scriptlet or email template?

I have the nDoc generated help file so I suppose I have the 7.0 API but there is no descriptions in there to tell you what is what - just the API - so you have to guess what something is and what it is used for.

Just a thought... but if you guys (Able) had good descriptions in there (ie. filled out the <summary></summary> and <remarks></remarks> attributes on all methods and properties) then the community at large would be in much better shape and could help themselves. We would get an idea about what the developer was intending by reading this information in the generated documentation.
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Sat Dec 22, 2007 6:23 am

OK I figured it out...

Code: Select all

        #if($shipment.TrackingNumbers.Count > 0)
            <tr>
                <td>
                    <b>Tracking Number(s)</b>
                </td>
                <td>
                    #foreach($trackingNumber in $shipment.TrackingNumbers) 
                        $trackingNumber.TrackingNumberData
                    #end
                </td>
            </tr>
        #end
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Sat Dec 22, 2007 7:28 am

And now I am starting to catch on to the API guide but having a meaningful description of when to use stuff, and what stuff is, would be cool.
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

Post Reply