Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Sold by information customization
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by splot.india.
- AuthorPosts
- May 2, 2020 at 5:40 pm #125714splot.indiaParticipant
When i enable “Visible sold by” in WCFM Dashboard, it shows even in product archives (I display products by shortcodes in custom manner). What i want is the sold by template should only be visible when i open a product, not on archives.
https://splot.in/grocery1-grocery-staples/
Check this link. - May 3, 2020 at 10:55 pm #126217Sarmistha ChakrabortyMember
Hello,
Try 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('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 9 ); remove_action('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 50 ); remove_action( 'wcfmmp_store_list_after_store_info', array( $WCFM->wcfm_enquiry, 'wcfmmp_store_list_enquiry_button' ), 35 ); });
Thanks.
- May 15, 2020 at 5:15 pm #131369splot.indiaParticipant
Hi! I found a code snippet in your site, might be in documentation, i don’t remember properly but it worked for me.
add_filter( ‘wcfmmp_is_allow_archive_product_sold_by’, ‘__return_false’ );
Anyhow, Thanks for the reply. I appreciate it. Thanks again.
- AuthorPosts
- You must be logged in to reply to this topic.