Option to sent order created email only on bank transfer payment

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
11 months 1 week ago #357451

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 3.10.12

The order created email get sent every time an order is created. The problem is that the email also get sent when an order is not payed or canceled. Is there a wat to restrict this email only to bank transfer as this is the most appropriate place to send an order created email.

Is there on option for this or can I add something to an override?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 months 1 week ago #357459

Hi,

Yes.
If you want to have the order creation notification to be sent or not based on the payment method selected, you can add such code in the HTML version of the email via the System>Emails menu :

<?php if($data->order_payment_method!="banktransfer") $mail->published=0; ?>

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

Time to create page: 0.055 seconds
Powered by Kunena Forum