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

Next Coupon ID Number – How and where is it set?

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Next Coupon ID Number – How and where is it set?

Tagged: coupon id, coupon id number

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 10 months ago by wzp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 1, 2013 at 4:52 pm #9426
    Robert
    Participant

    Can you tell me where the ID number of the coupon is kept. How does the system know what coupon id number to assign the next coupon?

    August 1, 2013 at 8:40 pm #56929
    wzp
    Moderator

    The coupon ID is merely the next sequential row number of the MySQL table that contains the coupon data.

    August 1, 2013 at 9:52 pm #56930
    Robert
    Participant

    So what happens if you delete a coupon? It seems to still up the id number. How does it track that?

    August 1, 2013 at 11:29 pm #56931
    wzp
    Moderator

    It’s an auto increment column. MySQL uses the next highest number. It’s like the Product ID number; you have no say in what ID number gets assigned to what.

    eStore is not “keeping track” of the ID number; the MySQL database is.

    What really matters is the “Coupon Code” that you associate with the ID number. Your customers only ever sees or uses the Coupon Code. You can make each coupon code unique.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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