Home Forums WC Vendors Free Support Syntax Error in Notify Vendors code

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.


Thank you to all of our customers!


Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #7800

    Please, this code to notify vendors if they haven’t configured their store is giving syntax error in the line in bold below:
    Please, assist.

    $author_id = get_current_user_id();
    $shop_name_set = WCV_Vendors::get_vendor_shop_name( $author_id );
    $vendor_login = get_userdata($author_id);
    if ($shop_name_set == $vendor_login->user_login) {
    // Use this line for any other theme
    echo ‘<h3>You havent configured your store name!</h3><p>More message text here.<br><br>Click here to set your store name.</p>’;

    WC Vendors Support

    Are you using this code in the links.php file? Remember, it is not functions.php code. It’s for the /dashboard/links.php template.



    WC Vendors Support

    PS — It looks like your single quotes were copied incorrectly. Copy & Paste from the code above.


    Great! It is OK now. It was the single quotes that were copied incorrectly before.

    Thanks Tom.


    Does it works on the PRO Version ?
    i try to but didn’t succeed.

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