shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

Slow Searching for Variable Products on the Enquiry Edit Page

Description:
If your site has a lot of variable products and product variations, searching for these variable products on the enquiry cart page can be slow.

This is because, by default, the PEP plugin displays all product variations along with their attributes, which takes more time when you have many products with multiple variations.

To improve the speed of searching variable products on the enquiry edit page, you can modify the search function by adding a small piece of code to your theme’s or child theme’s functions.php file. It’s recommended to use a child theme so that your changes aren’t lost when the theme updates.

Here are the steps to follow:

  1. Access Your Theme’s Functions File:
  • Go to your WordPress admin panel, and from the left menu, navigate to Appearance > Theme File Editor.
  • If you are using a child theme (recommended), find and open the functions.php file from your child theme.
  • If you’re not using a child theme, make sure to create or activate one to avoid losing custom changes during theme updates.

2. Insert the Following Code:

  • Add this code snippet to your functions.php file:
add_filter('quoteup_use_alt_variable_search', 'quoteup_change_search_functionality');

function quoteup_change_search_functionality()
{
    return true;
}
  • This code switches the product search functionality to a more efficient method when you’re editing the enquiry page. It tells the system to use an alternate search approach, which speeds up the process.

3. Save the Changes:

  • After adding the code, click Update File to save the changes.

4. Check the Results:

  • Now, when you search for variable products on the enquiry edit page, the search should be faster, and the page will only show relevant product variations, making it much quicker to load and display.

    This method improves the search speed by not displaying all variations and attributes at once, but only showing what’s necessary.

    Updated on September 25, 2024
    shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
    shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
    shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

    Was this article helpful?

    shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php
    shvsh > /home/1570834.cloudwaysapps.com/gruajwrvrc/public_html/wp-content/plugins/ht-knowledge-base/ht-knowledge-base.php

    Related Articles