*

ColdFusion

  • ***
  • 72 posts
Replace Contact Seller Functionality and emails
« on: May 25, 2017, 03:49:00 PM »
Hi,

when this function is disabled, contact form stops sending emails, although gives a success message. If plugin is completely disabled goes back to normal.

Was that the way it should be?

Thanks

*

MB Themes

Re: Replace Contact Seller Functionality and emails
« Reply #1 on: May 26, 2017, 09:13:37 AM »
@ColdFusion
When functionality is enabled, instant messages are sent instead of mails.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ColdFusion

  • ***
  • 72 posts
Re: Replace Contact Seller Functionality and emails
« Reply #2 on: May 26, 2017, 10:58:36 AM »
When it's enabled it works, I said that when you try to disable it, it doesn't allow native emails to be sent properly.

*

MB Themes

Re: Replace Contact Seller Functionality and emails
« Reply #3 on: May 26, 2017, 11:12:11 AM »
@ColdFusion
In file:
oc-content/plugins/instant_messenger/index.php

You can find code:
Code: [Select]
if(osc_logged_user_id() > 0) {
  osc_remove_hook('hook_email_item_inquiry', 'fn_email_item_inquiry');
}

Try to replace it with:
Code: [Select]
if(osc_logged_user_id() > 0 && osc_get_preference('contact_seller','plugin-instant_messenger') == 1) {
  osc_remove_hook('hook_email_item_inquiry', 'fn_email_item_inquiry');
}

and test again.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ColdFusion

  • ***
  • 72 posts
Re: Replace Contact Seller Functionality and emails
« Reply #4 on: May 26, 2017, 11:58:31 AM »
Thank you,

I think that fixed it. Seem to be working as expected now.

Cheers