admin email

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #111716

Hi guys,

The admin email that is sent does not display the registration information on it - how can I do that?

A code snippet would be very much appreciated!

Mat

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #111720

Hi there,

What do you mean by registration informations?
You can add whatever you want in this email trough the Hikashop email editor in System>Email.

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #111831

Email address for instance

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 4 months ago #111838

If you use HikaShop 2.2, the email address is displayed the admin notification.

You can add it like that:
<?php echo $data->customer->user_email; ?>

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #111843

Sadly I don't have 2.2 yet. Any other way possible?

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #111871

Just edit your email and add the code Nicolas gave you.

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #112015

I don't think the customer variable exists in my version.

When I added that code it returned my email address and not the customer email address.

Last edit: 11 years 4 months ago by Mat.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #112052

Hi,

I think that you are sending notifications about an order created by you, so with your address email as customer email address.
Thanks to try with another order with a different email address and you will see that it's working fine.

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #112204

Xavier wrote: Hi,

I think that you are sending notifications about an order created by you, so with your address email as customer email address.
Thanks to try with another order with a different email address and you will see that it's working fine.


Hi Xavier - sadly I just used a random email address and it did not appear with that code.

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #112206

Actually one of my tests worked where the email was registered in joomla - perhaps I need to do something with the options on the checkout to have new customers register to get the code to work?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 4 months ago #112280
The following user(s) said Thank You: Mat

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

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #114234

That was great - thank you!

For the products that are ordered I want to know what categories they are in so that I can email the admin email to different people ... how might I do that?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 months ago #114385

Hi,

You have to make some SQL request in order to load the "product categories" (in the table hikashop_proder_category).
It requires some PHP and developpement skills.

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.

  • Posts: 217
  • Thank you received: 1
11 years 4 months ago #114404

Maybe there is a link to a thread that can show me or maybe it is easy to do for you?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 4 months ago #114593

There is no such thread.
The code is not 2 lines. We could do that as part of a small custom work.
Otherwise, a possibility is to use HikaMarket Multivendor to assign each product to his vendor and then the vendor will receive an email if one or several of his products are purchased and he will only see his. That way it would be automatic, without any code modification.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum