Contact from product page, on which e-mail adress?

  • Posts: 97
  • Thank you received: 0
11 years 2 weeks ago #168473

-- HikaShop version -- : 2.2.3

Where can i set e-mail adress who will receive email-s from product page request form?

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 2 weeks ago #168483

Hi,

The "product page request form" use the email "contact_request".
The email address used for the recipient is the HikaShop option "From Address" (Main> Emails).

If you want to override the recipient address, there are several possibilities.
- Using an HikaShop plugin with the trigger "onBeforeMailSend"
- Using the "contact_request - preload" email to sent the reciepient. But it require to modify the HikaShop core.

To modify the HikaShop core, you have to edit the controller product ("components/com_hikashop/controllers/product.php") and replace

$mail->reply_email = $element->email;
$mail->dst_email = array($config->get('from_email'));
[code]By[code]
$mail->reply_email = $element->email;
if(empty($mail->dst_email))
	$mail->dst_email = array($config->get('from_email'));
So it will allow you to edit the "$mail->dst_email" in the preload.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum