Home Forums WC Vendors Pro Support "Sold by: …" positioning at products archive

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #17418
    netteran
    Participant

    How can I position the text “Sold by: Vendor Store Name” on the display of product in product archive?

    i.e. how to change the place of <small class="class="wcv_sold_by_in_loop">Sold by: Vendor Store Name</small> so it is e.g. just after the name of the product and before the price …

    #17419
    ogia
    Participant

    Good question. I need this too. 🙂

    #17423
    WC Vendors Support
    Participant

    First, you’d remove the product sold by action.

    https://www.wcvendors.com/kb/removing-sold-by-on-your-site/

    Then, you’d add the action back in, changing the hook to where you want it to display by hooking it into the “woocommerce_after_shop_loop_item_title” action.

    #18335
    leoprieto
    Participant

    Hi @Ben,
    I’ve been trying to do this without much luck. Could you point me in the right direction? A sample of code of how to add the action back in? In my case I want to change the position of the “Sold by” in the Single Product page.

    If you wrap it in a <span> with a class for a future release, that would be much appreciated!

    #18343
    WC Vendors Support
    Participant

    Search the source code for the function you just removed, and copy it. Name it something different. Then make sure your filter points to the function name you just made and you’re done. 🙂

    #18380
    leoprieto
    Participant

    Thanks! Made it work.

    It would still be awesome if, whenever possible, you could wrap the HTML inserted by WC Vendors in <span> or give the <a> or <div> unique classes, as it would make it really easy to style without having to modify the functions.php or a template file.

    #18389
    WC Vendors Support
    Participant

    You can wrap it in any html you like when you use filters. We accommodate the most basic styles, going nuts is up to you. 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.