Jump to content

Get current order (number, client details and order details)


Recommended Posts

Hi, I am new at prestashop (1 day only) and I was asked to send an order to an external resource. What I have done so far.

1) Created an module named orderHook with a function called hookactionValidateOrder

2) Registered it on my prestashop testing site

My question is how to get the current order details?

Many thanks for all kind help

Jorge

orderHook.php

Link to comment
Share on other sites

18 minutes ago, Piotr3qx said:

Hey, did you try?

public function hookActionValidateOrder($params) {
	$order = $params['order'];

	// Rest of a code...
}

 

Hi Sir!  No, I didn't.

I am starting this from nothing and I don't know anything about prestashop. Going to try it now.

I will post results.

Many many thanks for your kind help

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...