• Resolved Landon

    (@landonbotis)


    Fields are only showing when logged in even though it is set to show to all.

    My current settings are:

    Global settings page –
    “Show custom fields login user only” is set to “no”

    Field settings –
    “Logged in Users Only” is set to “no”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Landon

    (@landonbotis)

    After further troubleshooting, I’ve found that this seems to be related to the product variations feature that was added in the latest version. If anyone has any suggestions, I’m all ears.

    Thread Starter Landon

    (@landonbotis)

    After far too many hours of troubleshooting this, I found the code responsible for this bug.

    wcff-listener.php starting on line 83

    	    
    /* Make sure the user has authorized */
    if ( ! is_user_logged_in() && wcff()->request["context"] != "wcff_render_field_on_cart_edit" && wcff()->request["context"] != "wcff_update_cart_field_data" && wcff()->request["context"] != "wcff_ajax_get_negotiated_price"  ) {
    /* User not authorized to perform this action */
        wcff()->response = apply_filters( 'wcff_response', false, "Not authorized", array());
        return;
    }
    

    As a quick fix, it works to either comment out the whole if statement, or comment out the two lines inside it.

    This should be fixed for the next release otherwise, the variations functionality is pretty much useless.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only showing when logged in’ is closed to new replies.