Jump to content

Order ID parametr


HSeba7

Recommended Posts

Hello. Im trying to adjust order ID parametr to script so order ID's will be passed to external service with review. Any idea what should i adjust in here to pass order ID ? 

w['_ekomiTransactionId'] = 'id_order = $params['id_order']';

 

Link to comment
Share on other sites

Hi,

Can you please send more information about the task what you want to resolve?

Do you want to resolve it in back office or front office? 

After the order was placed? At the order confirmation page? 

More details is needed for us to help you find the appropriate answer. 
Cheers, Leo

Link to comment
Share on other sites

38 minutes ago, Prestachamps said:

Hi,

Can you please send more information about the task what you want to resolve?

Do you want to resolve it in back office or front office? 

After the order was placed? At the order confirmation page? 

More details is needed for us to help you find the appropriate answer. 
Cheers, Leo

Hello.

I want to get order ID after order is placed at the payment confirmation page where i have ekomi script installed. I want order ID to be passed with that script - at the momment random order ID is generated. Im attaching file with payment confirmation where script is attached to.

payment_successful.rar

Link to comment
Share on other sites

Maybe this will give you some idea:
1. Have a look at contactform module
2. On this file modules/contactform/contactform.php have a look at this function : sendMessage
3. Notice the variable {order_name} and how is it assigned using "$order->getUniqReference()"

If you want to get the ID (not reference, but integer id), please refer to getUniqReference() and create a function similar to it that returns the id instead.
See classes/order/Order.php :: getIdOrderProduct(customer, product) for example. 

I hope it makes sense for you?

Good luck!

Edited by s4lvozesta (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
On 2/4/2023 at 4:33 PM, s4lvozesta said:

Maybe this will give you some idea:
1. Have a look at contactform module
2. On this file modules/contactform/contactform.php have a look at this function : sendMessage
3. Notice the variable {order_name} and how is it assigned using "$order->getUniqReference()"

If you want to get the ID (not reference, but integer id), please refer to getUniqReference() and create a function similar to it that returns the id instead.
See classes/order/Order.php :: getIdOrderProduct(customer, product) for example. 

I hope it makes sense for you?

Good luck!

Hello, thanks for response. Managed to do it with smarty variable: {$order.details.reference}

 

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...