I need to display the vendor name in the product page and for that I would like to know if I can get automatically the vendor name and add it to an ACF field. Or if there is already a solution to do this
Thanks in advance.
]]>function get_name () {
$post_id = get_queried_object_id();
$post_author_id = get_post_field( 'post_author', $post_id );
$authordata = get_userdata( $post_author_id );
$author = $authordata->user_nicename;
return $author;
}
function register_custom_yoast_variables () {
wpseo_register_var_replacement ( '%%namestore%%' , 'get_name' , 'advanced' , 'Название магазина' );
}
]]>Reference post:
https://www.ads-software.com/support/topic/hide-failed-transaction-vendor-order-dashboard/
https://pasteboard.co/JKFWtjq.jpg
]]>some of the methods I have used are referenced below
https://wedevs.com/support/topic/display-product-vendors-name/
https://nayemdevs.com/display-vendor-name/
https://stackoverflow.com/questions/43632297/how-to-show-store-name-on-the-product-thumbnail-in-dokan-multivendor-plugin-by-w
i have tried to add the code to “code snippets”, theme’s function.php, and child theme’s function.php
but it’s not working
I would appreciate any help..
Thank you
I wanted to remove the vendor name from the Vendor Info Tab in the single Product page. I removed the lines from the wc-template but still the label Vendor name remains.
Can someone please help?
]]>.wcfmmp_sold_by_container .wcfmmp-store-rating {
display: none;
}
.wcfmmp_sold_by_wrapper {
display: none;
}
I would like it to hide it only from the shop page.
I appreciate your help please.
Kind regards,
Edmundo