*

jcarrolo01

  • *****
  • 256 posts
Small Bug, i think!!! :)
« 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

*

MB Themes

Re: Small Bug, i think!!! :)
« Reply #1 on: January 08, 2019, 08:38:56 AM »
@jcarrolo01
Thanks for feedback, we will look into this ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots