1 / 4
Nov 2009

I set up a product with the following options:

1. Send generated codes

2. Let buyers edit quantity in cart



If the buyer sets quantity to 3 e.g. only one code is generated.

Quantity = 3

Generated Codes sent = 1



However, if I re-configure the product:

1. Send stored codes

2. Let buyers edit quantity in cart



then the number of codes sent to the buyer equal the quantity:

Quantity = 3

Stored Codes sent = 3



It's not a big deal since I could easily create stored codes, but for one particular product I have, generated codes would be easier.



Is this by design or a bug :slight_smile: ?



Cheers, EP

  • created

    Nov '09
  • last reply

    Nov '09
  • 3

    replies

  • 1.1k

    views

  • 2

    users

Send Generated Codes only hits your keygen URL once for each purchase, regardless of the quantity ordered. Whatever output your keygen URL returns is what we pass back to the buyer. It would be up to you to program your keygen script to output multiple codes for multiple quantities by parsing the fields we POST to your keygen URL.

I am using the keygen URL provided by ejunkie/armadillo.

Seems like this is set up to work like you described.

Or can I pass a special parameter to that keygen URL to get x codes for x quantities ?

Thanks,EP

Hm, we merely installed the SoftwarePassport/Armadillo keygen script provided by Silicon Realms (after a once-over to make sure it wouldn't introduce any security/stability issues), so it is what it is and does what it does. If it only outputs one key regardless of quantity, then that's all it can do, so you'd probably want to just disable the "Let buyer edit quantity" setting for that product.