跳至内容

欢迎!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

此问题已终结
作为版主,您可以批准或拒绝该答案。
接受 拒绝

If u want customize the hikashop contact form, when it submitted, then also send email to user's email


First, u can go to below location

com_hikashop -> controllers -> product.php


Then search for 'dst_email'.

And u need build a code to retrieve user's email from the form

1. Used for retrieve the user's email from the form

=================================================

$userEmail = $formData['contact']['email'];

=================================================


2. Used to merge the userEmail as part of the recipient.

=================================================

if (!empty($userEmail)) {

$mail->dst_email = array_merge($mail->dst_email, explode(',', $userEmail));

}

=================================================


So now, when a user submits the form, their email will also be added as part of the recipient, and they will be able to receive the email.

形象
丢弃

您的回复

请大家尽量给个实质性的回答。如果您想回答这个问题或发表评论,只需 使用评论工具。请记住,您可以随时修改您的答案。 - 不用重复回答同样的问题。另外,请不要忘记投票 - 它确实有助于选择最好的问题和答案!

相关帖文 回复 查看 活动
0
12月 24
49
1
3月 24
58
1
11月 23
80
1
11月 23
72
1
3月 24
59