Skip to Content

Welcome!

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.

This question has been flagged
As a moderator, you can either validate or reject this answer.
Accept Reject

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.

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Related Posts Replies Views Activity
0
Dec 24
50
1
Mar 24
59
1
Nov 23
80
1
Nov 23
73
1
Mar 24
60