-
How To Add Quantity Input In Shop Page
Introduction This tutorial will teach you how to add a quantity input text box with the number type for each product in the shop page Something like this When a user clicks the add to cart ajax button instead of adding one quantity of the product it will add the quantity present in the input box to the cart part page Rendering Input Quantity Box To render the quantity input box we are using the filter woocommerce_loop_add_to_cart_link You can find the official WooCommerce source code in GitHub where the filter hook is created Here is the code snippet for rendering…
-
How To Create Custom AJAX Posts Load More Plugin In WordPress
Introduction This tutorial will explain how to create your own custom AJAX load more plugin very easily and responsively This plugin is developed using plain JS instead of the jQuery library This plugin will load a set of posts of the specific category in grid-card fashion with a load more button To load remaining posts of that specific category click the load more button You can download the plugin source from GitHub Each card holds post image, title, excerpt and read more button for reference you can check the below image Let’s Explore The ShortCode As described in the readme…
-
WooCommerce Custom Products Per Page Dropdown
Introduction In this tutorial, you will learn to add dropdown which controls maximum how many products to show on a page. This tutorial is the continuation of custom sorting tutorial We will add a dropdown with selection options 4, 8, 16, 32 and All to control our products per page logic We will add our code logic to our existing plugin repository in GitHub in a new branch v2 For your easy understanding of the logic lets, we see each and individual method with its filter separately in it’s each section instead of skimming the code from top to bottom…