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.

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

This topic contains 2 replies, has 3 voices, and was last updated by Avatar sibe.r 5 days, 11 hours ago.

  • Author
    Posts
  • #108750
    Avatar
    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
    Avatar
    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?

You must be logged in to reply to this topic.