Pat
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Display SKU for variable products
Started by: Pat
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution with the following reply: Relevant Documentation: |
2 | 7 | 7 years, 2 months ago | ||
User Views sorting with user_name
Started by: Pat
in: Toolset Professional Support
Problem: Solution: add_filter( 'wpv_filter_user_query', 'sort_by_lastname_func', 100, 3 ); function sort_by_lastname_func( $query_args, $view_settings, $view_id ) { if ($view_id == 577) { $query_args['meta_key'] = 'last_name'; $query_args['orderby'] = 'meta_value'; $query_args['order'] = 'ASC'; } return $query_args; } ==> You can replace 'last_name' with the custom field you want to use for sorting (firstname, etc) -- line #5 in the above code. Relevant Documentation: |
2 | 7 | 7 years, 2 months ago | ||
Cred user field not required
Started by: Pat
in: Toolset Professional Support
Problem: Solution: add_filter('cred_filter_field_before_add_to_form', 'required_fields_func', 10, 2); function required_fields_func($field, $computed_values){ if(in_array($field['id'], array('last_name', 'adresse'))){ $field['data']['validate']['required'] = array ( 'active' => 1, 'value' => 1, 'message' => 'This field is required.' ) ; } return $field; } ==> Make sure to replace 'last_name', 'adresse' with your field slugs on line #3 2. OR If you want to have JS validation, you can use this (modification will be needed): |
2 | 11 | 7 years, 3 months ago | ||
Condition display depending of the day of the week
Started by: Pat
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 7 years, 3 months ago | ||
Modify the image orientation in Cred frontend form – relaunch
Started by: Pat in: Toolset Professional Support |
2 | 2 | 7 years, 3 months ago |