Guest Posted May 10, 2007 Share Posted May 10, 2007 Hello all... In the new order confirmation email, I would love to show the total without the shipping, subtotal and tax. I have: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } That dispays: Sub-Total: $0.00 Domestic Rate (Domestic Shipping): $0.00 AL Tax (5.0%): $0.00 Total: $0.00 And all that I want is: Total: $0.00 I don't want to mess up anything about the order totals module that will change the way that this is dispayed on our site - only in the email. Any ideas? Thanks! Nancy Link to comment Share on other sites More sharing options...
GulSar Ray's Posted May 10, 2007 Share Posted May 10, 2007 Hello all... In the new order confirmation email, I would love to show the total without the shipping, subtotal and tax. I have: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } That dispays: Sub-Total: $0.00 Domestic Rate (Domestic Shipping): $0.00 AL Tax (5.0%): $0.00 Total: $0.00 And all that I want is: Total: $0.00 I don't want to mess up anything about the order totals module that will change the way that this is dispayed on our site - only in the email. Any ideas? Thanks! Nancy in checkout_process.php at line 236-238 change the code from for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } to for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { if (strip_tags($order_totals[$i]['title']) == "Total:") { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } } Hard Work Is The Simplest Way Of Success Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2007 Share Posted May 10, 2007 That worked BEAUTIFULLY! Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.