Product does not show the "'sold by …… vendor'

This topic has 11 replies, 2 voices, and was last updated 3 years, 11 months ago ago by Olga Barlow

  • Avatar: mnpiracha
    mnpiracha
    Participant
    April 27, 2020 at 19:28

    Hi
    Im using dokan multivendor.
    products are not showing ‘sold by’ label.
    please help

    10 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 27, 2020 at 21:12

    Hello,

    1) Where do you want to display that text (provide screenshot for better understanding)?
    2) Provide us with temporary WP Dashboard and FTP access to your site to help you with this.

    Regards

    Avatar: mnpiracha
    mnpiracha
    Participant
    April 27, 2020 at 21:41

    Thanks
    please check groceryplus.online to see how (sold by -vendor name) are mentioned below every product. also attaching a pic

    I am trying to configure your theme at 1.groceryplus.net

    Thanks for helping me

    Regards
    naj

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 27, 2020 at 22:59

    Hello,

    IMPORTANT: Use Private content area to add private information http://prntscr.com/s7191h In other case it will be available for all the forum users!

    1) WP Dashboard access is incorrect https://gyazo.com/33953368eda35a90bd0bdad1bd57c2a3
    2) You provided FTP access to empty directory http://prntscr.com/s7184m

    Provide correct information to proceed and check it by yourself before reply back.

    Regards

    Avatar: mnpiracha
    mnpiracha
    Participant
    April 28, 2020 at 00:19

    Dear Olga
    Thank you so much
    Please pardon my lame knowledge. I am grateful for your prompt reply and your help is greatly appreciated
    Kindly see the correct information which i have checked now. (uffff I hope it works at your end too)

    best regards
    naj

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 28, 2020 at 17:14

    Hello,

    WP Dashboard is ok now but FTP is still empty https://gyazo.com/33026dd3468d2645fbb98b1c96fcca64
    Also, create at least one vendor with products.

    Regards

    Avatar: mnpiracha
    mnpiracha
    Participant
    April 28, 2020 at 17:55

    i feel ashamed now. please bear with me. im no IT person

    please check

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 28, 2020 at 17:59

    Hello,

    It’s ok now. What about vendors? Could you provide me the link to vendor store with products?

    Regards

    Avatar: mnpiracha
    mnpiracha
    Participant
    April 28, 2020 at 18:20

    https://1.groceryplus.net/store/mnpiracha/

    at the moment its only one store present. ill configure others later

    thanks

    Avatar: mnpiracha
    mnpiracha
    Participant
    April 28, 2020 at 21:17

    Dear support

    you have been kind enough. Thanks. but I’m kinda running out of time and I understand you might be busy in many requests. SO….
    im going back to my old theme. cant wait for the help to reach in more days.
    thank you so much for all the help till yet

    Ill just put your theme in my draw. Its surely beautiful with many amazing features but Its actually kinda complicated for me. don’t know if ill ever use it

    Cheerz and Best Regards
    naj

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 29, 2020 at 12:17

    Hello,

    We have a lot of requests and some problem with your access caused delay, but it’s not our fault, you gave the incorrect access.
    There is no problem to show the product vendor at the shop page and we even created an example on our demo
    http://prntscr.com/s7y657

    To show it you just need to add the following code to child theme functions.php

    add_action( 'woocommerce_after_shop_loop_item_title','sold_by' );
    function sold_by(){
            global $product;
            $seller = get_post_field( 'post_author', $product->get_id());
            $author  = get_user_by( 'id', $seller );
            $vendor = dokan()->vendor->get( $seller );
    
            $store_info = dokan_get_store_info( $author->ID );
            if ( !empty( $store_info['store_name'] ) ) { ?>
                    <span class="details">
                        <?php printf( 'Sold by: <a href="%s">%s</a>', $vendor->get_shop_url(),  $vendor->get_shop_name() ); ?>
                    </span>
            <?php 
        } 
    }

    You switched to another theme, so I can’t add it for you.

    Besides this question is related to Dokan plugin more than to theme because WC Product vendors plugin display product vendor on the stop page by default as you can see at other demo where this plugin is installed https://xstore.8theme.com/demos/jewellery/shop/
    But Dokan plugin doesn’t have such option and you have to do this by additional customization.

    Regards

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.