Home Forums WC Vendors Free Support change vendor profile page

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 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #55859
    amany
    Participant

    Hi

    I’m using Userpro profile plugin and I need when I click on product-seller-name redirect me to userpro

    how I can do that ?

    thank you..

    #55905
    Anna
    Member

    @amany
    I have never used that plugin nor do I know what link you are talking about..
    If you mean the sold by name?
    That is meant to direct to the vendor’s store so the customer can see more products by that vendor..
    I really cannot help with Userpro since we do not write that plugin.

    #55955
    amany
    Participant

    yes I mean sold by , is there any chance to change the link to different plugin profile ?

    #56077
    amany
    Participant

    I contact with userpro plugin to change it but they ask me to contact with because is out of their scope ..

    so I appreciate if you provide me the custom redirection rules as they said :
    “you can redirect the links from Vendor Profile to the UserPro plugin by adding custom redirection rules in the “htaccess” file of your website. But for that you need to know all the links for that take you to the Vendor Profile and then you can use any redirection plugin, to manually redirect these links to UserPro Profile links.”

    thank you

    #56287
    Rahimjon
    Participant

    Hello!

    My name’s Rahimjon.
    I tried to check online users, but I couldn’t.
    How I can check if user’s online ?
    Please, help me.

    Thanks a lot.

    #56341
    Anna
    Member

    @amany
    If you look in the WC Vendors core files, the sold by is determined in several locations.
    wp-content/plugins/wcvendors/classes/front/class-vendor-shop.php
    wp-content/plugins/wcvendors/classes/front/class-vendor-cart.php

    For each instance you find the sold by being defined– you’d have to write a filter to change it. $sold_by

    Instead, There is also the template, which can be modified:
    wp=content/plugins/wcvendors/templates/front/vendor-sold-by.php
    And you could write your own function to call the userpro profile link in that template instead of the $sold_by

    How to modify templates: (https://www.wcvendors.com/kb/changing-vendor-templates/)

    #57996
    amany
    Participant

    Hi Anna,

    Thank you appreciate your help

    I used this function in function.php and vendor-sold-by.php nor of them doesn’t work

    function change_vendor_link($args) {

    $vendor_id = $args[‘vendor_id’];

    if ( WCV_Vendors::is_vendor( $vendor_id ) ) {

    $args[‘shop_url’] = $userpro->permalink($user_id);
    }
    return $args;
    }

    so could please help to find what is wrong with this code ?

    thank you..

    #58164
    Anna
    Member

    Amany,
    Since I am not familiar with userpro at all- I am sorry but I cannot help.
    I do know that if you wish to change the vendor links you may also have to go through and remove these actions, then replace them with your userpro link in a new action:
    https://www.wcvendors.com/kb/removing-sold-by-on-your-site/

    So you would remove those actions, then recreate an action with your new function with the userpro profile link instead of the vendor shop link.

    #58265
    amany
    Participant

    hi Anna,

    thank you I just try to remove all “sold by” links but it doesn’t work !

    #58525
    Anna
    Member

    @amany,
    You can use this in your functions.php to remove all of the sold by links in WC Vendors free:

    /* Remove sold by in product loops */
    remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9, 2);
    /* Remove sold by in cart view */
    remove_filter( 'woocommerce_get_item_data', array( 'WCV_Vendor_Cart', 'sold_by' ), 10, 2 );
    /* Remove sold by on single product pages */
    remove_action( 'woocommerce_product_meta_start', array( 'WCV_Vendor_Cart', 'sold_by_meta' ), 10, 2 );
    /* Remove sold by in emails */
    remove_filter( 'woocommerce_order_product_title', array( 'WCV_Emails', 'show_vendor_in_email' ), 10, 2 );
    /* Remove the entire seller info tab */
    remove_filter( 'woocommerce_product_tabs', array( 'WCV_Vendor_Shop', 'seller_info_tab' ) );
    /* Remove from order item meta (required to remove if removing from emails too) */
    remove_action( 'woocommerce_add_order_item_meta', array('WCV_Vendor_Shop', 'add_vendor_to_order_item_meta'), 10, 2 );
    
    #58560
    amany
    Participant

    hi,

    I used these code in functions.php but still lead me to vendor page ?

    it doesn’t work..

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