Jump to content

Impossible to get id_order variable in email conf (PS 1.6.1.13)


seog

Recommended Posts

Hi all

 

I cant show in email template order_conf the numeric ID ORDER instead of random reference formed GXKUSLXXX that is very hard for customers tell us by phone these alphanumeric words.

All the codes that worked in previous PS 1.5 versions dont work in PS 1.6.1.13

 

I tried adding next variables in classes/PaymentModule.php changing around line 582 and same variables around line 742:

'{id_order}' => $order->id,
'{order_name}' => $order->getUniqReference()

for:

'{id_order}' => (int)$this->id_order,
'{order_name}' => (int)$order->id,
'{ord_id}' => (int)$order->reference,
'{or_id}' => $order->reference,

 

After I added in email templates all variables {id_order} {order_name} {ord_id} {or_id} to test these variables and only works {order_name} in order_conf email template.

In all others emails templates works the variable {id_order}, it is like if the variable {id_order} only works AFTER the order confirmation.

 

Any suggestions?

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

52 minutes ago, jgamio said:

try change   $order->id  for $this->currentOrder

 

Sorry jgamio, it was tested but is not working in order_conf email. It give me in email the words {id_order} instead of order number as with the variables that i tried

thank you

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