Before I make any further changes, I want to respond to your comment "I still don't understand what you're trying to achieve and I don't understand where you can trying to consume your serials."
My client needs the ability to ensure that if a client can only use a coupon that it is restricted to the 'unique' serial code that was purchased by a professional who sent the code to the client.
- Professional purchased a 'coupon' product that is linked to HikaSerial
- Upon confirmation of payment, HikaSerial creates a new unique serial code for that product. FYI, this is working!
- Professional sends the 'unique serial code' to the client.
- Client logs into the website, setups an account, purchases the 'program' product and goes to checkout.
- Client enters the unique serial code as their coupon to receive the 100% discount on the price, thus the product is free to the Client.
- Client completes the purchase, is assigned to a ACL group that has access to the program page, receives a confirmation email and, upon login, can view and play the program videos.
Now when I originally discussed this several months ago, I was told that AwoCoupon is what I needed so I purchased it, worked with the AwoCoupon techs but it didn't work. Later on, it was explained by someone at HikaShop (I can't remember the exact forum post), that what I really needed was HikaSerial. So I purchased that product and, although, it does create the unique serial code properly, from what you are saying, a client can't use that unique serial code to get the discount that the professional has purchased. If this is correct and you have to 'setup' a unique HikaShop coupon, then this is a 'serious' limitation. Why? For one reason, using a 'single' coupon code means that whoever has that code can get the discount even though we need it to be restricted to one person. For another reason, if you are getting hundreds of people purchasing these coupon products and HikaSerial is generating hundreds of unique serial codes which can't be used, then the administrator will have to log in on each order created/confirmed, create a 'unique' HikaShop coupon that will be sent to the client so they can checkout the program product, apply the coupon and get the program at no cost. This way you don't have a 'single' coupon code but a 'unique' coupon code for each purchase. This will create a 'maintenance' nightmare.
Now if I am totally confused as to your explanation on how this is suppose to work, I would appreciate a clear and concise explanation of how HikaShop / HikaSerial can automatically create the unique codes (which it seems to do) that can be used during checkout by a different person to obtain the unique discount.