Polystore Posted April 8, 2013 Share Posted April 8, 2013 I have a modul that sends this: <description><![CDATA[ordernummer ' . $order->id_cart . ']]></description> to my accounting software. The problem is, id_cart is not a ordernumber but a cart number. If i change id_cart to id_order it gives the description the value 0 Anyone knows how I can achieve to get the proper order id ? Link to comment Share on other sites More sharing options...
PascalVG Posted April 8, 2013 Share Posted April 8, 2013 Not sure where exactly you use this, but can it be that the order at this point in the program isn't saved to the database yet, and thus not yet got an order id? If not, please elaborate where/how/when exactly you use this module. Pascal Link to comment Share on other sites More sharing options...
Polystore Posted April 8, 2013 Author Share Posted April 8, 2013 afther keep going at it, I discoverd i had to use id instead of id_order. So the code looks like this: <description><![CDATA[ordernummer ' . $order->id . ']]></description> Link to comment Share on other sites More sharing options...
PascalVG Posted April 8, 2013 Share Posted April 8, 2013 :-) yep, that's correct. Nice. Please add [solved] to your question header (see my footer text) thanks for sharing! Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2013 Share Posted April 9, 2013 You don't have to, already done thanks for the solution 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