Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › hide enquiry and chat on wcfm_stores and unhide when visit store/vendor
- This topic has 2 replies, 3 voices, and was last updated 4 years, 4 months ago by sibe.r.
Viewing 2 reply threads
- AuthorPosts
- February 25, 2020 at 6:35 pm #108750awaludinParticipant
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?
- February 26, 2020 at 11:48 am #108859Sarmistha ChakrabortyMember
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.
- June 30, 2020 at 10:16 am #145154sibe.rParticipant
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?
- AuthorPosts
Viewing 2 reply threads
- You must be logged in to reply to this topic.