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:
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
//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