rfrunk Posted October 24, 2010 Share Posted October 24, 2010 I need help assigning a variable from $cart in /classes/PaymentModule.phpTrying to get "id_order" into a variable.This is what I have tried but it does not work.$id_order = '$cart.id_order';Any help would be appreciated. Link to comment Share on other sites More sharing options...
rocky Posted October 24, 2010 Share Posted October 24, 2010 Try using $order->id anywhere after line 124 of classes/PaymentModules.php: $result = $order->add(); Only after the order has been created do you know what the order ID is. Link to comment Share on other sites More sharing options...
rfrunk Posted October 24, 2010 Author Share Posted October 24, 2010 Works great. Thanks 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