remember client's emailaddress after `contact us`

  • Posts: 48
  • Thank you received: 1
12 years 9 months ago #47832

Hi,
could not find a thread in your forum about how to remember the emailaddressess of customers who use the `Contact Us` button on product pages. I would like to store these emailaddressess or transfer them to a mailinglist of Acyba, but After customer's ask a question with Contact Us I cannot find their info in backend.
A pity, because these customers showed interest in the business and I want to keep them informed in future.
looking forward to your reply,
Damiaan

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

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 9 months ago #47947

Hi,

You could add that by adding the code below in the class of the file plugins/hikashop/acymailing.php (commercial editions):

function onBeforeSendContactRequest(&$element,&$send){
 if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_acymailing'.DS.'helpers'.DS.'helper.php')){
  return false;
 }
 $myUser = null;
 $myUser->email = $element->email;
 $subscriberClass = acymailing::get('class.subscriber'); 
 $subid = $subscriberClass->save($myUser);
}

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

Time to create page: 0.054 seconds
Powered by Kunena Forum