user registration email alert

  • Posts: 3
  • Thank you received: 0
13 years 2 months ago #25941

hello sirs,

I am using the bank transfer payment method in my checkout and it ends with a registration page - if user isnt logged in.

So the user fills up the registration form, etc.

kindly, how can I make hikashop to send the details of the registration (name, email address...whatever the client filled up in the registration form) to the admin email address.

I have observed that only the order creations get an admin email alert.

regards
Tokunbo


Happyness is my middle name

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25955

Hi,

There is no option for that. You would have to build a plugin to generate such email on registration.

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

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #26214

Hi,

I need this too. As my client wanted me to changed all joomla registration for Hikashop registration. Also if we were to going to use custom fields for users is going to be needed anyway.

So I´ll try to make the plugin.

I´ll will need some help to start with,

For instance, what is the name of the event firing the plugin?

Thanks

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #26216

Hi,

You can look at the example plugin of the group user for a skeleton of user plugin. The event name will be different based on your version of Joomla.

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

  • Posts: 14
  • Thank you received: 0
13 years 1 month ago #26432

Hi,
I did the plugin and it is kind of working.

You can install it as a normal plugin and then you have to enable it.

It sends an email to all SuperAdministrator with the same information that is sent when the user uses joomla registration.

If the user uses Hikashop registration, the admin will receive one mail, the one from the plugin.

But if the user uses normal joomla registration it should receive two emails. One from joomla and another from the plugin.

In my case is not a problem because I substituted all registries with the one from hikashop. But this could be a problem.

Ok, I said it is kind of working, because I could not make JText::_ to work in the plugin, so the ACCOUNT_DETAILS_FOR for the subject and the SEND_MSG_ADMIN for the body is fix on a variable and not using the languages files.

Maybe Nicolas can help on solving this so the plugin can be widely used by Hikashop community.

Thanks

File Attachment:

File Name: adminmail.zip
File Size:2 KB

Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 1 month ago #26456

Hi,

That's great.

Note that on joomla 1.5, there is no underscore to the translation key ACCOUNT DETAILS FOR. However, these translation keys are only in the com_user translation file, so it won't be loaded in the plugin when not registering via the joomla standard registration screen.
The easiest solution is to put your translations in the override area when editing your translation file via the interface in the tab Languages of the config of HikaShop. These overrides will work throughout the website front end:
ACCOUNT DETAILS FOR="Account Details for %s at %s"
SEND_MSG_ADMIN="Hello %s,\n\nA new user has registered at %s.\nThis e-mail contains their details:\n\nName: %s\nE-mail: %s\nUsername: %s\n\nPlease do not respond to this message. It is automatically generated and is for information purposes only."

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

Time to create page: 0.076 seconds
Powered by Kunena Forum