JustAnotherMe Posted October 28, 2010 Share Posted October 28, 2010 I need to read the actual order Total with tax. I could do an sql approach but i cant find an erm of the database ... can any one help me pls Link to comment Share on other sites More sharing options...
JustAnotherMe Posted October 28, 2010 Author Share Posted October 28, 2010 global $cookie; $sql = 'SELECT total_products_wt FROM '._DB_PREFIX_.'orders WHERE id_customer = "'.$cookie->id_customer.'" ORDER BY date_add DESC LIMIT 1'; $amount = Db::getInstance()->getValue($sql); thats the code i got so far (not working), my sql is correct so i got some of the presta stuff wrong ... Link to comment Share on other sites More sharing options...
tomerg3 Posted October 28, 2010 Share Posted October 28, 2010 You mean the total of the items that are currently in the cart? Link to comment Share on other sites More sharing options...
JustAnotherMe Posted October 29, 2010 Author Share Posted October 29, 2010 yes ( i only need to read it after the order is finished )ps : iam still seeking for a build in functionality Link to comment Share on other sites More sharing options...
tomerg3 Posted October 29, 2010 Share Posted October 29, 2010 When the order is finished, the cart is empty.a database query is NOT the way to do it, but I need to know if which page you are trying to get this info, so I can tell you how to get the order object, which can then easily retrieve the order total. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now