Could i change icon as text of product type at product manage page?

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 Could i change icon as text of product type at product manage page?

Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #30391
      MOHO
      Participant

      the icon of simple and variable product is too similar, i can’t distinguish.

      Therefore, i want to change use text with chinese word.

      How could i make it?

      Attachments:
      You must be logged in to view attached files.
    • #30474
      WCFM Forum
      Member

      Hi,

      Add this code for the purpose –

      function wcfm_products_product_type_display_custom( $pro_type, $product_type, $the_product ) {
      	if ( 'grouped' == $the_product->get_type() ) {
      		$pro_type = esc_attr__( 'Grouped', 'wc-frontend-manager' );
      	} elseif ( 'external' == $the_product->get_type() ) {
      		$pro_type = esc_attr__( 'External/Affiliate', 'wc-frontend-manager' );
      	} elseif ( 'simple' == $the_product->get_type() ) {
      		if ( $the_product->is_virtual() ) {
      			$pro_type = esc_attr__( 'Virtual', 'wc-frontend-manager' );
      		} elseif ( $the_product->is_downloadable() ) {
      			$pro_type = esc_attr__( 'Downloadable', 'wc-frontend-manager' );
      		} else {
      			$pro_type = esc_attr__( 'Simple', 'wc-frontend-manager' );
      		}
      	} elseif ( 'variable' == $the_product->get_type() ) {
      		$pro_type = esc_attr__( 'Variable', 'wc-frontend-manager' );
      	}
      	
      	return $pro_type;
      }
      add_filter( 'wcfm_products_product_type_display', 'wcfm_products_product_type_display_custom', 50, 3 );

      But this will work WCFM next update.

      Thank You

    • #30566
      MOHO
      Participant

      I add it to my function.php of my child theme, but it no change at vendor product list
      http://mall2.sites.moho.tw/admin/products/

      Could you check it?

    • #30812
      WCFM Forum
      Member

      Hi,

      “But this will work WCFM next update.” – I mentioned this, so please wait till the next update.

      Thank You

    • #31139
      MOHO
      Participant

      oh i see, thanks.

    • #31170
      WCFM Forum
      Member

      Hi,

      This update is already released, bu I think you are having the issue of “functions.php” in this code as well!

      Please try some some other way or resolve function.php issues.

      Thank You

    • #31305
      MOHO
      Participant

      Yes it work now, thanks.

      Please close it.

Viewing 6 reply threads
  • The topic ‘Could i change icon as text of product type at product manage page?’ is closed to new replies.