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.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

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

    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.

    <?php
    $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>’;
    }
    ?>

    #7801
    WC Vendors Support
    Participant

    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.

    https://www.wcvendors.com/knowledgebase/changing-vendor-templates/

    https://gist.github.com/bentasm1/62d6966fdecfda62875a

    #7802
    WC Vendors Support
    Participant

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

    #7804
    stardrive
    Participant

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

    Thanks Tom.

    #67272
    Douglas
    Participant

    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.
This website uses cookies to ensure you get the best experience on our website.