Multiple Email address for certain type of payment

  • Posts: 2
  • Thank you received: 0
9 years 6 months ago #172617

Hi,
Apologies if this has been answered before , but i didn't find a solution for this.

How can i add multiple email address to send order creation email in certain type of payment method , not in all of the payment methods, without using the business edition of hikashop?

I would be grateful if someone would guide me.

Thank you

Last edit: 9 years 6 months ago by hikahop_user.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #172628

Hi,

You should be able to find a plugin on the forum which allow to add BCCs to the emails.
This plugin can be edited in order to add a PHP check to restrict the add of receivers based on the used payment method.

ps: here is the topic with the plugin
hikashop.com/forum/orders-management/869...or-admin.html#160779

The following user(s) said Thank You: hikahop_user

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

  • Posts: 2
  • Thank you received: 0
9 years 6 months ago #172747

I have installed the plugin but i cannot figure it out how to get payment method name and how to add restriction that only on order creation this BCC will be use , can you please guide me through this.



Thank you

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
9 years 6 months ago #172811

Hi,

You can for example change the line:

if(!empty($plugin->params['address']) && $mail->mail_name == 'order_status_notification'){
to:
if(!empty($plugin->params['address']) && $mail->mail_name == 'order_creation_notification' && $mail->data->order_payment_method=='paypal'){
in the plugin code and that will add a bcc only for the order creation notification and only if the payment method used is paypal.

The following user(s) said Thank You: hikahop_user

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

Time to create page: 0.071 seconds
Powered by Kunena Forum