cgchris99 Posted December 12, 2003 Share Posted December 12, 2003 I am working on an HTML order confirmation email. I need to know how to get the shipping cost and the method. I know $order_totals[$i]['text'] provides the information. However, how do I reliably know which $i is the for tax and which is for shipping? Sometimes I have shipping and sometimes it's free. Sometimes I have tax and mostly do not. There must be some other way to get this information. Thanks for any advice Link to comment Share on other sites More sharing options...
kagg Posted December 12, 2003 Share Posted December 12, 2003 Make a check for code like for shipping it would be: if ($order_totals[$i]['code'] == "ot_shipping") Link to comment Share on other sites More sharing options...
cgchris99 Posted December 12, 2003 Author Share Posted December 12, 2003 That is perfect. I was not aware of the 'code' option. This will make my coding so much easier. Thanks 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.