Add a class to the body tag or any other element using jQuery after a certain amount of scroll or webpage load; you need to do it like below:
Read More »How can i filter number of orders per page in My Account?
If you want to change the number of orders per page in the WooCommerce My Account, you need to use the woocommerce_my_account_my_orders_query filter hook.
Read More »How can i create tab system using jQuery
Creating a simple tab-switching system using jQuery is super easy. No need to use any jQuery plugin for that. Just use simple jQuery and use some CSS like the one below:
Read More »WooCommerce add order note programmatically
To add a custom order note programmatically in the WooCommerce admin order details page, we need to add an order note when the user has completed the WooCommerce checkout process using the ‘woocommerce_thankyou’ action hook.
Read More »How can I show a list of child categories on the category page for the current category?
Getting child categories/terms of a parent category on the category archive page is super simple. You need to use two WP functions which I have described here.
Read More »What is the difference between Instance and Object in PHP?
Class is a “blueprint” that can use to “instantiate” different “objects”. Let’s go with a simple example for details:
Read More »How can i display product attribute name in WooCommerce cart page
To show product attributes names on the WooCommerce cart page, you need to use an action hook called woocommerce_after_cart_item_name.
Read More »Get customer list without a purchase in WooCommerce
Remove customers/user’s accounts from the database who hasn’t made a purchase of products in WordPress WooCommerce like below:
Read More »