Home Forums WC Vendors Free Support how do i remove soldby?

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 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #2480
    birken
    Participant

    Hi guys,

    i want to remove sold by but as i am not a coder i can only copy paste 🙁

    i found this
    remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2);

    but when i paste it in my functions.php file at the bottom t does not remove it.

    can anyone show me an example of fuctions.php how it should look like?

    Warm regards Birken

    #2489
    WC Vendors Support
    Participant

    Can you show me a screenshot of where you want it removed from? It’s in a number of places on the site…….. 🙂

    #2544
    birken
    Participant

    Hi Ben,

    i want to remove it everywhere also in mail.

    warm regards B

    #2547
    WC Vendors Support
    Participant

    Well, I asked for a screenshot, and you didn’t provide it. I cant help unless you are showing me exactly where you are still seeing it that you do not want to see it.

    https://www.wcvendors.com/knowledgebase/list-filtersactionshooks/

    If you need us to login to your site to fix it for you, we’d be happy to, it’s a $49 support charge. https://www.wcvendors.com/contact-us/

    Regards,

    Ben

    #2551
    birken
    Participant

    Hello Ben,

    sorry for misunderstanding about the screenshot as i have not add any code to my fuction.php yet.

    i want ed to remove soldby:(link) everywhere on site, mail and invoices if possible?
    do you need to screenshot of that?

    or do i just need to add this code remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2); to function.php achive this?

    warm regards Birken

    #2552
    WC Vendors Support
    Participant

    Hi Birken,

    That code you have there will only remove the “Sold by: shop name” on the product listings on the shop page and when displaying multiple products per page.

    To remove it elsewhere, you need to write the filters for each of the areas.

    https://www.wcvendors.com/knowledgebase/list-filtersactionshooks/ <--- has a list of all of the filters and what each does. http://codex.wordpress.org/Function_Reference/add_filter is how to use the filters

    This is all basic customization, you'll want to learn how to use filters very quickly as they will greatly accelerate your WordPress customization skills. You really, really, really, want to understand how to use them and experiment to fit your needs. 🙂

    Regards,

    Ben

    #2553
    birken
    Participant

    thx ben,

    so if i want to remove sold by:(vendor) in cart, do i need to add this “wcvendors_cart_sold_by” to code?

    sorry for my stupidity i can’t afforde any paid support yet.

    warm regards birken

    #2555
    WC Vendors Support
    Participant

    You can remove the Sold by: text but it will still show the vendors store name in the shopping cart.

    Yes, that is the filter you would use. I could write the filter code for you, but then you would learn nothing. It’s very basic, give it a try and show me what you come up with! We like to teach people how to do things, rather than do it for them. 🙂

    #2556
    birken
    Participant

    i wish i could code 🙁

    this how i added the wcvendors_cart_sold_by se below, is it right?

    remove_action( ‘woocommerce_after_shop_loop_item’, array(‘WCV_Vendor_Shop’, ‘template_loop_sold_by’,’wcvendors_cart_sold_by’), 9, 2);

    just wonder if is it possible to remove vendors store name everywhere?

    #2558
    WC Vendors Support
    Participant

    That’s an action. You want to remove the filter.

    Any further help on this beyond here will require a paid support fee. Everything is in the knowledgebase that you need.

    https://gist.github.com/bentasm1/4b4ece9f0af8af6d8670

    #2559
    birken
    Participant

    Ben you are star 🙂 it working perfect.

    and also i learnde something action and remvove filter

    thx again 🙂

    can i still post other things in forum or do i need to pay?

    warm regards birken

    #2560
    WC Vendors Support
    Participant

    Great! I’m glad you learned a bit and all is working properly. You’ll find actions and filters are the most common way of modifying plugins to do what you want them to do. They are very powerful!

    You’re more than welcome to post any additional questions you may have, at any time. 🙂

    #2806
    birken
    Participant

    Hi Ben,

    i just notice that the filters did not remove sold by in emails do i need to add another filter for that?

    warm regards B

    #2810
    WC Vendors Support
    Participant

    Isn’t it crazy how everything you need is already on the web in the KnowledgeBase? 🙂

    https://www.wcvendors.com/knowledgebase/list-filtersactionshooks/

    wcvendors_sold_by_in_email <-- the filter Have fun

    #2811
    birken
    Participant

    Hi Ben,

    thx again, i am still learning 🙁

    so this how i made my code:
    remove_filter( ‘woocommerce_order_product_title’, array( ‘WC_Emails’, ‘wcvendors_sold_by_in_email’ ), 10, 2 );

    is it right?

    #2812
    WC Vendors Support
    Participant

    I would do it like this:

    https://gist.github.com/bentasm1/f7e3f98a16511a249220

    ….where you see $message = ” “; — You can enter any text in there, or leave it with just one space.

    #2813
    birken
    Participant

    lol i will never undestand php 🙁 as i hace added ýour code from before like this:

    remove_filter( 'woocommerce_order_product_title', array( 'WC_Emails', 'show_vendor_in_email' ), 10, 2 );
    and i thought above that was for the mails?

    is not any way else to remove soldby in the whole system? as just also found that is also in my print ivoices and on delivery note. i am using “WooCommerce Print Invoice & Delivery Note” plugin.

    how come it ads the soldby there also and is it possible to remove that?

    i am trying to find a solution in your knowledgebase but as i notice i have to be a coder to understand 🙁

    i hope to get help again.
    warm regards Birken

    #2821
    WC Vendors Support
    Participant

    It’s hard to explain, but WooCommerce has a basic mail function. When you want to send mail, you hook into it. If the Print Invoice & Delivery Note plugin is also doing that, you can either disable that functionality (ask the plugin author) or just not use it. Anything that hooks into email, will be sent.

    #2841
    birken
    Participant

    Hi Ben,

    sorry for not understanding how it works, i thought Soldby: name was string that only was used for
    wcvendors.
    so if i disable it somehow in wcvendors code then it will not show anywhere
    but if i understand that is not the case Right?

    warm regards B

    #2848
    WC Vendors Support
    Participant

    It is text only used by WC Vendors, its hooked into WooCommerce to show up everywhere. 🙂

    http://codex.wordpress.org/Glossary#Hook

    #60869
    tronne
    Participant

    Ben,

    I saw this post, between some others more, in my case I can delete all the sold by with this code https://www.wcvendors.com/kb/removing-sold-by-on-your-site/, also as you can see in the attachment I can change the wcvendors_sold_by_in_email “sold by” to “cucu” space or whatever, but I can’t get rid of the vendor’s name, any idea?

    Not sure why this is not working https://www.wcvendors.com/kb/removing-sold-by-on-your-site/

    I’ve tried with twentyfourteen, and storefront with same luck

    Thanks in advance

    #69860
    Andy Capa
    Participant

    Having the same issue here. I have placed the code found in this article https://www.wcvendors.com/kb/removing-sold-by-on-your-site/ in the theme’s functions.php but it has not worked.

    The sold by label is still showing in all the emails and on all the web pages.

    Been trying to get support for it for a few days now, but to no avail.

    #69923
    Anna
    Member

    Andy,
    I replied to your other posts regarding this question.

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