使用 Ubercart for Drupal 购买后如何执行自定义脚本

发布于 2024-10-06 04:29:05 字数 656 浏览 1 评论 0原文

我希望我没有以错误的方式使用 stackoverflow.com:问这个问题!

最近,我冒险开始自己的业务来销售软件,但没有意识到电子商务带来的可怕影响 - 这是购买我提供的软件的唯一方式。如果我只是出售文件下载和/或运输,那就没问题了……但我不是!我希望它会更容易(而且便宜得多)我只提供数字下载!

这一切都很好,我只有一个障碍需要克服 - 一个很大的障碍,那就是......自动化序列密钥干扰!

顺便说一句 - 我使用 Drupal 和 Ubercart 的原因是,我想让我的商业网站看起来尽可能专业,我认为 CMS 是最佳选择。我选择 drupal 是因为它开源(免费)、灵活、非常友好的搜索引擎,而且我知道许多其他与我有相同想法的网站都使用它,还有其他原因!我选择了 Ubercart,因为它似乎有更多的支持,而且看起来更最新,等等。但我想如果需要的话我可以转向 drupal 电子商务模块。

反正。我想要的只是能够生成一个序列密钥,将其添加到 MySQL 数据库,并在我知道付款成功完成后立即通过电子邮件将其发送给用户 - 无论他们如何付款!

我已经有剧本了!

我只是不知道如何使用它!当我如何知道付款何时完成时,如何执行它?我如何知道付费客户的详细信息,例如电子邮件、姓名和支付金额等...

有任何建议或帮助...

提前致谢

I hope I'm not using stackoverflow.com in the wrong way: asking this question!

Recently I ventured in to starting my own business to Sell software without realising the terrible implications that come with ecommerce - the only way to buy my software I offer. This would be fine if I was just selling the file downloads and/or shipping...But I'm not! I the hope that it would be easier (and alot cheaper) I am only offering digital downloads!

All this is fine, and I only have one hurdle to overcome - a big hurdle that is.. automating serial key disturbution!

By the way - the reason I'm using Drupal and Ubercart is, I wanted to make my business website look as professional as possible and I saw a CMS as the way to go. I picked drupal because its open source (free), flexible, very search engine freindly and I knew that lots of other sites with the same idea as me used it, among other reasons! AND I picked Ubercart because it seemed like there was more support for it and it seemed more up to date, etc. But I suppose I can turn to drupal ecommerce module if needs be.

Anyway. All I want is to be able to generate a serial key, add it to a MySQL database and sent it to the user via email as soon as I know that the payments gone through sucessfully - how ever they payed!

I've got the script for that!

I just don't know how to use it! How do execute it, when I some how know when the payments gone through? And How do I know the paying customers details like email, name and amount paid, etc...

Any advice or help appriciated...

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我闹别瞎闹 2024-10-13 04:29:05

这是可以毫无问题地完成的,我想告诉你,Ubercart 作为一个选择非常好,而且比电子商务更有组织性,只是想告诉你这一点,这样你就知道你走在一条良好的轨道上。

我希望你熟悉钩子,如果不熟悉,你很快就能轻松理解它们,在Ubercart中有一个hook_order,它使你能够在新添加、保存、更新订单或任何订单时添加功能其他州,请检查此链接:

http://www.ubercart.org/docs/api/hook_order< /a>

我希望这足够有帮助。

This is can be done with no problems, i want to tell you that Ubercart as a choice is very good , and more organized than ecommerce, just wanted to tell you that so you know you are on a good track.

I hope you are familiar with hooks, and if not , you can understand them easily in no time, in Ubercart there is a hook_order which gives you the ability to add a functionality when the order is being newly added , saved, updated , or any other state , check this link :

http://www.ubercart.org/docs/api/hook_order

I hope that was helpful enough.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文