Hello!

I try this module and receive the error "Failed to obtain product key(s) for ".
Can you help me with them?

Comments

freixas’s picture

Status: Active » Postponed (maintainer needs more info)

Sure.

  1. First, update to version 6.x-1.0.
  2. Next, tell me what, if anything, you did to extend the module.
  3. If you are not a programmer and/or did not extend the module, did you upload some keys?
  4. What exact steps did you use to generate the error?
alexd73’s picture

Status: Postponed (maintainer needs more info) » Active

Yes! Its my mistake as in the second item! I has looked the source code in which shows this error and then I have understood it.
Now I want extend the module to generate a keys by the rules ([$nid] - [Unique code] ). How to I can make it?

freixas’s picture

Assigned: Unassigned » freixas

Why would you want to store the $nid in the key? The $nid is already associated with the product key in the database.

If you really want to do this, you will need to generate product keys dynamically. Read the README.txt file and study the included sample project. Once you understand how uc_product_keys works, you should find it easy to generate whatever kind of key you want.

freixas’s picture

Status: Active » Closed (won't fix)

Closed due to no activity in over 2 weeks.