Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8698831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:48:30+00:00 2026-06-13T01:48:30+00:00

I don’t obviously expect someone to write this for me, but can someone give

  • 0

I don’t obviously expect someone to write this for me, but can someone give me a semi-detailed explanation of the files and approach to do something as simple as this???

I have been trying to figure this out for 2 days. The idea here is just that some of our products should create a simple license key on checkout and send that key to a 3rd party system.

This is the task at hand:

  1. Add a new table into the database called license_keys with the following fields: customer_id, transaction_id, license_key, and transaction_notes

  2. Add a new checkbox when configuring a product called is_licensed_product.

  3. If this checkbox=yes then:
    a. during checkout, magento generates a random alphanumeric key in this format ########-######## where # is a capital letter or a number.
    b. this is generated for EACH line item.
    c. this is stored in the licence_keys db table along with the transaction_id, etc.
    d. an API call is made to a remote server: test.com/recieve?key=12345&email={email}&transaction_id={transaction_id}&customer_id={customer_id}&license_key={license_key}
    e. for each lineitem, this API will be called, so that each individual license is sent there.

  4. This information should then be visible:
    a. in the admin system
    b. on the receipt sent to the client
    c. on the checkout page

  5. a) When the license key is generated, b) when an API call is made, and c) when the API response is received, all of this information should also put into a array and put into the transaction_notes in the db.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:48:32+00:00Added an answer on June 13, 2026 at 1:48 am

    There are many, many, many ways to do this. It’s likely that an observer would be useful, perhaps on sales_order_place_after [link], which you could use to do some post-processing.

    In your observer, grab the just-placed order object, look for your license-keyed products, generate the keys, do the inserts, possibly reach out to your API or queue it (be careful about handling slow- or non-responding remote system).

    For an example of the core using this event to perform some post-processing of sales rule usage, see Mage_SalesRule_Model_Observer::sales_order_afterPlace() [link].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't ask me why but i can't use this method because I need to
Don't know why but I can't find a solution to this. I have 3
I don't know why, but this code worked for me a month ago... maybe
Don't know if anyone can help me with this or if it's even possible.
I don't know if this question is trivial or not. But after a couple
Don't know why this doesn't work. I can't do implicit animation for a newly
Don't know if this is the right place to ask this, but I will
Don't know why this is happening, but after submitting a form via JS (using
(Don't know if this is strictly on-topic, but I don't see any better Stack
Don't know if this is an eclipse specific problem but whenever I declare a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.