fbpx

WCMp Catalog Enquiry Frontend

WCMp Catalog Enquiry

WCMp Catalog Enquiry Frontend Open

Viewing 56 reply threads
  • Author
    Posts
    • #118070
      Ivan Gacesa
      Participant

      How to require visitor to login for submitting WC Enquiry form on product page (not to display form only for logged user)?
      If someone who is not logged in visit product page and click on Enquiry button to show label such as ‘you must login to submit the enquiry form’.

      On my account page (customer login) text in the first column is cropped, how to show only the product name in the first column without enquiry text (enquiry text should be displayed on the right side)?

      On the right side for the profile picture (class chat-img) there is no img tag, just url with double // on the beginning.

      What does the status message Publish (it’s displayed just like label, not button)?
      How to translate this word Publish?
      How to hide Quantity label?

      Please look at attached screenshot.

      On vendor dashboard dashboard/catalog-details/ how to hide customer email which is shown near the customer username?
      We want to use plugin, not to motivate customer and vendor to write emails 🙂

    • #118096

      Hello,

      Thank you for reaching out to us.

      Regarding the show label, do you want to show a pop up message for not logging users?

      Regarding the other parts, can you please explain your query in detail with help of screenshots so that we can understand your requirement easily and help you more efficiently.

    • #118098
      Ivan Gacesa
      Participant

      Hello,

      We want to show info when visitor click on the product page button for enquiry form ‘you must login to submit the enquiry form’.

      If you select from the plugin settings ‘show enquiry form only for logged user’ someone who is visitor (not logged in) doesn’t have enquiry button and doesn’t know that we have enquiry form on the website and how it works.

      For other questions I attached screenshot in the previous post and links, so please take a look at it.
      Which of these things you can’t find?

    • #118198

      Hello,

      You can allow all users to submit the inquiry form catalog settings as you can see here https://prnt.sc/10u8ca6

      Regarding the other part, sorry we are unable to understand your query from the screenshot attached. Our answers are inline.

      On my account page (customer login) text in the first column is cropped, how to show only the product name in the first column without enquiry text (enquiry text should be displayed on the right side)?
      >> on my account page which section that you are referring to in the screenshot attached can you please highlight that area.

      On the right side for the profile picture (class chat-img) there is no img tag, just url with double // on the beginning.
      >> Which profile picture are you referring to? The status message as published is on which page? A screenshot will be much appreciated

      What does the status message Publish (it’s displayed just like label, not button)?
      How to translate this word Publish?
      How to hide Quantity label?
      >> Which page are you referring to? A screenshot will be much appreciated

      On vendor dashboard dashboard/catalog-details/ how to hide customer email which is shown near the customer username?
      >> please share screenshot

      Kindly explain all the queries in detail so that we can help you more efficiently.

    • #118223
      Ivan Gacesa
      Participant

      Hello,

      If you select that the enquiry form is visible for all users (your screenshot) each visitor can submit the form without an account on the website. If the visitor is not register on the website vendor can only send enquiry answer by email?
      That’s why I ask how to redirect visitor to login/register page and exchange messages through plugin and vendor dashboard, not via emails.. We want the enquiry form can be submitted only by someone who has an account on the website.

      Screenshot which I sent shows My account page ../my-account/enquiry/ tab – refer to WC Catalog Enquiry pro plugin.
      Please open screenshot and look at the red circles.

      For the vendor dashboard I sent url …/dashboard/catalog-details/ Our aim is to exchange queries through WC Enquiry plugin, without using email to exchange messages between customer and vendor.

    • #118276

      Hello,

      Regarding all your requirements, we have provided the hooks and filters where you have to do the required changes at your end.

      For logout customization use

      woocommerce_single_product_summary
      Copy

      this filter and remove our code and modify by yours.

      Regarding removal of Quantity and enquiry text, modify in this

      wp_ajax_infor_enquiry_chat_histry
      Copy

      ajax file to modify text.

      To disable email in the time of send message return

      wc_catalog_enquiry_send_mail_customer
      Copy

      make this filter false

      Regarding publish word which is coming directly from database (this is wordpress status) and it is define in the post status.

    • #118301
      Ivan Gacesa
      Participant

      Hello,

      We didn’t understand each other. Could you please invite someone else from team @Moumita, @Raju, @abhirup.. We can check my account page and vendor dashboard on your demo website?

      >> For logout customization use
      I didn’t write about logout

      >>Regarding removal of Quantity and enquiry text, modify in this
      >>wp_ajax_infor_enquiry_chat_histry
      Can you add css class for these elements so we can hide them on the front (all html elements need specific css classes..)?

      >>To disable email in the time of send message return
      We didn’t want to disable email notification. We want to hide email address on vendor dashboard frontend, why do you add email address near username and without specific css element (also first letter capitalized)?

      How can we display enquiry button for visitor who is not logged in, but for submit the form visitor must login?

      Did you check the left column on my account page (circled on the screenshot) how the message text is cropped?
      Text is cropped by css overflow:hidden on element .inbox-people .chat-ib p, but position for text message is right column, not left, so this is bug.

      What about customer profile picture on my account page – right side (css class chat-img) there is no tag, is this a bug?

      Did you check vendor dashboard url …/dashboard/catalog-details/ ?
      There is also Publish and another statuses, how can we use it?

      Our aim is to exchange queries through WC Enquiry plugin, without using email to exchange messages between customer and vendor.

    • #118331

      Hello,

      Our answers are inline

      >> For logout customization use
      I didn’t write about logout

      >>> Sorry for the inconvenience caused. We have shared the hook/filter where you have to do the changes later in this reply.

      ————————————————————————————————

      >>Regarding removal of Quantity and enquiry text, modify in this
      >>wp_ajax_infor_enquiry_chat_histry
      Can you add css class for these elements so we can hide them on the front (all html elements need specific css classes..)?

      >>> use this

      wp_ajax_infor_enquiry_chat_histry
      Copy

      remove action then use add_action and then you can do the modification as per your choice.

      Reference of remove action : https://developer.wordpress.org/reference/functions/remove_action/

      Reference of add action : https://developer.wordpress.org/reference/functions/add_action/

      ———————————————————————————————————-

      >>To disable email in the time of send message return
      We didn’t want to disable email notification. We want to hide email address on vendor dashboard frontend, why do you add email address near username and without specific css element (also first letter capitalized)?

      >>> Regarding the first letter capitalized issue, it will be fixed in our next update.

      Regarding hide email, use this

      wp_ajax_infor_enquiry_chat_histry
      Copy

      remove action then use add_action and then you can do the modification as per your choice.

      Reference of remove action : https://developer.wordpress.org/reference/functions/remove_action/

      Reference of add action : https://developer.wordpress.org/reference/functions/add_action/

      ——————————————————————————————————–

      How can we display enquiry button for visitor who is not logged in, but for submit the form visitor must login?

      >>> You have to do custom coding at your end, use

      woocommerce_single_product_summary
      Copy

      use this filter and remove our code and modify as per your requirement.

      ————————————————————————————————–

      Did you check the left column on my account page (circled on the screenshot) how the message text is cropped?
      Text is cropped by css overflow:hidden on element .inbox-people .chat-ib p, but position for text message is right column, not left, so this is bug.

      >>> By default flow the account page message text is cropped.

      ——————————————————————————————–

      What about customer profile picture on my account page – right side (css class chat-img) there is no tag, is this a bug?

      >>> We are unable to understand this query. Kindly explain in detail. By default flow this is what we see in my account page (https://prnt.sc/10w2ko3)

      ——————————————————————————————

      Did you check vendor dashboard url …/dashboard/catalog-details/ ?
      There is also Publish and another statuses, how can we use it?

      >>> The publish status through which you can mark the customer query as read, closed, unread. In that manner it will be easier for the vendor to manage the customer query as you can see here https://prnt.sc/10w442o

    • #118337
      Ivan Gacesa
      Participant

      Hello,

      I posted specific things, we bought the WC Enwuiry pro plugin which has bugs. Your answer doesn’t help even I sent screenshots and circled problems. This screenshots are from frontend of your plugin, not about general wordpress actions so we don’t want to code and resolve plugin bugs..

      Could you please invite someone else from team @Moumita, @Raju, @abhirup.. We can check my account page and vendor dashboard on your demo website?

      If you send something like
      >>> By default flow the account page message text is cropped.
      I found that you don’t want to resolve it, please look at screenshot.

    • #118370

      Hi @Ivan Gacesa, sorry for the inconvenience.

      we checked your query. Our replies are inline :

      – How to require visitors to login for submitting WC Enquiry form on product page (not to display form only for logged user)?
      If someone who is not logged in visit product page and click on Enquiry button to show label such as ‘you must login to submit the enquiry form’.

      >> Currently, as you know we display the form for either logged in or logged out. Now, if you want to display the login form for looged out user then you have to do custom code.

      – On my account page (customer login) text in the first column is cropped, how to show only the product name in the first column without enquiry text (enquiry text should be displayed on the right side)?

      >> It seems like theme conflict issue just to be sure, please share a temporary admin access of your staging site, so we can check.

      – On the right side for the profile picture (class chat-img) there is no img tag, just url with double // on the beginning.

      >> As you can see, we didn’t face such issue: https://prnt.sc/10wyw5c

      So, please share your site, so we can check.

      – What does the status message Publish (it’s displayed just like label, not button)?
      How to translate this word Publish?
      >> we will remove that in our next update.

      – How to hide Quantity label?

      >> Do you only want to hide the quntity label, or the whole field : https://prnt.sc/10wz2qv

    • #118402
      Ivan Gacesa
      Participant

      Hi @Moumita, thank you for the answer.

      >> Currently, as you know we display the form for either logged in or logged out. Now, if you want to display the login form for looged out user then you have to do custom code.
      Is there a way to check whether the visitor is logged in or not, and for logged in user WC Enquiry button should open the enquiry form and for logged out just notification message ‘You must login to submit WC Enquiry form’?

      >> It seems like theme conflict issue just to be sure, please share a temporary admin access of your staging site, so we can check.
      I think it’s not necessary to waste your time for logging (we didn’t remove your account on staging site). We can check all these things on your screenshots, see attachments and rounded items.

      For testing, please add account photo of the vendor, customer and product.

      How do we hide quantity and email address on WC Enquiry My account page and Vendor dashboard?

    • #118455

      Hi @Ivan Gacesa, our replies are inline:
      – Image issue
      It was an issue inn our site. We have fixed this.

      – Queries
      >> This video will help you out : https://www.loom.com/share/2f151bab4e294563b259fb372adba9fe

      – Remove fields
      >> In order to to remove email and quantity field, you need to do some custom code. Please share a temporary admin, ftp access of your staging site so we can add that.

    • #118489
      Ivan Gacesa
      Participant

      Hi @Abhirup

      Thank you for confirming image issues. Please let @Srutakirty and others in the support team know how the plugin works, because the plugin has the great options.

      For the loom video, I don’t think we understand each other. You’re logged in on this video, please log out and test. We want to show enquiry button for visitors (not logged in user) and notification message ‘You must login to submit WC Enquiry form’ – to show this enquiry option for all web site visitors and persuade visitor to login and use enquiry form 🙂

      To remove a fields it’s easier to use specific css class for all elements so we can hide this elements on the frontend. It’s not needed to coding… Of course I’ll send admin access of staging site in the next private message (your wcmpadmin account still works).
      We don’t want to disable emails at all because we’re using vendor and customer email for message notification.

    • #118492
      Ivan Gacesa
      Participant
      This reply has been marked as private.
    • #118491
      Ivan Gacesa
      Participant
      This reply has been marked as private.
    • #118526
      This reply has been marked as private.
    • #118534
      Ivan Gacesa
      Participant

      It’s not such a complicated code to show an info message for not logged visitor and select the option on WC Enquiry pro plugin Settings – Catalog mode only for logged in user.

      add_action(‘woocommerce_single_product_summary’, ‘wc_enquiry_message’, 100 );

      function wc_enquiry_message() {
      if(!is_user_logged_in()) {
      $message = __(“You need to be logged in…”, “woocommerce”);
      $button_link = get_permalink( get_option(‘woocommerce_myaccount_page_id’) );
      $button_text = __(“Login or register”, “woocommerce”);
      $message .= ‘ ‘.$button_text.’‘;
      echo $message;
      }
      }

      We exchanged more than 15 messages without result.
      Please resolve the bugs and add css class to all your custom coded elements in paid plugins. Also please test and add translation options for all rounded elements on screenshots and email notifications (like Find the product Link, Product SKU, Product name etc).

      Please send the screenshot of WC Enquiry message on my account page (where is a place for photo, name, email, message – on the left or the right side).

    • #118591
      WCMp Support
      Keymaster

      @Ivan Gacesa, our team will check this and get back to you.

    • #118665

      Hi,
      kindly add this code in the function.php of the current active theme :

      add_action('woocommerce_single_product_summary', 'wc_enquiry_message', 10 );
      
      function wc_enquiry_message() {
        if(!is_user_logged_in()) {
          $button_link = get_permalink( get_option('woocommerce_myaccount_page_id') );
          $button_text = __('Login or register', 'woocommerce');
          echo '<a class="button continue" href="' . $button_link . '">'.$button_text.'</a>';
        }
      }
      Copy

      Regards,

    • #118668
      Ivan Gacesa
      Participant

      Hi @Abhirup

      In the previous post I sent the code which works, why did you send the same snippet code?

      I made the snippet and sent it because your team said in this conversation that they don’t have time for this.

      Please look at other things and screenshots. We’re using plugin without all functionalities and translations..

      Thank you

    • #118719

      Hi,
      I have added a snippet on your site using “catalog enquiry my account page” title.

      Kindly test your site and let us know if you facing any issue.

      Regards,

    • #118859
      Ivan Gacesa
      Participant

      Thank you @Abhirup!

      Do you plan to embed this code in the next WC Enquiry pro plugin update?

      It resolves many thing, only a few thing remain.

      1. Vendor profile picture on customer My-account page doesn’t have tag and displayed as url, please look at div customerTitleArea -> imgNameCls -> chat-img
      2. Enquiry tab on My-account page shows “No Conversation Found !!” with loaded div customerTitleArea, you need to click on the product image on the left side to view the conversation.
      3. Can you add “No Conversation Found !!” for translation?
      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text (the same text is shown on the right side, I don’t understand the same cut text on the left and the right)
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?
      If you click enter on keyboard it will send a message even if you don’t click on the send button.
      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      8. How can admin delete Enquires on /wp-admin/admin.php?page=woo-catalog-reply ?

      Regards

    • #118942

      Hi Ivan, our replies are nline :

      1. Vendor profile picture on customer My-account page doesn’t have tag and displayed as url, please look at div customerTitleArea -> imgNameCls -> chat-img
      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text (the same text is shown on the right side, I don’t understand the same cut text on the left and the right)
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?
      >> can you please share some scrrenshot to explain this.

      2. Enquiry tab on My-account page shows “No Conversation Found !!” with loaded div customerTitleArea, you need to click on the product image on the left side to view the conversation.
      3. Can you add “No Conversation Found !!” for translation?
      >> We will fix this issue in our next update.

      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      >> This is our default flow.

      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      8. How can admin delete Enquires on /wp-admin/admin.php?page=woo-catalog-reply ?
      >> IN oder to add this, you have to do custom code. Let us know if you need hook/filter.

    • #118969
      Ivan Gacesa
      Participant

      Hi Abhirup,

      For 1,4,5 please see the attached screenshots

      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      >> This is our default flow.
      >>> I don’t think we understand each other, please send loom video for this.

      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      >>> It will be useful for all websites – to see a notification message in the same window.

      8. How can admin delete Enquires on /wp-admin/admin.php?page=woo-catalog-reply ?
      >> IN oder to add this, you have to do custom code. Let us know if you need hook/filter.

      >>> If customer sends spam to vendor admin can’t delete it (through wp-admin /wp-admin/admin.php?page=woo-catalog-reply) and you think that’s ok?

    • #119178

      Hi, our replies are inline :

      1. Vendor profile picture on customer My-account page doesn’t have tag and displayed as url, please look at div customerTitleArea -> imgNameCls -> chat-img

      >> As you can see, we didn’t face any issue on our end : https://www.loom.com/share/5aabae0b449c464fa3c31e8d1cfe8e4d

      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text (the same text is shown on the right side, I don’t understand the same cut text on the left and the right)
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?
      >> can you please share some scrrenshot to explain this.

      >>> Override templates/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php

      =================================================================
      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      >> This is our default flow.
      >>> I don’t think we understand each other, please send loom video for this.
      >>> The enquiry works like a messaging, hence this is not a live chat.
      So, in order to see the messages, the pages needs to be refreshed.

      ==================================================================
      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      >>> It will be useful for all websites – to see a notification message in the same window.
      >>>> Please add this code in the function.php of current active theme :
      add_action(‘init’,’catalog_enquiry_sucess_messege’);
      function catalog_enquiry_sucess_messege(){
      global $Woocommerce_Catalog_Enquiry_Pro;
      remove_action(‘woocommerce_before_main_content’, array($Woocommerce_Catalog_Enquiry_Pro->frontend, ‘woocommerce_catalog_enquiry_success_wrapper’));
      add_action(‘woocommerce_product_meta_end’, ‘woocommerce_catalog_enquiry_success_wrapper’);
      }

      function woocommerce_catalog_enquiry_success_wrapper() {
      echo ‘

      ‘;
      }

      ====================================================================

      8. How can admin delete Enquires on /wp-admin/admin.php?page=woo-catalog-reply ?
      >> IN oder to add this, you have to do custom code. Let us know if you need hook/filter.

      >>> If customer sends spam to vendor admin can’t delete it (through wp-admin /wp-admin/admin.php?page=woo-catalog-reply) and you think that’s ok?

      >>> We will add this in our future update.

    • #119213
      Ivan Gacesa
      Participant

      Hi @Moumita, we’re engaged in every day testing.

      1. Vendor profile picture on customer My-account page doesn’t have tag and displayed as url, please look at div customerTitleArea -> imgNameCls -> chat-img
      >> As you can see, we didn’t face any issue on our end : https://www.loom.com/share/5aabae0b449c464fa3c31e8d1cfe8e4d

      My account page is for customers, please login as customer and take the screenshot with vendor profile picture.

      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text (the same text is shown on the right side, I don’t understand the same cut text on the left and the right)
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?
      >> can you please share some scrrenshot to explain this.

      >>> Override templates/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php

      You think that’s ok to show cut text on the left side (as I sent in the screenshot) and text area without more than one line message?

      =================================================================
      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      >> This is our default flow.
      >>> I don’t think we understand each other, please send loom video for this.
      >>> The enquiry works like a messaging, hence this is not a live chat.
      So, in order to see the messages, the pages needs to be refreshed.

      You didn’t understand, if you press enter during writing the reply message it refreshes the page (without sending the message), why enter on the keyboard refreshing the whole web page?

      ==================================================================
      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      >>> It will be useful for all websites – to see a notification message in the same window.
      >>>> Please add this code in the function.php of current active theme :
      add_action(‘init’,’catalog_enquiry_sucess_messege’);
      function catalog_enquiry_sucess_messege(){
      global $Woocommerce_Catalog_Enquiry_Pro;
      remove_action(‘woocommerce_before_main_content’, array($Woocommerce_Catalog_Enquiry_Pro->frontend, ‘woocommerce_catalog_enquiry_success_wrapper’));
      add_action(‘woocommerce_product_meta_end’, ‘woocommerce_catalog_enquiry_success_wrapper’);
      }

      function woocommerce_catalog_enquiry_success_wrapper() {
      echo ‘
      ‘;
      }

      This code has just disabled the notification message. If you add something to the echo ‘>here<‘ this text is displayed on the page on fixed position – it’s not related to sending message.

      2. 3 and 8 will be in the next update 🙂

    • #119571

      @Ivan Gacesa, our team will check this and get back to you tomorrow ASAP.

    • #119679

      Hi @Ivan, our replies are inline :

      1. Vendor profile picture on customer My-account page doesn’t have tag and displayed as url, please look at div customerTitleArea -> imgNameCls -> chat-img
      >> As you can see, we didn’t face any issue on our end : https://www.loom.com/share/5aabae0b449c464fa3c31e8d1cfe8e4d

      My account page is for customers, please login as customer and take the screenshot with vendor profile picture.

      >>> I did login as customer, here is the screenshot : https://prnt.sc/11c4rzl

      =================================================================================
      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text (the same text is shown on the right side, I don’t understand the same cut text on the left and the right)
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?
      >> can you please share some scrrenshot to explain this.

      >>> Override templates/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php

      You think that’s ok to show cut text on the left side (as I sent in the screenshot) and text area without more than one line message?

      >>> Can you share the code you have added, so we can check?

      =================================================================
      6. On the vendor dashboard (/dashboard/catalog-details/), if the vendor presses Enter while writing a response, it’s refreshing the whole page, not move the cursor to the new row?
      >> This is our default flow.
      >>> I don’t think we understand each other, please send loom video for this.
      >>> The enquiry works like a messaging, hence this is not a live chat.
      So, in order to see the messages, the pages needs to be refreshed.

      You didn’t understand, if you press enter during writing the reply message it refreshes the page (without sending the message), why enter on the keyboard refreshing the whole web page?

      >>> this is a bug, we will fix this in our next update.

      ==================================================================
      7. How to show info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it?
      >>> It will be useful for all websites – to see a notification message in the same window.
      >>>> Please add this code in the function.php of current active theme :
      add_action(‘init’,’catalog_enquiry_sucess_messege’);
      function catalog_enquiry_sucess_messege(){
      global $Woocommerce_Catalog_Enquiry_Pro;
      remove_action(‘woocommerce_before_main_content’, array($Woocommerce_Catalog_Enquiry_Pro->frontend, ‘woocommerce_catalog_enquiry_success_wrapper’));
      add_action(‘woocommerce_product_meta_end’, ‘woocommerce_catalog_enquiry_success_wrapper’);
      }

      function woocommerce_catalog_enquiry_success_wrapper() {
      echo ‘
      ‘;
      }

      This code has just disabled the notification message. If you add something to the echo ‘>here<‘ this text is displayed on the page on fixed position – it’s not related to sending message. >> Sorry here is the updated code :

      //Please add this code in the function.php of the current active theme :
      
      add_action('init','catalog_enquiry_sucess_messege');
      function catalog_enquiry_sucess_messege(){
      global $Woocommerce_Catalog_Enquiry_Pro;
      remove_action('woocommerce_before_main_content', array($Woocommerce_Catalog_Enquiry_Pro->frontend, 'woocommerce_catalog_enquiry_success_wrapper'));
      add_action('woocommerce_product_meta_end', 'woocommerce_catalog_enquiry_success_wrapper');
      }
      
      function woocommerce_catalog_enquiry_success_wrapper() {
        echo '<div id="woocommerce-catalo-enquiry-msg" class="woocommerce-catalo-enquiry-msg"></div>';
      }
      Copy
    • #119778
      Ivan Gacesa
      Participant

      Hi @Moumita,

      For 1, 4 and 5 please look at attachment. I didn’t change the template file.

      Code for 7. works, thanks!

      We’re waiting the next update for 2,3,6,8. Can you send git links for this 4 things, so we can track code changes and ETA?

      Attachments:
    • #119824

      @Ivan Gacesa, there is some issue on our end.

      Please do check your site and share a screenshot explaining what field you want to remove.

      For the git link, as this is a paid addon, we can’t share the private repository link here.

    • #119839
      Ivan Gacesa
      Participant

      Hi @Moumita,

      I added text to the last screenshot and rounded which text on the left we want to hide. Also, there is conversation on your screenshot and message ‘No Conversation Found!” please move cut message from left side to the right side.

      Add profile picture for vendor and product in the test and send the screenshot.

      Thank you

      Attachments:
    • #119873

      @Ivan Gacesa, there was some issue on our end. So can you please check your site and share the screenshot, so we can help you out accordingly.

      Looking forward to your co-operation regarding the same.

    • #120019
      Ivan Gacesa
      Participant

      Hi @Moumita,

      This is not issue on your end, this is bug, I sent the same screenshot in my first post and asked many times to login as a customer on my account page and see vendor profile picture.
      There is no tag in code, in the position of the vendor profile picture (class chat-img) there is url with double // on the beginning.

    • #120120

      Hi,
      Kindly add this updated code and check.

      //catalog enquiry pro my account page edit
      
      add_action('init', 'catalog_enquery_custom_edit');
      function catalog_enquery_custom_edit(){
        global $Woocommerce_Catalog_Enquiry_Pro;
        remove_action( 'wp_ajax_infor_enquiry_chat_histry', array( $Woocommerce_Catalog_Enquiry_Pro->ajax, 'infor_enquiry_chat_histry' ) );
        add_action( 'wp_ajax_infor_enquiry_chat_histry', 'infor_enquiry_chat_histry' );
      }
      
      function infor_enquiry_chat_histry() {
          global $WCMp ,$wpdb;
          $data_product = isset( $_POST['data_product'] ) ? absint( $_POST['data_product'] ) : 0;
          $data_enquiry = isset( $_POST['data_enquiry'] ) ? absint( $_POST['data_enquiry'] ) : 0;
          $to_user_id_old = isset( $_POST['data_cov'] ) ? absint( $_POST['data_cov'] ) : 0;
          // Enquiry post details
          $enquiry_post_title = get_the_title($data_enquiry);
          $enquiry_post_date = get_the_date('M j, Y' ,$data_enquiry);
          // Enquiry product details
          $enquiry_product_id = get_post_meta( $data_enquiry, '_enquiry_product', true );
          $enquiry_product_title = get_the_title( $enquiry_product_id );
          $enquiry_product_permalink = get_permalink( $enquiry_product_id );
          // Complete button
          $status_changes_dropdown = '';
          $user = get_userdata( get_current_user_id() );
          $user_roles = $user->roles;
          $customer_status = '';
      
          $catalog_status = array(  
              'read' => __('Read', 'woocommerce-catalog-enquiry-pro'),
              'unread' => __('unread', 'woocommerce-catalog-enquiry-pro'),
              'completed' => __('Closed', 'woocommerce-catalog-enquiry-pro'),
              'delete' => __('Delete', 'woocommerce-catalog-enquiry-pro'),
              );
      
          if ( in_array( 'dc_vendor', $user_roles, true ) || in_array( 'administrator', $user_roles, true ) ){
              $status_changes_dropdown = '
              <span class="dashicons dashicons-arrow-down-alt2"></span>
              ';          
              $customer_status = 'onclick = catalog_status_changes_dropdown_open(this)>';      
          }
      
          if ( in_array( 'dc_vendor', $user_roles, true ) ){
              unset($catalog_status['delete']);
          }
      
          $catalog_all_status = '';
          foreach ($catalog_status as $name => $label) {
              $catalog_all_status .=  '<h5><label><input type="radio" name="enquiry_status" id="enquiry_status' . esc_attr( $name ) . '" value="' . esc_attr( $name ) . '" ' . checked( get_post_status( $data_enquiry ), $name, false ) . '  /><span for="enquiry_status' . esc_attr( $name ) . '" class="selectit">' . esc_html( $label ) . '</span></label></h5>';
          }
      
          $product_link = '<div class="enquiry-details-chat">    
          <p class="productDetailCls">'.__( 'Enquiry : ', 'woocommerce-catalog-enquiry-pro' ).'
              <span>'.$enquiry_post_title.'</span></p>
              <p class="productDetailCls">'.__( 'Date : ', 'woocommerce-catalog-enquiry-pro' ).'
                  <span>'.$enquiry_post_date.'</span></p>
      
              <div>
          </div>';
         
          if(is_active_WCMp()){
              $vendor_details = get_wcmp_product_vendors( $data_product ) ? get_wcmp_product_vendors( $data_product ) : false;
          } else {
              $vendor_details = false;
          }        
          if( $vendor_details ){
              $to_user_id = $vendor_details->id;
              $users_name = $vendor_details->user_data->data->user_login;
              $user_image =  get_avatar( $to_user_id , 60 );
          } else {
              $admin_email  = get_option('admin_email');
              $User_details = get_user_by('email', $admin_email);
              $to_user_id   = $User_details->data->ID;
              $user_details = get_user_by("ID", $to_user_id);
              $users_name   = $user_details->data->user_login;
              $user_image   = get_avatar( $to_user_id , 60 );
          }
      
          $current_id =  get_current_user_id();
          $user = get_userdata( $current_id );
          $user_roles = $user->roles;
      
          if ( in_array( 'dc_vendor', $user_roles, true ) || in_array( 'administrator', $user_roles, true ) ){
      
              if( $vendor_details ){
                  $conversation = get_customer_vendor_conversation_details( $vendor_details->id , $to_user_id_old, $data_product );
              } else {
                  $conversation = get_customer_vendor_conversation_details( get_current_user_id() , $to_user_id_old, $data_product );
              }
      
              $user_name_non_log_in = get_post_meta( $data_enquiry, '_enquiry_username', true );
              $user_email_non_log_in = get_post_meta( $data_enquiry, '_enquiry_useremail', true );
              $user_details = get_user_by( 'ID' , get_post_field ('post_author', $data_enquiry) );
      
              $users_name = $user_details ? $user_details->data->user_login : $user_name_non_log_in;
              $users_email = $user_details ? $user_details->user_email : $user_email_non_log_in;
              $user_name_and_email = $users_name;
             
              $user_image = get_avatar( $user_details->data->ID , 60 );
          } else {
              $conversation = get_customer_vendor_conversation_details( get_current_user_id() , $to_user_id_old, $data_product );
          }
      
          $histrory_unread = get_customer_vendor_admin_conversation_details( get_current_user_id() , $to_user_id_old, $data_product );
          foreach ($histrory_unread as $key => $value_unread) {
             if( $value_unread->to_user_id == get_current_user_id() ){
                 
                 $wpdb->query("UPDATE <code>{$wpdb->prefix}catelog_cust_vendor_answers</code> SET status = ' read' WHERE enquiry_id =" . $value_unread->enquiry_id . " AND chat_message_id = " . $value_unread->chat_message_id );
             }
          }
      
          $quantity_number = get_post_meta( $data_enquiry, '_enquiry_product_quantity', true );
          $quantity = __( 'Quantity : ', 'woocommerce-catalog-enquiry-pro' ) . $quantity_number;
      
          $send_button = apply_filters( 'woocommer_catalog_send_button_test_frontend', __( 'SEND', 'woocommerce-catalog-enquiry-pro' ) );
          $type_massage = apply_filters( 'woocommer_catalog_type_text_frontend', __( 'Type a message..', 'woocommerce-catalog-enquiry-pro' ) );
          $display_chat_histry = '<div class="chat-list chat-list-msg" style="border: 0">
              <div class="chat-people">
              <div class="customerTitleArea">
              <div>
              <div class="status-changes-area">
              '.$catalog_all_status.'
      
              <div class="statusButnArea">
                  <button type="button" onclick = status_changes_from_dropdown(this) data-enqid = "'.$data_enquiry.'" class="btn">'. __("Ok", "woocommerce-catalog-enquiry-pro").'</button>
                  <button type="button" onclick = catalog_status_changes_dropdown_close(this)>'. __("Cancel", "woocommerce-catalog-enquiry-pro").'</button>
              </div>
              </div>
              </div>
                  <div class="imgNameCls">
                      <div class="chat-img">'. $user_image.'</div>
                 
                      <div class="chat-ib"><h5>'.$user_name_and_email.'</h5></div>
                  </div>
                 
                  </div>
                  <div class="productEnquiryArea">
                  <p class="productLink">'.__("Product:", "woocommerce-catalog-enquiry-pro").' <a href="'.$enquiry_product_permalink.'" target="_blank">'.$enquiry_product_title.'</a></p>
                 
                  '.$product_link.' </div>
             
              </div>
          </div>
          </div>
          <div class="msg-history">'.$conversation.'</div>
          <div class="type-msg">
              <div class="input-msg-write">
                 
                  <input type="text" id="write_msg" placeholder="'.$type_massage.'" />
                  <button type="button" id = "'.$data_enquiry.'" data-product1 = "'.$data_product.'" onclick = woocommerce_catalog_enquiry_send_reply(this)>'.$send_button.'</button>
              </div>
          </div>';
             
          $data_details =  array( 'display_chat_histry' => $display_chat_histry );
          wp_send_json( $data_details );
      }
      Copy

      Regards,

    • #120337
      Ivan Gacesa
      Participant

      Hi Abhirup,

      You added the same code 3 weeks ago on my staging site. I added this on the live site an it solves some things, but questions 1, 4 and 5 remain in the conversation after your post on April 2, 2021 at 1:00 PM.

      Please see the messages above, conversation with @Moumita. Post on April 14, 2021 at 11:35 PM and screenshot.

      For 1, 4 and 5 please look at attachment. I didn’t change the template file.
      There is no img tag in code, in the position of the vendor profile picture (class chat-img) there is url with double // on the beginning.

      What can I change and test?
      Regards

      Attachments:
    • #120360

      Hi, the above shared code is fixed version of customer end profile picture issue kindly add this code on your end remore previously shared code and check.
      Let us know if this working.

      Regards,

    • #120381
      Ivan Gacesa
      Participant

      Hi,

      I wrote that I added this code 3 weeks ago.
      The shared code makes fixed default (blank) customer profile picture, but this page is not for conversation between customers… vendors can add their own profile picture so it can’t be fixed. Please see the screenshot, and test it using customer my-account page and vendor with specific profile picture (not default blank profile picture). You need to change the img tag for this element.
      After testing please send me the conversation screenshot with vendor profile picture on my-account page. (you can see how it looks like on my first post here posted one month ago)

      Also, add css class for text on the left side which is duplicated on the right side. Everything on the screenshot.

      Thank you

    • #120434

      Hi,
      We have added the new code on your demo site which will fix the vendor image on customer my account page.
      Kindly check this and also create a list of the issue and the screenshots of your website.(Not WCMp demo site).

      So we will fix those issue accordingly on your site and our future update also,

      Regards,

    • #120592
      Ivan Gacesa
      Participant

      Hi,

      Thank you for adding the code, it solved the issue with vendor profile picture.

      Only 2 things remain:
      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text
      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?

      Regards

      Attachments:
    • #120654

      Hi,
      our replies are inline –
      4. Enquiry tab on My-account page shows cropped message bellow the product name, there is no custom css class inside div ‘chat-ib’ to hide cropped text

      >> Override templates/woocommerce-catalog-enquiry-pro-customer-reply-template.php template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/woocommerce-catalog-enquiry-pro-customer-reply-template.php.

      Checkout line no 59 and add some code as per your requirement.

      5. How do we send reply message in multiple rows on Enquiry tab on My-account page?

      >> For this you have to add custom code as per your requirement.

      Regards,

    • #120671
      Ivan Gacesa
      Participant

      Hi,

      4. We need to change the template because there is no css name on class on the cut text element?
      If you think that cut text is for all other users of plugin, I can change the template file.

      5. Ok, can we disable when we press the enter on keyboard message will be send?

      Regards

    • #120761

      @Ivan Gacesa, our team will check and get back to you.

    • #121592
      Ivan Gacesa
      Participant

      Hi @Moumita

      Do you have info from your team?

      Also, how can shop manager role see enquires (not only admin), page admin.php?page=woo-catalog-reply ?

    • #121617
      This reply has been marked as private.
    • #121630
      Ivan Gacesa
      Participant
      This reply has been marked as private.
    • #121784

      Hi,
      our replies are inline:
      4. We need to change the template because there is no css name on class on the cut text element?
      If you think that cut text is for all other users of plugin, I can change the template file.

      >> for now if you want to remove this section then you can remove this by override above template or if you want to add css then by override above template and add css class

      5. Ok, can we disable when we press the enter on keyboard message will be send?

      > it’s need good amount of custom code to remove or modify this section. Give us some time we will let you know about this.

      >> how can shop manager role see enquires (not only admin), page admin.php?page=woo-catalog-reply ?

      — As per our default flow only admin can checkout this page, to modify this section you have to modify our default code.

      Regards,

    • #121830
      Ivan Gacesa
      Participant

      Hi @Abhirup,

      Thank you for answers, when do you plan to publish the plugin update?

      4. We need to change the template because there is no css name on class on the cut text element?
      >> for now if you want to remove this section then you can remove this by override above template or if you want to add css then by override
      above template and add css class

      There is no plan to add css class for this element in the new version of the plugin?

      5. Ok, can we disable when we press the enter on keyboard message will be send?
      > it’s need good amount of custom code to remove or modify this section. Give us some time we will let you know about this.
      Thank you.

      >> how can shop manager role see enquires (not only admin), page admin.php?page=woo-catalog-reply ?
      — As per our default flow only admin can checkout this page, to modify this section you have to modify our default code.

      We’ve thousands of products, a lot of queries, and we need admin role for managing products queries?
      What is the problem to add this role to shop manager accounts?

      Regards

    • #121879

      Hi,
      our replies are inline:
      >> 4. We need to change the template because there is no css name on class on the cut text element?
      >> for now if you want to remove this section then you can remove this by override above template or if you want to add css then by override
      above template and add css class

      — on our next update we will add css class.

      >> We’ve thousands of products, a lot of queries, and we need admin role for managing products queries?
      What is the problem to add this role to shop manager accounts?

      — For this you have to add good amount of custom code. kindly checkout our plugin flow how to admin checkout this page then add your custom code.

      Regards,

    • #121913
      Ivan Gacesa
      Participant

      Thank you Abhirup,

      When do you plan to release the next update?

    • #121973

      Hopefully, within a week, we can release the update.

    • #122764
      Ivan Gacesa
      Participant

      Hi @Abhirup,

      Thank you for the released update.

      Have you implemented deleting catalog queries in wp-admin?

      8. How can admin delete Enquires on /wp-admin/admin.php?page=woo-catalog-reply ?
      >> IN oder to add this, you have to do custom code. Let us know if you need hook/filter.

      >>> If customer sends spam to vendor admin can’t delete it (through wp-admin /wp-admin/admin.php?page=woo-catalog-reply) and you think that’s ok?

      >>> We will add this in our future update.

      I can’t find this option.

    • #122766
      Ivan Gacesa
      Participant

      I found the option delete in wp-admin Status message dropdown, after I chose delete and clicked Ok button nothing happened. Do we need to reload whole page to delete the message?

      Placeholder “Type a message..” doesn’t work (click not remove it).

    • #122813

      Hi,
      Yes, you need to refresh.
      “Type a message..” as well as a default text.
      Thanks

    • #122862
      Ivan Gacesa
      Participant

      Hi @Raju,

      It would be better to reload content after deleting message, not to refresh the whole page on every deleted message. Is there any way to show queries in wp-admin for shop manager role?

      “Type a message..” is placeholder so click on this test area will delete the default message (as we had in the previous version)?

      I think that you haven’t implemented all things which you sent me in custom code. Please see 2 sreenshots:
      – profile image (no img tag and displayed url)
      – quantity : 1 label css class for hiding this element
      – status message which is always Open (I found css class statusDrpDown so I can hide it)
      – info message on the product page ‘Enquiry sent successfully.’ at the position of the Enquiry button form, not on the top of the page that is not on the same screen, the customer need to scroll to see it

      How to hide customer email address from vendor dashboard dashboard/catalog-details/ on customer message page (near the username) and from email notification?

      We want to use plugin for messaging, not to show email address.

    • #122915

      @Ivan Gacesa, our team will add the fixes in our net update. Except for the quantity part. Becasue the quantity part is for multiple enquiry product’s numbers.

    • #122928
      Ivan Gacesa
      Participant

      @Moumita thank you for update.

      It would be great just to have specific css class for quantity so we can hide this element if we don’t use quantity in enquiry.

    • #122945

      @Ivan Gacesa, I have asked the team to add a class there.

Viewing 56 reply threads

Please LOGIN to reply to this topic

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price