Home Forums WC Vendors Pro Support I need function or code to retrieve image path from Branding

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26900
    Milly
    Participant

    Hey Ben, how you doing ?

    I want to know the function or code to retrieve path of the images that a vendor can upload in settings > branding in Pro Dashboard.

    I have separate profile pages for all vendors, where a guest can see their information and their latest products and I want to show these 2 images over there as well. Those pages retrieve data dynamically from their UserID. Can I retrieve those 2 images from userID as well ?
    ( https://goo.gl/I2Iv9A )

    Thanks in advance.

    #26979
    WC Vendors Support
    Participant

    Hi Milly,

    The attachment ID is stored as user meta for each vendor.

    _wcv_store_banner_id = banner
    _wcv_store_icon_id = icon

    By using get_user_meta you can fetch the meta key’s value, and from there, you have the images attachment ID and can do things with it.

    Cheers

    #27090
    Milly
    Participant

    Thanks Ban.

    I can see that we can hide those image fields from Pro Dashboard Settings but I want to change the title name for these 2 fields and with that I need to add an instruction for required image resolution.

    Please help me.

    Thank you in advance.

    #27127
    WC Vendors Support
    Participant

    Screenshot of what you want to change and where?

    #27205
    Milly
    Participant

    I need to add another title with a small line of instruction regarding required resolution for the images.

    Thanks in advance.

    #27263
    WC Vendors Support
    Participant

    You can use the actions:

    wcvendors_settings_before_branding
    wcvendors_settings_after_branding

    so:

    add_action( 'wcvendors_settings_before_branding', 'custom_wcvendors_settings_before_branding' );
    function custom_wcvendors_settings_before_branding() {
        echo '<h1>This shows up before the branding text.  Customize your message however you want</h1>';
    }
    

    Changing the title would require a complete filter rewrite, see the source for the filter names.

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