Home Forums WC Vendors Pro Support Conflict with Download Now – solution

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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #58277
    Gilles
    Participant

    Hi,

    I wanted to install another plugin to allow my visitors to directly download free products (when there are) from the product page.

    The “Download Now” is excellent to do that with WooCommerce, and it works with WC Vendors Free.

    But there is a conflict with a setting from WC Vendors Pro.
    After some tests with the author of “Download Now”, he found the solution, you will see what has been changed :

     * Lock a vendor out of the wp-admin
    	 *
    	 * @since    1.0.0
    	*/
    	public function admin_lockout( ) { 
    
    		if ( WCVendors_Pro::get_option( 'disable_wp_admin_vendors' ) ) { 
    
    			$capability = apply_filters( 'wcv_admin_lockout_capability', 'administrator' ); 
    
    			if ( ! current_user_can( $capability ) && ! defined( 'DOING_AJAX' ) && ! strpos( $_SERVER['REQUEST_URI'], 'admin-post.php' ) ) {
    				add_action( 'admin_init',     array( $this, 'admin_redirect' ) );
    			} else {
    				return; 
    			}
    		} 

    I think it would be useful for other people to include it in your next release.

    #58285
    Jamie
    Keymaster

    Hello,

    This code can be disabled via an option in our pro settings screen. This is disabled by default so unless you’ve turned it on this code should never run.

    cheers,

    Jamie.

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