购物车到电子邮件
我使用 simplecartjs 在我的网站上创建一个购物车,您可以在其中选择元素并将其发送到您的购物车...下一步将是结账流程,但出于业务原因,不会附加结账流程,并且会询问一份包含姓名、电子邮件和订单取货日期的简单表格。现在,订单必须发送到将完成订单的电子邮件地址(公司内)。
问题:如何将购物车的内容发送到电子邮件正文或作为附件?
I use simplecartjs to make a shopping cart on my website where you can select element and send it to your cart... next step, will be the checkout process, but for business reason, no checkout process will append, and a simple form with name and email and date for order pickup will be ask. Now the order must be send to an email address (at the company) that will fullfill the order.
The question : how to send the content of the cart to an email body or as attachement ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这会将电子邮件订单、补充字段添加到用户“电话和地址”,
在结帐期间检查用户是否已注册,如果没有,将重定向到注册。
仅在成功发送电子邮件订单后才会清除购物车。
将向店主发送 2 封电子邮件“[email protected]”并发送到用户电子邮件,以便他看到订单
成功订单后,需要为感谢部分制作一个新页面
simplecartjs:第 288 行左右位于我的
sendjs.php
中您将需要 WordPress 的 Register Plus 插件来添加额外的内容用户“电话和地址”的 2 个字段
请务必检查
添加注册字段
添加个人资料字段
必需的
This Will add the email order, suplimentary fields to the user "Phone and Adress",
Check during the CheckOut the the user is registered if not will redirect to registration.
WILL CLEAR Shopping cart only after succesful email order sent.
Will send 2 e-mail to the shop owner "[email protected]" and to the users email so he sees the order
Will need to make a new page for the Thank You part after succesful order is made
simplecartjs: around line 288 is in mine
sendjs.php
You will need Register Plus plugin for wordpress to add the extra 2 fiels to the user "phone and address"
be sure to check
Add Registration Field
Add Profile Field
Required
您应该向 simplecartjs 添加新的结帐方法:
这将创建新的表单元素并将购物车数据提交到 sendjs.php。通过在 simplecart 选项中设置 me.checkoutTo = 'Email' 来启用此结帐方法。
现在创建一个新的 sendjs.php 文件:
这将发送电子邮件并重定向到您还应该创建的thankyou.html 页面。
You should add new checkout method to simplecartjs:
This will create new form element and submit cart data to sendjs.php. Enable this checkout method by setting me.checkoutTo = 'Email' in simplecart options.
Now create a new sendjs.php file:
This will send the email message and redirect to thankyou.html page you should also create.