To display products with the "Out of stock" status after the products in stock on the product category page, you need to add a code to functions.php: Read more
The WP Ajax Load More Pagination and Infinite Scroll plugin modifies the standard WordPress pagination. After activating and configuring the plugin, the pagination pages will be loaded without reloading the page.
The expires Http header tells the browser that after it has downloaded the required file, it does not need to re-download the file for a certain period of time.
Using the expires header allows you to reduce the load on the server, as well as increase the speed of loading pages on your site. This also solves the "Serve static assets with an efficient cache policy" problem in the page load speed check service PageSpeed Insights (apart from third-party files, for example, this will not solve the problem with Google Analytics scripts). Read more
Sometimes you may need to disable updates to plugins, themes, and the WordPress core so that there is no mention of updates in the console.A good solution is to install the Disable all WordPress Updates plugin. Read more
By default, woocommerce searches by product title and description. To search by SKU, product attributes, and any other metadata (for example, the product price), you need to install the Relevanssi plugin . It can also make the search results more relevant to the query than the standard WooCommerce search. Read more
When displaying categories on woocommerce store pages, by default, the number of products in this category is shown in brackets. To remove it, add it to functions.php your theme has the following code:
//removing the number of products
add_filter('woocommerce_subcategory_count_html','remove_count');
function remove_count(){
$html='';
return $html;
}
Using ajax when submitting a form allows you to submit the form without reloading the page. In WordPress, this is quite simple to implement. Let's say we have the following call order form:
To display the shopping cart button displaying the number of products in the site header, add some code to the theme file header.php, which is responsible for output of the header: