Collect on delivery payment plugin

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #200992

-- HikaShop version -- : HikaShop Business: 2.4.0
-- Joomla version -- : 3.4.1

I've been trying different configurations here to prevent the order email being sent to the customer after each order. I'd prefer it if it was sent when the order is confirmed or shipped.

Is this possible? I read the help documentation .. www.hikashop.com/support/support/documen...ondelivery-form.html but it's not 100% clear what the options below actually do.


Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 6 months ago #200998

Hi,

HikaShop send an email when the order is created ; you also have to unpublish that email.
The "order status notification" option in the payment plugin is to send (or not) an extra email when the order status is set to what you selected for the option "order status".
In case where you set the setting to "pending" (for example), you can decide to send an email to the customer for that "pending" status. But because you are using "created" ; the setting "order status notification" have any impact.

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: 158
  • Thank you received: 5
9 years 6 months ago #201149

Ah, ok, I understand how it works now. Is it possible to unpublish the 'order created' email for just this payment type please?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 6 months ago #201158

Hi,

To do so, you have to create an override of the email and add a condition to not send the email when the order payment method is "collect on delivery".
The email is to modify the email object in the preload:

if($data->order_payment_method == 'collectondelivery')
   $mail->published = false;
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: 158
  • Thank you received: 5
9 years 6 months ago #201216

Thanks, where do I add this data? Where is the preload section located?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 6 months ago #201218

Hi,

When you edit an email via the menu System>Emails, you can scroll at the bottom of the page and you'll find the "preload" section where you can add that code.

The following user(s) said Thank You: serbofleconcepts

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

  • Posts: 158
  • Thank you received: 5
9 years 6 months ago #201264

Thanks, this is now working as I want it.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum