Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to create a unique code in the email body

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

  • This topic has 4 replies, 2 voices, and was last updated 13 years, 2 months ago by Ancade.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 16, 2012 at 12:17 pm #5840
    Ancade
    Member

    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?

    March 16, 2012 at 11:03 pm #43081
    admin
    Keymaster

    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}

    March 17, 2012 at 12:37 pm #43082
    Ancade
    Member

    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

    March 18, 2012 at 11:49 am #43083
    admin
    Keymaster

    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.

    March 19, 2012 at 6:07 am #43084
    Ancade
    Member

    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?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ