Support » Plugin: WC Marketplace » Display avarta vendor before “sold by vendor-name”

  • Resolved TheDream18

    (@oanhtran1804)


    Hi.

    Can you support to display vendor avarta in prouduct catalog, widget…etc. I mean anywhere have “sold by vendor-name” created by your plugin.

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author WC Marketplace

    (@dualcube)

    Hi Thanks forreaching WCMp Support!!

    Please use this action do_action('after_sold_by_text_shop_page', $vendor); this will help to fetch the vendor’s image and then apply some custom CSS to position the image after “Sold By Vendor Name”.

    Let us know if you have any further query.

    Hi. i added to childtheme function, but did not appear anything.

    Plugin Author WC Marketplace

    (@dualcube)

    Can you please share us the code snippet you have used so we that we can look into this and assist you accordingly.

    Looking forward to your co-operation regarding the same.

    Hi.
    1) Please check my code. I wanted display shop avarta, not autho avarta. Because 1 vendor can have staff via staff plugin. If we get user avarta, will not be right.

    do_action(‘after_sold_by_text_shop_page’, $vendor);

    function add_vendor_avarta_product(){
    echo get_avarta( $vendor,’after_sold_by_text_shop_page’ );
    }

    2) I also would like to appear shop avarta before to user name in widget “vendor info” Please.

    3) Can i enable background in this widget also?

    4) Similar 2, what is code to add some class (Text href=URL will be used) under More Products from Susann?

    Thanks

    • This reply was modified 1 month, 3 weeks ago by  TheDream18.
    Plugin Author WC Marketplace

    (@dualcube)

    @oanhtran1804 Please use this code snippet :

    add_action('after_sold_by_text_shop_page', 'show_image_callback');
    function show_image_callback($vendor){
    echo '<img src="'.$vendor->image.'" style="height:60px!important;"/>';
    }

    Follow the same code for widget Vendor Info also. In order to change the background color of the widget, you have to apply some custom CSS for your site.

    Now may we know whether the URL will be related to the vendor’s shop or will it be something else, this will help us the requirement and assist you accordingly.

    It worked thanks. Yes i understand i just need function, css i will deal with it.

    Defaul you given vendor WIDGET as bellow:

    Line1: Vendor-username
    Line2: More Products from Vendor-username

    I want to add following for widget.:
    1) Add avarta before “vendor-username”
    2) Add background for this widget . get vendor background image
    3) Add multiple line. Please follow example URL for easier understand
    Line3. example.com/line3
    Line4. example.com/line4

    Thank you so much.

    Plugin Author WC Marketplace

    (@dualcube)

    @oanhtran1804 Please use the same code to display image for the vendor widget.

    Now, may we know what vendor background image are you referring to and what you want to display with the multiple lines so that we can assist you accordingly.

    Hi.
    Working on WCMp product vendor’s info widget
    Defaul you given vendor WIDGET as bellow:
    Line1: Vendor-username
    Line2: More Products from Vendor-username

    1) I used the same code, But next to vendor name in widget did not appear avarta, only appear in product archive

    2) Get .vendor_description_background added as background of this widget.

    3) Add multiple line. Please follow example URL for easier understand
    Line3. example.com/line3
    Line4. example.com/line4

    Thanks

    Hi can i hear the solution widget?

    Thanks

    Plugin Author WC Marketplace

    (@dualcube)

    You have to do a bit of custom coding, you may refer to this document to add widget ref. link https://codex.wordpress.org/Widgets_API

    Hi.
    I’m sorry, do you mind give me final code? I will purchase your add-on in soon time, after finished with free version
    I read and i don’t know what to do.

    Plugin Author WC Marketplace

    (@dualcube)

    @thedream09 Kindly share us the code you have used for which you didn’t get the result so that we can review the same.

    Also, we are still not able to understand the use of the link and what you want to display there.

    Hi,
    I used this code to show avarta before of vendor on shop catalog page.

    add_action('after_sold_by_text_shop_page', 'show_image_callback');
    function show_image_callback($vendor){
    echo 'image.'" style="height:60px!important;"/>';
    }
    

    But what i would to change widget “WCMp product vendor info”, which display in product detail become this.
    There is 3 step:
    + add shop vendor before vendor name
    + add shop background become background widget
    + add custom url
    http://www.mediafire.com/view/dq7q7tpumllwecq/widget_wc-marketplace.PNG

    Plugin Contributor Subrata Mal

    (@dualcube_subrata)

    @thedream09,

    The code you have written is not correct, we already provided you the demo code snippet to fulfill your requirement. Please flow above code snippet,They should work properly.

    Also we are afraid that we don’t provide any custom coding support.

    Thanks and regards,
    Subrata Mal

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.