Osclass Support Forums

Osclass plugin support => Instant Messenger Plugin => Topic started by: jcarrolo01 on January 07, 2019, 09:26:18 PM

Title: Small Bug, i think!!! :)
Post by: jcarrolo01 on January 07, 2019, 09:26:18 PM
I realize each time a user contact a seller, the seller receive two emails, one from the instant messenger plugin and other email from default osclass… So when we choose to replace contact seller functionality the seller receive allways 2 emails…

After a small investigation in instant_messenger script i saw this lines:
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');
}

So i decide and changed to
Code: [Select]
//jdk if(osc_logged_user_id() > 0 && osc_get_preference('contact_seller','plugin-instant_messenger') == 1) {
if(osc_get_preference('contact_seller','plugin-instant_messenger') == 1) {
  osc_remove_hook('hook_email_item_inquiry', 'fn_email_item_inquiry');
}

And voila, now i only receive the email from instant messenger plugin… I tested with logged and non logged users….

I'm right??? Or i'm missing something???

Best Regards
João
Title: Re: Small Bug, i think!!! :)
Post by: MB Themes on January 08, 2019, 08:38:56 AM
@jcarrolo01
Thanks for feedback, we will look into this ;)