Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › add vendor's info in the Product list
- This topic has 1 reply, 2 voices, and was last updated 4 years, 9 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- March 16, 2020 at 6:18 am #111739raul.flores.arenasParticipant
hi,
we need add a vendor custome info to the product list, after or before the sold by label, we try it with a action but it’s not working, this is what we use:
function poner_universidad($store_id){
$custom_fields = get_user_meta( $store_id, ‘wcfmvm_custom_infos’,false);
$field_name = ‘Universidad en que estudió’;
echo $custom_fields[$field_name] . ‘<-custome field’;
}
add_action(‘before_wcfmmp_sold_by_label_product_page’,’poner_universidad’);and only get the string.
thanks
Attachments:
You must be logged in to view attached files. - March 17, 2020 at 12:59 pm #111945Sarmistha ChakrabortyMember
Hello,
Kindly modify your script,
add_action('before_wcfmmp_sold_by_label_product_page','poner_universidad'); function poner_universidad($store_id) { $custom_fields = get_user_meta( $store_id, 'wcfmvm_custom_infos',true); $field_name = 'Universidad en que estudió'; echo $field_name.': '.$custom_fields; }
Thanks.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.