Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Could i change icon as text of product type at product manage page?
Tagged: product icon
- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by MOHO.
Viewing 6 reply threads
- AuthorPosts
- August 31, 2018 at 9:31 pm #30391
- September 2, 2018 at 7:33 am #30474WCFM ForumMember
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
- September 3, 2018 at 2:05 am #30566MOHOParticipant
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?
- September 5, 2018 at 5:48 am #30812WCFM ForumMember
Hi,
“But this will work WCFM next update.” – I mentioned this, so please wait till the next update.
Thank You
- September 8, 2018 at 5:50 am #31139MOHOParticipant
oh i see, thanks.
- September 8, 2018 at 4:37 pm #31170WCFM ForumMember
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
- September 11, 2018 at 8:47 am #31305MOHOParticipant
Yes it work now, thanks.
Please close it.
- AuthorPosts
Viewing 6 reply threads
- The topic ‘Could i change icon as text of product type at product manage page?’ is closed to new replies.