Jump to content

Email Order Confirm - Incorrect Subtotal


keat

Recommended Posts

Do you mean the one titled Admin Order Received? If so, here's the Source Code of mine:

<p>
	{$DATA.first_name} {$DATA.last_name} {if !empty({$BILLING.company_name})}({$BILLING.company_name}){/if} just placed order number {$DATA.cart_order_id} on {$DATA.order_date}.</p>
<p>
	This order can be managed online by following the link below.</p>
<p>
	<a href="{$DATA.link}">{$DATA.link}</a></p>
<table width="100%">
	<tbody>
		<tr>
			<td valign="top" width="50%">
				<strong>Billing address:</strong><br>
				{$BILLING.first_name} {$BILLING.last_name}<br>
				{if !empty({$BILLING.company_name})}{$BILLING.company_name}<br>
				{/if} {$BILLING.line1}<br>
				{if !empty({$BILLING.line2})}{$BILLING.line2}<br>
				{/if} {$BILLING.town}<br>
				{$BILLING.state}<br>
				{$BILLING.postcode}<br>
				{$BILLING.country}<br>
				{$BILLING.phone}<br>
				<br>
				<strong>Email:</strong><br>
				{$BILLING.email}</td>
			<td valign="top" width="50%">
				<strong>Shipping address:</strong><br>
				{$SHIPPING.first_name} {$SHIPPING.last_name}<br>
				{if !empty({$SHIPPING.company_name})}{$SHIPPING.company_name}<br>
				{/if}{$SHIPPING.line1}<br>
				{if !empty({$SHIPPING.line2})}{$SHIPPING.line2}<br>
				{/if}{$SHIPPING.town}<br>
				{$SHIPPING.state}<br>
				{$SHIPPING.postcode}<br>
				{$SHIPPING.country}</td>
		</tr>
	</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" width="100%">
	<tbody>
		<tr>
			<td>
				<strong>Item</strong></td>
			<td>
				<strong>Quantity</strong></td>
			<td>
				<strong>Cost</strong></td>
		</tr>
		{foreach from=$PRODUCTS item=product}
		<tr>
			<td>
				{$product.name}<br>
				{$product.product_code}<br>
				{$product.product_options}</td>
			<td>
				{$product.quantity}</td>
			<td>
				{$product.price}</td>
		</tr>
		{/foreach}
		<tr>
			<td>
				&nbsp;</td>
			<td>
				Shipping: {if $DATA.ship_method}({$DATA.ship_method}){/if}</td>
			<td>
				{$DATA.shipping}</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				Discount:</td>
			<td>
				{$DATA.discount}</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				Subtotal:</td>
			<td>
				{$DATA.subtotal}</td>
		</tr>
		{foreach from=$TAXES item=tax}
		<tr>
			<td>
				&nbsp;</td>
			<td>
				{$tax.tax_name}: ({$tax.tax_percent}%)</td>
			<td>
				{$tax.tax_amount}</td>
		</tr>
		{/foreach}
		<tr>
			<td>
				&nbsp;</td>
			<td>
				<strong>Order Total: </strong></td>
			<td>
				<strong>{$DATA.total}</strong></td>
		</tr>
	</tbody>
</table>

 

Link to comment
Share on other sites

Much the same as mine to be honest.

Thinking about it logically, the databse order_sumarry has shipping and subtotal as two seperate entries, so it makes sense that the order confirmation would also list them seperately.

I just wondered if there was any sort of equasion to make it look correct on the confirmation email.

I guess it probably looks the same on the customer copy.

Link to comment
Share on other sites

Would changing

 

		<tr>
			<td>
				&nbsp;</td>
			<td>
				Shipping: {if $DATA.ship_method}({$DATA.ship_method}){/if}</td>
			<td>
				{$DATA.shipping}</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				Discount:</td>
			<td>
				{$DATA.discount}</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				Subtotal:</td>
			<td>
				{$DATA.subtotal}</td>
		</tr>

 

 

to

        <tr>
            <td>
                &nbsp;</td>
            <td>
                Discount:</td>
            <td>
                {$DATA.discount}</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                Subtotal:</td>
            <td>
                {$DATA.subtotal}</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                Shipping: {if $DATA.ship_method}({$DATA.ship_method}){/if}</td>
            <td>
                {$DATA.shipping}</td>
        </tr>

 

work? Should make it the same as it is in admin?

 

 

 

Link to comment
Share on other sites

I did consider switching around the shipping and subtotal around, but considered that subtoal + shipping would be more appropriate.

Having said that, I assume that this would require a whole new $variable and then it becomes complicated

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...