Forum Replies Created

Viewing 15 replies - 16 through 30 (of 131 total)
  • Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Thank you for reaching out and for using the WCAPF plugin.

    Regarding ISSUE1, the last release should have resolved this problem. Please ensure you are using the latest version of the plugin. If the issue persists, feel free to let me know, and I’ll assist you further.

    For ISSUE2, could you please share a URL where the issue occurs? This will help me diagnose the problem and provide a solution as quickly as possible.

    Thank you!

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Thank you for trying the plugin. Friendly category links that you tried to mean is not possible at this moment. We have a plan to add this feature.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Thank you for reaching out!

    Please ensure the form is published, as this is a common reason for seeing the “NO FORMS FOUND” message. Additionally, could you provide the full message you’re seeing? This will help me identify the issue more accurately and provide you with the best possible solution.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Thank you for your feedback and for pointing that out!

    To resolve the issue with the active filters, you can use the following code snippet and load wcapf_active_taxonomy_filter_data using the after_setup_theme hook:

    add_action( 'after_setup_theme', function() {
    add_filter( 'wcapf_active_taxonomy_filter_data', 'wcapf_rename_product_types_in_active_filters', 10, 2 );

    /**
    * Rename product types for active filters.
    *
    * @param array $filter_data The filter data.
    * @param WCAPF_Field_Instance $field_instance The field instance.
    *
    * @return array
    */
    function wcapf_rename_product_types_in_active_filters( $filter_data, $field_instance ) {
    if ( 'taxonomy' === $field_instance->type && 'product_type' === $field_instance->taxonomy ) {
    $new_filter_data = array();

    foreach ( $filter_data as $term_id => $term_name ) {
    $new_name = $term_name;

    if ( 'Blue' === $term_name ) {
    $new_name = 'hello';
    }

    if ( 'simple' === $term_name ) {
    $new_name = __( 'Simple', 'wc-ajax-product-filter' );
    } elseif ( 'external' === $term_name ) {
    $new_name = __( 'External', 'wc-ajax-product-filter' );
    } elseif ( 'grouped' === $term_name ) {
    $new_name = __( 'Grouped', 'wc-ajax-product-filter' );
    } elseif ( 'variable' === $term_name ) {
    $new_name = __( 'Variable', 'wc-ajax-product-filter' );
    }

    $new_filter_data[ $term_id ] = $new_name;
    }

    return $new_filter_data;
    }

    return $filter_data;
    }
    } );

    Regarding your suggestion about how the plugin displays product type terms, you’re absolutely right. The current implementation does show the raw slug version, and I agree that it should display the proper names. I’ll work on updating the plugin to make this the default behavior.

    Thank you again for your valuable feedback!

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Thank you for your kind words and for using the plugin!

    You’re on the right track with your code. To ensure that the product types are correctly renamed on both the back-end and the front-end filters, you can use the following code snippet in your child theme’s functions.php file. This code ensures that the product types are renamed everywhere they appear, including the front-end filters of WCAPF.

    // Rename WC product types:
    function custom_rename_product_types( $types ) {
    $types['simple'] = __( 'Simple', 'wc-ajax-product-filter' );
    $types['external'] = __( 'External', 'wc-ajax-product-filter' );
    $types['grouped'] = __( 'Grouped', 'wc-ajax-product-filter' );
    $types['variable'] = __( 'Variable', 'wc-ajax-product-filter' );

    return $types;
    }

    add_filter( 'product_type_selector', 'custom_rename_product_types' );

    add_filter( 'wcapf_taxonomy_terms', 'wcapf_rename_product_types_in_filter_options', 10, 2 );

    /**
    * Rename product types when showing in the filter options.
    *
    * @param array $terms The array of taxonomy terms.
    * @param WCAPF_Field_Instance $field The field instance.
    *
    * @return array
    */
    function wcapf_rename_product_types_in_filter_options( $terms, $field ) {
    if ( 'taxonomy' === $field->type && 'product_type' === $field->taxonomy ) {
    $new_terms = array();

    foreach ( $terms as $_term ) {
    $term = $_term;

    if ( 'simple' === $term['slug'] ) {
    $term['name'] = __( 'Simple', 'wc-ajax-product-filter' );
    } elseif ( 'external' === $term['slug'] ) {
    $term['name'] = __( 'External', 'wc-ajax-product-filter' );
    } elseif ( 'grouped' === $term['slug'] ) {
    $term['name'] = __( 'Grouped', 'wc-ajax-product-filter' );
    } elseif ( 'variable' === $term['slug'] ) {
    $term['name'] = __( 'Variable', 'wc-ajax-product-filter' );
    }

    $new_terms[] = $term;
    }

    return $new_terms;
    }

    return $terms;
    }

    add_filter( 'wcapf_active_taxonomy_filter_data', 'wcapf_rename_product_types_in_active_filters', 10, 2 );

    /**
    * Rename product types for active filters.
    *
    * @param array $filter_data The filter data.
    * @param WCAPF_Field_Instance $field_instance The field instance.
    *
    * @return array
    */
    function wcapf_rename_product_types_in_active_filters( $filter_data, $field_instance ) {
    if ( 'taxonomy' === $field_instance->type && 'product_type' === $field_instance->taxonomy ) {
    $new_filter_data = array();

    foreach ( $filter_data as $term_id => $term_name ) {
    $new_name = $term_name;

    if ( 'Blue' === $term_name ) {
    $new_name = 'hello';
    }

    if ( 'simple' === $term_name ) {
    $new_name = __( 'Simple', 'wc-ajax-product-filter' );
    } elseif ( 'external' === $term_name ) {
    $new_name = __( 'External', 'wc-ajax-product-filter' );
    } elseif ( 'grouped' === $term_name ) {
    $new_name = __( 'Grouped', 'wc-ajax-product-filter' );
    } elseif ( 'variable' === $term_name ) {
    $new_name = __( 'Variable', 'wc-ajax-product-filter' );
    }

    $new_filter_data[ $term_id ] = $new_name;
    }

    return $new_filter_data;
    }

    return $filter_data;
    }

    If you have any further questions or need additional assistance, feel free to ask!

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi @cjamediadesign

    Thank you for reaching me out.

    You should be able to sort the category filter items in the filter settings. Are you using any caching mechanism?

    Here I attach a screenshot where you would be able to sort the filter items. https://ibb.co/SdwNsrc

    Please let me know how you are trying to sort the items so that I can try to replicate the issue on my end.

    Thanks.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    You can try hiding prices with CSS. Have you given that a shot?

    Thanks

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi @modeman,

    Thanks for reaching out!

    My plugin is designed to work seamlessly with the default WooCommerce product loop. This default loop includes essential hooks, which I utilize to insert the necessary wrapper. When a filter is applied, the plugin updates results by inserting them into this wrapper. Since you are using a custom loop, the required wrapper is missing, and as a result, the plugin cannot update the results with AJAX.

    To resolve this problem, you need to structure the product query using the necessary hooks, as shown below. This allows my plugin to insert the required wrapper.

    if ( woocommerce_product_loop() ) {
    
    /**
    * Hook: woocommerce_before_shop_loop.
    *
    * @hooked woocommerce_output_all_notices - 10
    * @hooked woocommerce_result_count - 20
    * @hooked woocommerce_catalog_ordering - 30
    */
    do_action( 'woocommerce_before_shop_loop' ); woocommerce_product_loop_start(); if ( wc_get_loop_prop( 'total' ) ) {
    while ( have_posts() ) {
    the_post(); /**
    * Hook: woocommerce_shop_loop.
    */
    do_action( 'woocommerce_shop_loop' ); wc_get_template_part( 'content', 'product' );
    }
    } woocommerce_product_loop_end(); /**
    * Hook: woocommerce_after_shop_loop.
    *
    * @hooked woocommerce_pagination - 10
    */
    do_action( 'woocommerce_after_shop_loop' );
    } else {
    /**
    * Hook: woocommerce_no_products_found.
    *
    * @hooked wc_no_products_found - 10
    */
    do_action( 'woocommerce_no_products_found' );
    }

    If you follow this and the issue persists, please let me know, and I’ll be happy to help further!

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    You are using the Fusion Builder to render the products, which is not the standard product loop that comes with WooCommerce. Could you try using the standard product loop and let me know?

    Thanks.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi,

    Currently, there isn’t a feature to set “In stock” as the default filter option. However, we’ve added your request to our feature list and are considering adding it in a future update.

    I’m marking this topic as resolved. Feel free to create a new topic if you have further questions or require additional assistance.

    Thanks!

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    I am marking the topic as resolved. Feel free to create a new topic if you have further questions or require additional assistance.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    I am marking the topic as closed. For further assistance please create a new topic.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Marking the topic as closed.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi @jma914133,

    The existing filters won’t be deleted. Please let me know if you have any more queries.

    Plugin Author Mainul Hassan

    (@shamimmoeen)

    Hi there,

    Thanks for reaching out and for considering our WC Ajax Product Filter plugin!

    Regarding your question about updates, we regularly update our plugin to ensure compatibility with the latest WooCommerce versions and to address any potential issues. We strive to provide a seamless experience for our users.

    For the Pro version, our focus is on immediate bug fixes to enhance stability. While we may not implement new features immediately, our goal is to continuously improve the plugin and keep it in sync with the latest WooCommerce updates.

    Your satisfaction is our priority, and rest assured, we are committed to providing reliable support should you encounter any issues.

    Feel free to reach out if you have any more questions or if there’s anything else we can assist you with.

    Best regards,
    Mainul Hassan

Viewing 15 replies - 16 through 30 (of 131 total)