What's the Technique for Building Domain Packages in AMember?

时光怂恿深爱的人放手 提交于 2019-12-25 00:41:32

问题


I want to use AMember to have people purchase WordPress plugins and themes. However, I want to sell different prices for single domain vs. letting them install like 5-domain packs (and multiples of those). One would go through the AMember workflow to purchase something, and then receive a serial number based on their purchase. They activate the theme or plugin and then put in this serial number in an options panel, and they're off and running with a functioning plugin or theme.

What is the most efficient way to tweak the programming of AMember to accommodate per-domain installations of stuff sold through AMember?

For instance, I was thinking perhaps I need to use this Add Field feature, but then use custom programming against that field.


回答1:


currently, aMember Pro v4 ability to handle products with quantity is disabled. I am working right now to rework and enable this functionality. Once it is done, it will be easy to do what you are asking for, and I will provide a code snippet with explanation.

If you need it ASAP, contact me directly via helpdesk (attn. to Alex Scott) and I will help you to solve you task.




回答2:


Honestly I haven't used amember in a long time ( I would use it in a heartbeat if I need a member area I just don't need one at the moment) so I really don't know a lot about whats going on in the code as I haven't seen it in so long.

I would assume you would code a custom solution to create the serial numbers and then when a payment is made, you would just have it fire off a call to your custom code to create the serial and add it into the DB, a custom filed would be perfect to hold that value. If I understand you correctly aMember would be basically used just to handle that serial number for that user, they buy the serial through aMember, aMember handles the buying and expiring and all that for you so it sounds like a pretty straight forward deal

If I misunderstood your question let me know and I will try to improve my answer for you



来源:https://stackoverflow.com/questions/8848023/whats-the-technique-for-building-domain-packages-in-amember

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!