Home Forums WC Vendors Pro Support Change Add Product button under product tab

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!

 

  • This topic has 6 replies, 3 voices, and was last updated 7 years ago by Anna.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #57668
    patrick
    Participant

    There seems to be ( that im aware of) 2 “add product” buttons in the vendor dashboard.

    The first one, located under the “dashboard” tab, next to the coupon button, i was able to change text. ( code below)

    But I would also like to change the second one, located under the “products tab” theres actually two on this page. Any help would be appreciated.

    /* WC Vendors Pro Rename Quick Links in Dashboard . Change the labels to your own title. */

    add_filter(‘wcv_dashboard_quick_links’, ‘rename_wcv_dashboard_quick_links’);

    function rename_wcv_dashboard_quick_links( $quick_links ){
    if ( array_key_exists(‘product’, $quick_links ) ) $quick_links[ ‘product’ ][ ‘label’ ] = ‘Add Whatever’;
    if ( array_key_exists(‘shop_coupon’, $quick_links ) )$quick_links[ ‘shop_coupon’ ][ ‘label’ ] = ‘Add Coupon’;
    return $quick_links;
    }

    #57669
    patrick
    Participant

    I just relized the add product page itself has a “add product” text, I would also like to change this

    #57676
    Hawashi
    Participant

    Yes change at both position under tab dashboard and undr product tab also
    At both place the button of add product is not visible
    You already have my user name and password
    Plese make them visible as soon as possible
    This is why I am still not contesting to seller because they complain always for add product button

    So please make it correct at both position under dashboard and products

    Regards

    M.haroon amin
    Hawashi store

    #57716
    Anna
    Member

    @haroon
    You totally bumped into Patrick’s topic. I KNOW you need help, and I responded in your own thread here: https://www.wcvendors.com/help/topic/product-add-button-has-disappear/
    He’s not even asking the same question. Please keep your questions about the add product button in your own topic thread. Thank you.

    #57718
    Anna
    Member

    @patco
    The First change you would need to make would involve modifying the product-edit.php template.
    If you have not modified our templates, yet,please see this article first:
    https://www.wcvendors.com/kb/changing-vendor-templates/

    You’ll need to change one of the first lines in this template (wp content/plugins/wcvendors-pro/templates/dashboard/product-edit.php

    Approx line 15:
    $title = ( is_numeric( $object_id ) ) ? __('Save Changes', 'wcvendors-pro') : __('Add Product', 'wcvendors-pro');

    Change Add Product to your desired text. That will change the page title and the button at the bottom.

    The second change unfortunately involved changing a core file since there is not yet a filter there. I will request that there be a filter added there if possible, so any changes made in the future will be update-safe.

    For now, though, if you want to change the button at the top of the product page, you need to edit the text found in this file:
    wp-content/plugins/wcvendors-pro/public/partials/product/wcvendors-pro-table-actions.php
    approx line 18: <a href="<?php echo $add_url; ?>" class="wcv-button button"><?php echo __('Add Product', 'wcvendors-pro' ); ?></a>

    This is not a template- so you do not move the file. It would need to be directly modified in the plugin folder.

    #57980
    patrick
    Participant

    Thank you Anna, I appreciate your help, it worked great

    #58035
    Anna
    Member

    Great, Patrick- glad that worked well for you.

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