@kould, you have to follow this steps and procedure to add additional data and display the same in the product page :
In order to add extra fields in the vendor dashboard, override the “shop-front.php” template file and add the extra fields. For this, copy it to yourtheme/dc-product-vendor/vendor-dashboard/shop-front.php
Now, in order to save the fields, you have to use this filter before_wcmp_vendor_dashboard
. This support threads might help you out –
https://wc-marketplace.com/support-forum/topic/imprint-for-vendors/
https://wc-marketplace.com/support-forum/topic/how-to-add-extra-shop-settings-field/
In order to display the field in the Product page, use this filter woocommerce_before_add_to_cart_form
to display the same.
For reference, if you have added function $whatsapp_number, then display that using this :
add_action( 'woocommerce_before_add_to_cart_form', 'whatsapp_number', 5 );
function whatsapp_number() {
$product_id = get_the_ID();
$vendor = get_wcmp_product_vendors($product_id);
$vendor_id = $vendor->id;
$whatsapp_number = get_user_meta( $vendor_id, '', true );
echo $whatsapp_number;
}