使用Ubercart for Drupal购买后,如何执行自定义脚本 [英] How can I execute a custom script after purchase with Ubercart for Drupal

查看:116
本文介绍了使用Ubercart for Drupal购买后,如何执行自定义脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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!

顺便说一下 - 我使用Drupal和Ubercart的原因是,我想让我的商业网站看起来像尽可能专业,我看到一个CMS作为出路。我选择了drupal,因为它的开源(免费),灵活,非常搜索引擎freindly,我知道很多其他网站与我一样的想法使用它,除其他原因!我选择了Ubercart,因为它似乎有更多的支持,它似乎更新到等等,但我想我可以转向drupal电子商务模块,如果需要。

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.

反正。所有我想要的是能够生成一个串行密钥,将其添加到MySQL数据库中,一旦我知道付款成功通过电子邮件发送给用户 - 他们如何付款!

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 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...

任何建议或帮助appriciated ...

Any advice or help appriciated...

提前感谢

推荐答案

这可以做到没有问题,我想告诉你认为Ubercart作为一个选择是非常好的,比电子商务更有条理,只是想告诉你,所以你知道你在一个很好的轨道。

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.

我希望你熟悉钩子,如果没有,您可以在任何时候轻松了解它们,在Ubercart中有一个hook_order,它可以让您在新添加,保存,更新或任何其他状态下添加功能,请检查此链接:

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

我希望这有帮助。

这篇关于使用Ubercart for Drupal购买后,如何执行自定义脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆