wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
00Day 03Hr 50Min 00Sec
wcfm-santa

Sold by information customization

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 Sold by information customization

Viewing 2 reply threads
  • Author
    Posts
    • #125714
      splot.india
      Participant

      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.

    • #126217

      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.

    • #131369
      splot.india
      Participant

      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.

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