Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Cannot display vendor registration form custom fields on the vendor store page
- This topic has 2 replies, 2 voices, and was last updated 4 years, 6 months ago by christos.papastergiou.
- AuthorPosts
- May 14, 2020 at 9:25 pm #131012christos.papastergiouParticipant
Hello there,
I have created a vendor registration form custom field called Website where the vendor can store his affiliate website (see attached picture). I require that this new website field is displayed as part of the store info on the vendor store page. How could I achieve that please?
P.S. I am using WCFM Elementor for creating the vendor store page and the store info widget to display the store’s information.
Thank you in advance
Regards
ChrisAttachments:
You must be logged in to view attached files. - May 15, 2020 at 1:50 pm #131298Sarmistha ChakrabortyMember
Hello,
add_action('wcfmmp_store_after_sidebar_info','fn_wcfmmp_store_after_sidebar_info_1505'); function fn_wcfmmp_store_after_sidebar_info_1505($store_id) { $custom_fields = get_user_meta( $store_id, 'website',true); $field_name = 'Website'; echo $field_name.': '.$custom_fields; }
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/
Thanks.
- May 19, 2020 at 7:05 pm #133135christos.papastergiouParticipant
Hi,
unfortunately this did not work. Another option how to achieve this?
Thank you
Attachments:
You must be logged in to view attached files.
- AuthorPosts
- You must be logged in to reply to this topic.