X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Insert Order Details In Email (https://forum.x-cart.com/showthread.php?t=72983)

cleverwise 11-01-2015 12:53 PM

Insert Order Details In Email
 
Hello Community,

I was wondering if anyone knows the tags to insert the order (invoice id) and order email into the Order Purchase template.

I have edited the template in the Admin panel to include a link but want to insert the invoice id and invoice/order email into the html.

I tried {order_id} and {order_email} but that didn't work as it just printed that text.

So again I have using the HTML text link editor something like:

http://www.mysite.tld/shop/?target=my_custom_target&order_id={order_id}&order_email={order_email}

Thank you!

totaltec 11-01-2015 04:08 PM

Re: Insert Order Details In Email
 
I'd probably approach this by building the url in PHP and then calling it in the template.

I guess both of those variables are present in the email that is already going out? How are they referenced?

qualiteam 11-02-2015 12:24 AM

Re: Insert Order Details In Email
 
Hello Jeremy,

Quote:

I have edited the template in the Admin panel to include a link

How did you do this? I believe there is no e-mail template for purchase orders that you could edit in the back end.

cleverwise 11-02-2015 06:02 AM

Re: Insert Order Details In Email
 
I edited the "Order processed" message using the editor in the admin panel. I added the text I wanted and hyperlinked the desired anchor text.

However I am not sure how to get X-Cart to insert the order id (invoice id) and order email into the link.

I realize order purchased can mean purchase order but what I was referring to is when an order has been paid I wanted some custom information sent out in the order confirmation. I again have the text working fine I just am trying to insert those two pieces of information.

Any thoughts?

razortw 11-03-2015 04:13 AM

Re: Insert Order Details In Email
 
Hello.
Such anchors as 'order_id' or 'order_email' are not available in the WYSIWYG editor for email notifications.
You will need to build a custom module in order to add such anchors.

cleverwise 11-03-2015 04:52 AM

Re: Insert Order Details In Email
 
Thanks! That is unfortunate X-Cart doesn't support tags to insert data in email like many systems do. Oh well.


All times are GMT -8. The time now is 08:18 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.