在我们的表格(wordpress)上申请后,向客户返回一个唯一的号码 [英] Return a unique number to the customer after apply on our form (wordpress)

查看:60
本文介绍了在我们的表格(wordpress)上申请后,向客户返回一个唯一的号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Wordpress建立一个网站,其中有一个必须由客户填写的表格。我希望每位将完成填写并获得成功消息的客户都可以通过电子邮件获得唯一的编号,然后与公司联系以获取其余程序。我还在表单中使用contact-form-7插件。有任何想法或插件可以自动执行此操作吗?即使需要代码,也请告诉我!
预先感谢!

I'm making a web site with Wordpress, in which there is a form that has to be filled by customers. I want for every customer that will apply, after complete the filling and get the success message, to get via email a unique number and then contact with the company for the rest procedures. I'm also using contact-form-7 plugin for the form. Any idea or any plugin that could do this automatically? Even if code is needed, let me know! Thanks in advance!

推荐答案

您可以使用contact-form-7-dynamic-text-extension插件。

You could use the contact-form-7-dynamic-text-extension plugin.

安装插件,添加

    /* Generate Quote Ticket */
function genTicketString() {
    return substr(md5(uniqid(mt_rand(), true)), 0, 8);
}
add_shortcode('quoteticket', 'genTicketString');

到您的functions.php中,并添加

to your functions.php and add

Your Reference number: [dynamictext ticket "quoteticket"]

到联系表7中的表单中(或通过CSS使该字段不可见)。

to your form in contact form 7. (or make this field invisible through css)

最后,在您的电子邮件正文中添加[票证]。

Lastly, add [ticket] to your e-mail body.

http://wordpress.org/support/topic/contact-form-7-generating-reference-number ,由AMCD撰写。

Found this solution on http://wordpress.org/support/topic/contact-form-7-generating-reference-number and was written by AMCD.

这篇关于在我们的表格(wordpress)上申请后,向客户返回一个唯一的号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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