- This topic has 4 replies, 2 voices, and was last updated 12 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to create a unique code in the email body
Tagged: customer id, customerID, email body, email tag, invoice, invoice number
I want to use the customer ID in the email body. Every client has already a customer ID set in estore, and this is a unique code and can be easily used as invoice number.
How can I change the php so I can add the customer ID in my email body or use it as a email tag?
There is already one field that you can use for invoice number. It is called the transaction ID. A transaction ID is used to uniquely identify a transaction. This is issued by the payment gateway in most cases so it ties the sale together nicely. Use the following email tag to display the transaction ID of the sale:
{transaction_id}
I thought it was the paypal transaction_id output that the shortcode uses, ifso problem is that it is unique but an invoice number for my accounting should be number+1, and the transaction_id doesn’t do that I believe. So that’s why I wanted to use the customer ID, because that number with every purchase is number+1, hope you can help me out
I see what you mean. I will add a new email tag for a counter. It will start counting from 1 and then increment it by 1 after each sale.
Sounds cool thanks, one more question, I had to do custom changes to estore because of using WPML, and was wondering instead of doing a update, would it also be possible if you just send me the code for the counter?