redbeardmedia Posted February 4, 2013 Share Posted February 4, 2013 Hi, I'm extending on hookActionPaymentConfirmation($params) and I want to use the supplier data for the products in that cart but I can't seem to find where to find it. Can anybody help? With kind regards, Martijn van Maasakkers Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted February 4, 2013 Share Posted February 4, 2013 Hi, you can get it from supplier object $supplierObj = new Supplier($id_supplier); Regards Link to comment Share on other sites More sharing options...
redbeardmedia Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks... But that much I did find. I have the cart object in $params but I can't find the supplier and/or the products in the cart... Maybe I wasn't clear enough in my initial question (my apologies)... Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted February 4, 2013 Share Posted February 4, 2013 I think your are have id_order in your $params: Hook::exec('actionPaymentConfirmation', array('id_order' => (int)$order->id)); It meens that you can get order items, and also id_supplier on each. Regards 1 Link to comment Share on other sites More sharing options...
redbeardmedia Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks! I found it! 1 Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted February 5, 2013 Share Posted February 5, 2013 Now, you can mark topic with [sOLVED] Regards 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