keat Posted March 15, 2016 Share Posted March 15, 2016 On the admin order confirmation email, the subtotal is incorrect. It doesn't include the shipping. Could I use something along the lines {$DATA.subtotal}+{$DATA.shipping} Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 15, 2016 Share Posted March 15, 2016 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> </td> <td> Shipping: {if $DATA.ship_method}({$DATA.ship_method}){/if}</td> <td> {$DATA.shipping}</td> </tr> <tr> <td> </td> <td> Discount:</td> <td> {$DATA.discount}</td> </tr> <tr> <td> </td> <td> Subtotal:</td> <td> {$DATA.subtotal}</td> </tr> {foreach from=$TAXES item=tax} <tr> <td> </td> <td> {$tax.tax_name}: ({$tax.tax_percent}%)</td> <td> {$tax.tax_amount}</td> </tr> {/foreach} <tr> <td> </td> <td> <strong>Order Total: </strong></td> <td> <strong>{$DATA.total}</strong></td> </tr> </tbody> </table> Quote Link to comment Share on other sites More sharing options...
keat Posted March 15, 2016 Author Share Posted March 15, 2016 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. Quote Link to comment Share on other sites More sharing options...
ayz1 Posted March 15, 2016 Share Posted March 15, 2016 Would changing <tr> <td> </td> <td> Shipping: {if $DATA.ship_method}({$DATA.ship_method}){/if}</td> <td> {$DATA.shipping}</td> </tr> <tr> <td> </td> <td> Discount:</td> <td> {$DATA.discount}</td> </tr> <tr> <td> </td> <td> Subtotal:</td> <td> {$DATA.subtotal}</td> </tr> to <tr> <td> </td> <td> Discount:</td> <td> {$DATA.discount}</td> </tr> <tr> <td> </td> <td> Subtotal:</td> <td> {$DATA.subtotal}</td> </tr> <tr> <td> </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? Quote Link to comment Share on other sites More sharing options...
keat Posted March 16, 2016 Author Share Posted March 16, 2016 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.