Home Forums General Pre-Purchase Questions product vendors name

This topic is: not resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Anna 3 years, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #44886

    pry de
    Member
    Post count: 57

    Hi, in the demo, there is no vendors name in shop page, does the dokan has this option? or do you have to manually edit the php script?

    #44937

    towhid
    Participant
    Post count: 4505

    Hello Pry,

    Can you please provide me a screenshot with mark an area where you want to see a vendor name in shop page for dokan demo.

    Thanks

    #45553

    pry de
    Member
    Post count: 57

    I notice that most of the woocommerce there is no vendors name, there are some themes have, and dokan multivendor is multivendor, I think it's a good idea to have vendors name. That is why I'm asking does pro version has this option to enable vendors name? If not, then it's a good suggestion to have one ๐Ÿ™‚

    #45657

    towhid
    Participant
    Post count: 4505

    Hello,

    Still I am really sorry to say that I am not getting you. Can you please send me a screenshot with mark an area where you want to see a vendor name.

    Thanks

    #45705

    pry de
    Member
    Post count: 57

    When you go to youtube, can you see the uploader's name? that is the vendor's name I'm talking about, most of the theme there is no vendors name, and it would be great for a plugin like dokan multivendor.

    Thankyou

    #45723

    towhid
    Participant
    Post count: 4505

    Hello Pry,

    Products vendor name can be see in product single page. Product single page can only seen by click the product.
    Here is the screenshot.
    Product Vendors Name

    Thanks

    #46105

    Anna
    Member
    Post count: 8

    I think this is what I'm looking for aswell. I want to display the vendors name alongside the Product name and price in the shop page (the thumbnails of products). I found this (pasted below) from woocommerce but i'm guessing the tag for vendors is wrong. Could you help?

    /**
    * Print the product's vendor name before the product title in the loop.
    *
    * @return void
    */
    function wc_vendors_name_loop() {
    $vendors = get_the_terms( get_the_ID(), ‘shop_vendor' );

    if ( $vendors && ! is_wp_error( $vendors ) ) {
    foreach ( $vendors as $vendor ) {
    $all_vendors[] = $vendor->name;
    }

    $vendors = join( “, “, $all_vendors );

    echo ‘‘ . $vendors . ‘‘;
    }
    }
    add_action( ‘woocommerce_before_shop_loop_item_title', ‘wc_vendors_name_loop', 20 );

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘product vendors name’ is closed to new replies.