tessguefen
4/2/2015 - 5:35 PM

Wholesale email + Toolkit.

Wholesale email + Toolkit.

<mvt:comment>This is where the email will actually send. You can do checks to make sure all the info that is needed is filled out, then send it.</mvt:comment>
<mvt:if expr="g.wholesale EQ 'yes'">
	 <mvt:item name="toolkit" param="smtp|EMAIL_XXXX" />
	 <mvt:item name="toolkit" param="smtp|EMAIL_XXXX_OTHER" />
</mvt:if>
<mvt:comment>Here is an example Email. This would be under the template page EMAIL_XXXX</mvt:comment>
%subject|Holiday Lighting Outlet Wholesale Signup%
%from|g.store:email%
%to|g.store:email%
<html>
    <head>
        <base href="&mvt:global:basehref;">
    </head>
    <body style="font-family: arial, tahoma;">

        <p>A customer has signed up for a Wholesale account and is waiting for approval. Please log into your Miva Admin to approve them.</p>
        <table width="100%">
            <td width="50%" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                        <th colspan="2" style="background: #cb2636; color: #fff; text-align: left;">Customer Information</th>
                    </tr>
                    <tr>
                        <td align="right"><strong>Username</strong></td>
                        <td>&mvte:global:Customer_Login;</td>
                    </tr>
                    <tr>
                        <td align="right"><strong>Email Address:</strong></td>
                        <td>&mvte:global:Customer_PasswordEmail;</td>
                    </tr>
                </table>
            </td>
            <td width="50%" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                        <th colspan="2" style="background: #cb2636; color: #fff; text-align: left;">Wholesale Information</th>
                    </tr>
                    <mvt:if expr="g.sales_tax_id">
                        <tr>
                            <td align="right"><strong>Sales Tax ID #:</strong></td>
                            <td>&mvt:global:sales_tax_id;</td>
                        </tr>
                    <mvt:else>
                        <tr>
                            <td align="right"><strong>EIN #:</strong></td>
                            <td>&mvt:global:ein_number;</td>
                        </tr>
                    </mvt:if>
                </table>
            </td>
        </table>
        <table width="100%">
            <tr>
                <td width="50%">
                    <table width="100%" border="0" cellspacing="0" cellpadding="2">
                        <tr>
                            <th colspan="2" style="background: #cb2636; color: #fff; text-align: left;">Ship to Information</th>
                        </tr>
                        <tr>
                            <td align="right"><strong>First Name:</strong></td>
                            <td>&mvte:global:Customer_ShipFirstName;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Last Name:</strong></td><td> &mvte:global:Customer_ShipLastName;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Company:</strong></td><td> &mvte:global:Customer_ShipCompany;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Phone:</strong></td><td> &mvte:global:Customer_ShipPhone;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Fax:</strong></td><td> &mvte:global:Customer_ShipFax;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Email Address:</strong></td><td> &mvte:global:Customer_ShipEmail;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Address:</strong></td><td> &mvte:global:Customer_ShipAddress1;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Address 2:</strong></td><td> &mvte:global:Customer_ShipAddress2;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>City:</strong></td><td> &mvte:global:Customer_ShipCity;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>State/Province:</strong></td><td> &mvte:global:Customer_ShipStateSelect;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Zip/Postal Code:</strong></td><td> &mvte:global:Customer_ShipZip;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Country:</strong></td><td> &mvte:global:Customer_ShipCountry;</td>
                        </tr>
                    </table>
                </td>
                <td width="50%">
                    <table width="100%" border="0" cellspacing="0" cellpadding="2">
                        <tr>
                            <th colspan="2" style="background: #cb2636; color: #fff; text-align: left;">Bill to Information</th>
                        </tr>
                        <tr>
                            <td align="right"><strong>First Name:</strong></td>
                            <td>&mvte:global:Customer_BillFirstName;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Last Name:</strong></td><td> &mvte:global:Customer_BillLastName;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Company:</strong></td><td> &mvte:global:Customer_BillCompany;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Phone:</strong></td><td> &mvte:global:Customer_BillPhone;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Fax:</strong></td><td> &mvte:global:Customer_BillFax;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Email Address:</strong></td><td> &mvte:global:Customer_BillEmail;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Address:</strong></td><td> &mvte:global:Customer_BillAddress1;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Address 2:</strong></td><td> &mvte:global:Customer_BillAddress2;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>City:</strong></td><td> &mvte:global:Customer_BillCity;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>State/Province:</strong></td><td> &mvte:global:Customer_BillStateSelect;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Zip/Postal Code:</strong></td><td> &mvte:global:Customer_BillZip;</td>
                        </tr>
                        <tr>
                            <td align="right"><strong>Country:</strong></td><td> &mvte:global:Customer_BillCountry;</td>
                        </tr>
                    </table>    
                </td>
            </tr>
        </table>
    </body>
</html>