HomePage › Forums › Themeforest › Majextic – Auto Parts Store WooCommerce Theme › Search Compatibily is not working
Tagged: search compatibility
- This topic has 7 replies, 2 voices, and was last updated 4 months ago by Supporter.
-
AuthorPosts
-
June 5, 2024 at 9:47 am #12017ropalimarketingSupported
The dropdown of my search compatibility in home is not working.
- This topic was modified 4 months, 1 week ago by ropalimarketing.
June 6, 2024 at 12:46 am #12022Please follow the guide here: https://leebrosusthemes.gitbook.io/majextic/woocommerce/vehicle-attributes-config
June 6, 2024 at 8:36 am #12024ropalimarketingSupportedThis reply has been marked as private.June 7, 2024 at 12:11 am #12026Please 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
June 7, 2024 at 1:05 pm #12029ropalimarketingSupportedThis reply has been marked as private.June 8, 2024 at 12:22 am #12032Have 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.June 10, 2024 at 8:35 am #12035ropalimarketingSupportedThis reply has been marked as private.June 10, 2024 at 11:01 pm #12039Oh 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 -
AuthorPosts
You must be logged in to reply to this topic.