Skip to main content

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

More
12 years 1 month ago #168473 by shpuser
-- 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.

More
12 years 1 month ago #168483 by Jerome
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
Code:
$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.

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

Time to create page: 0.166 seconds
Powered by Kunena Forum