Apokas Posted October 31, 2013 Share Posted October 31, 2013 (edited) 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 October 31, 2013 by Apokas (see edit history) Link to comment Share on other sites More sharing options...
Apokas Posted October 31, 2013 Author Share Posted October 31, 2013 SOLVED!around the {id_order} I should have put brackets "" 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