Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Vendor store link display on single product pages
- This topic has 4 replies, 2 voices, and was last updated 5 years, 8 months ago by hello4.
- AuthorPosts
- March 22, 2019 at 7:25 pm #54081hello4Participant
Hello there,
Could you please show me how to remove vendor shop links from all product loops? I have this filter on but I can’t figure out how to remove it from related products/you may also like loops.
//Remove vendor store links from archives if (is_shop () || is_product_category() || is_product_tag()) { add_filter( 'wcfmmp_is_allow_sold_by_label', '__return_false' ); }
Further, on single product pages, I would like to remove it from the default position and display it right under the product name. Please provide the function that I need to use with the ‘woocommerce_single_product_summary’ hook.
Thanks and regards,
- March 23, 2019 at 11:57 am #54171WCFM ForumMember
HI,
Please just use this –
add_filter( 'wcfmmp_is_allow_archive_product_sold_by', '__return_false' );
Thank You
- March 23, 2019 at 12:24 pm #54189hello4Participant
Hello,
It worked. Many thanks. Could you please also show provide me the code snippet to display the store details elsewhere? For example I’ve removed all product meta from single product page, but I want to insert the store details within product summary (‘woocommerce_single_product_summary’)
Thanks and regards,
- March 23, 2019 at 1:10 pm #54205WCFM ForumMember
HI,
Please check this – https://wclovers.com/knowledgebase/wcfm-marketplace-widgets-short-codes/
There is a short code for such purpose, you may use that anywhere!
Thank You
- March 26, 2019 at 12:40 pm #54543hello4Participant
Many thanks! Please feel free to close this ticket.
- AuthorPosts
- The topic ‘Vendor store link display on single product pages’ is closed to new replies.