Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Insert Order Details In Email

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-01-2015, 12:53 PM
 
cleverwise cleverwise is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 74
 

Default 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!
__________________
Respectfully,

Jeremy

X-Cart 5.3 running on:
* Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled)
* Database: Percona Server
* OS: CentOS
Reply With Quote
  #2  
Old 11-01-2015, 04:08 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 11-02-2015, 12:24 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #4  
Old 11-02-2015, 06:02 AM
 
cleverwise cleverwise is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 74
 

Default 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?
__________________
Respectfully,

Jeremy

X-Cart 5.3 running on:
* Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled)
* Database: Percona Server
* OS: CentOS
Reply With Quote
  #5  
Old 11-03-2015, 04:13 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default 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.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #6  
Old 11-03-2015, 04:52 AM
 
cleverwise cleverwise is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 74
 

Default 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.
__________________
Respectfully,

Jeremy

X-Cart 5.3 running on:
* Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled)
* Database: Percona Server
* OS: CentOS
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:55 AM.

   

 
X-Cart forums © 2001-2020