hide enquiry and chat on wcfm_stores and unhide when visit store/vendor

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate hide enquiry and chat on wcfm_stores and unhide when visit store/vendor

Viewing 2 reply threads
  • Author
    Posts
    • #108750
      awaludin
      Participant

      Is it possible to hide enquiry and chat button on any page with [wcfm_stores] shortcode and unhide them when costumer visits vendor’s store?

    • #108859

      Hello,

      For hide “enquiry ” button from vendor list page(page with [wcfm_stores] shortcode), add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      add_action('init',function(){
      	global $WCFM, $WCFMmp;
      	remove_action( 'wcfmmp_store_list_after_store_info',	array( $WCFM->wcfm_enquiry, 'wcfmmp_store_list_enquiry_button' ), 35 );
      });

      Thanks.

    • #145154
      sibe.r
      Participant

      Thanks, I was looking for this. Also, how can I add my own button on the store list page? i.e beside the “Visit” button?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.