Jump to content

add id_order to email [SOLVED]


Recommended Posts

Hello everyone,

 

I'm trying to set up my shop to sell tickets, like plane tickets. So I need them to have a unique Code.

My code has to be formatted as A/000, so I can't use the order_name.

 

The solution I have thought is to create a link in the "download product" email template, with a _GET[id_order] and _GET['order_name']  and then parse the XML in mysite.com/api/orders/{id_order}/ to see if the reference is the same as {'order name'}.  In that case I would return a unique Code for the ticket.

 

my link looks like this:

<a href="http://mysite.com/coupon/activation.php?id="&{id_order}&"&Order_name="&"{order_name}">Clicca qui!</a>

 

I have modified the Paymentmodule.php and mailalerts.php files to include the id_order variable in emails following a tutorial I found here on the forum.

 

In the email my link is displayed as follows: http://mysite.com/coupon/activation.php?id=  

 

I'm a noob, not sure what's going wrong

 

Hoping in some help  :)

Edited by Apokas (see edit history)
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...