HomePage Forums Themeforest Majextic – Auto Parts Store WooCommerce Theme Search Compatibily is not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12017
    Avatarropalimarketing
    Support Expired

    The dropdown of my search compatibility in home is not working.

    #12022
    #12024
    Avatarropalimarketing
    Support Expired
    This reply has been marked as private.
    #12026

    Please add this custom code to file functions.php( child-theme):

    add_filter('majextic_admin_fields_filter_vehicle', 'majextic_admin_fields_filter_vehicle_custom');
    function majextic_admin_fields_filter_vehicle_custom(){
    return array(
                array(
                    'type'        => 'year',
                    'slug'        => 'produced',
                    "label"       => "Year",
                    'placeholder' => esc_html__('Choose Year', 'majextic'),
                ),
                array(
                    'type'        => 'text',
                    'slug'        => 'make',
                    "label"       => "Make",
                    'placeholder' => esc_html__('Select make', 'majextic'),
                ),
                array(
                    'type'        => 'text',
                    'slug'        => 'model',
                    "label"       => "Model",
                    'placeholder' => esc_html__('Select model', 'majextic'),
                ),
                array(
                    'type'        => 'text',
                    'slug'        => 'part',
                    "label"       => "part",
                    'placeholder' => esc_html__('Select part', 'majextic'),
                ),
            );
    }
    ///You can sort, change the name, remove array field or position of these fields
    #12029
    Avatarropalimarketing
    Support Expired
    This reply has been marked as private.
    #12032

    Have you made code customizations to fix this Compatibily search function?
    I see you are writing a lot of custom js and php code, please check your code customizations and leave them as default.

    #12035
    Avatarropalimarketing
    Support Expired
    This reply has been marked as private.
    #12039

    Oh no
    You cannot customize this way.
    This search form only supports searching by compatibility attributes that we added before.
    If you want to customize the search by product brand, product category, product model, you will have to completely customize this search form in both php and js code.
    In general, this customization is quite complicated and not the way you are doing it

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.