- Posts: 2
- Thank you received: 0
Multiple Email address for certain type of payment
- hikahop_user
-
Topic Author
- Offline
Less
More
12 years 1 week ago - 12 years 1 week ago #172617
by hikahop_user
Multiple Email address for certain type of payment was created by hikahop_user
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
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: 12 years 1 week ago by hikahop_user.
Please Log in or Create an account to join the conversation.
12 years 1 week ago #172628
by Xavier
Replied by Xavier on topic Multiple Email address for certain type of payment
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
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.
- hikahop_user
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
12 years 1 week ago #172747
by hikahop_user
Replied by hikahop_user on topic Multiple Email address for certain type of payment
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
Thank you
Please Log in or Create an account to join the conversation.
12 years 1 week ago #172811
by nicolas
Replied by nicolas on topic Multiple Email address for certain type of payment
Hi,
You can for example change the line:
to:
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.
You can for example change the line:
Code:
if(!empty($plugin->params['address']) && $mail->mail_name == 'order_status_notification'){
Code:
if(!empty($plugin->params['address']) && $mail->mail_name == 'order_creation_notification' && $mail->data->order_payment_method=='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.160 seconds