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 a taxonomy term meta in a product page
Started by: Pat
in: Toolset Professional Support
Problem: I would like to display taxonomy term meta on a single product page. Solution: |
2 | 3 | 6 years, 7 months ago | ||
Cred commerce with a product define by a custom field
Started by: Pat
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
3 | 9 | 6 years, 8 months ago | ||
Cred generic field does not work with "persist"
Started by: Pat in: Toolset Professional Support |
2 | 17 | 6 years, 8 months ago | ||
Lightbox on woocommerce product page
Started by: Pat in: Toolset Professional Support |
2 | 15 | 6 years, 8 months ago | ||
wpv_filter_quert applys to all Views
Started by: Pat
in: Toolset Professional Support
Problem: The issue here is that the wpv_filter_query function is causing the user's other views to become empty even though they had provided an ID for which view the filter should affect. Solution: The problem with this is that the user had placed the return statement inside the conditional statement for the view to be affected. If the function is returning the value inside the if statement then all view will be affected and be blank. What you need to do is to take the return statement out of the conditional statement and your views will return to normal. A more detailed explanation can be seen here |
2 | 11 | 6 years, 8 months ago | ||
Views sorted by 2 custom fields
1
2
Started by: Pat
in: Toolset Professional Support
Problem: The issue here is that the user wanted to sort her view by multiple custom fields. Solution: This can be done by using the custom hook below. add_filter('wpv_filter_query', 'add_custom_fields_to_view_query', 99, 3); function add_custom_fields_to_view_query($query_args, $view_settings, $view_id ) { if ( $view_id == 16257 ){ $meta_query = array(); $meta_query[] = array('key' => 'acf_directory_sort_order'); $meta_query[] = array('key' => 'acf_shipping_city'); if ( !isset($query_args['meta_query']) ){ $query_args['meta_query'] = array(); } $query_args['meta_query'] = array_merge($meta_query, $query_args['meta_query']); add_filter('posts_orderby', 'custom_order'); } return $query_args; } function custom_order($orderby) { global $wpdb; return $wpdb->postmeta.'.meta_value ASC, mt1.meta_value ASC'; } Where you simply need to chance the names of the custom fields in the code that you want to sort by. |
2 | 27 | 6 years, 9 months ago | ||
WC variable product : Display a price table after choice of variations
Started by: Pat in: Toolset Professional Support |
2 | 3 | 6 years, 9 months ago | ||
Cannot insert inside a visual editor cell in Layout
Started by: Pat
in: Toolset Professional Support
Problem: The issue here is that the user had some custom js in a script tag and wanted to add it to Layouts. Solution: |
2 | 5 | 6 years, 9 months ago | ||
cred_save_data : How to write in the database for non std tables
Started by: Pat in: Toolset Professional Support |
2 | 6 | 6 years, 9 months ago | ||
New EU General Data Protection Regulation impact on plugins like Toolset
Started by: Pat
in: Toolset Professional Support
Problem: Solution: Actually this responsibility falls on the user of the plugin however some of these plugins can help to allow your users delete users. This can be achieved by setting up some auto user delete with the plugin below. You can also delete the information using this plugin as well |
2 | 2 | 6 years, 9 months ago | ||
Impossible to create new taxonomy with Types
1
2
Started by: Pat in: Toolset Professional Support |
3 | 18 | 6 years, 9 months ago | ||
Types plugin displays errors
Started by: Pat in: Toolset Professional Support |
2 | 5 | 6 years, 9 months ago | ||
[wpv-woo-buy-options] does not work for all product types
Started by: Pat
in: Toolset Professional Support
Problem: Solution: Documentation: |
3 | 6 | 6 years, 10 months ago | ||
How to use Toolset taxonomy as filter in admin
Started by: Pat
in: Toolset Professional Support
Problem: I would like to filter the list of Products by a custom taxonomy in wp-admin. Solution: Add the following custom code to functions.php: function filter_admin_lists_by_taxonomies( $post_type, $which ) { // Array of post type slugs where these filters should appear $filter_types = ['product']; // Array of taxonomy slugs to filter by $taxonomies = ['your-taxonomy-slug']; if ( !in_array( $post_type, $filter_types ) ) return; foreach ( $taxonomies as $taxonomy_slug ) { // Retrieve taxonomy data $taxonomy_obj = get_taxonomy( $taxonomy_slug ); $taxonomy_name = $taxonomy_obj->labels->name; // Retrieve taxonomy terms $terms = get_terms( $taxonomy_slug ); // Display filter HTML echo "<select name='{$taxonomy_slug}' id='{$taxonomy_slug}' class='postform'>"; echo '<option value="">' . sprintf( esc_html__( 'Show All %s', 'text_domain' ), $taxonomy_name ) . '</option>'; foreach ( $terms as $term ) { printf( '<option value="%1$s" %2$s>%3$s (%4$s)</option>', $term->slug, ( ( isset( $_GET[$taxonomy_slug] ) && ( $_GET[$taxonomy_slug] == $term->slug ) ) ? ' selected="selected"' : '' ), $term->name, $term->count ); } echo '</select>'; } } add_action( 'restrict_manage_posts', 'filter_admin_lists_by_taxonomies' , 10, 2); Modify the $filter_types and $taxonomies arrays as needed. Relevant Documentation: |
2 | 3 | 6 years, 10 months ago | ||
How to display the product cat name
Started by: Pat
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 6 years, 10 months ago |