October 2020

How to increase memory limit in WordPress

Are you looking for a way to increase the built-in memory limit in WordPress? Well here is the small snippet which can be used to increase the limit. Edit your wp-config.php fileAdd the following to the wp-config.php file. Above the line that says /* That’s all, stop editing! Happy blogging. */ Edit your PHP.ini fileIf

Add custom order status in WooCommerce

There are many options available for order status but what if our business needs more customized options like Shipment Arrival, Awaiting shipment, or many more. These statuses are necessary to be added according to different business requirements. So The main agenda for this snippet is to see how we can add more information to orders.

Remove product meta on a single product in WooCommerce

By default WooCommerce product meta is displayed on the single product page. Such data can reveal a bit about business information and tricks. In the below image you can clearly see the product meta before applying any snippet to it. Now let’s remove the meta from the single product. Here is an easy solution that

Hide quantity on the cart page in WooCommerce

This would sound extraordinary, but in some cases, the quantity field is not needed like when we sell show tickets or movie hall tickets. All the information is already on the product page. So to change the ticket number on the cart page will not be logical.Here we can add this small snippet to fulfill

Removing billing fields in WooCommerce

A website that sells wallpaper images or e-books will not need such fields and company information so this snippet helps to remove the unnecessary fields from the checkout page. In the below image, you can see the default checkout form. Now let’s insert the following to function.php in your child theme. Here in the above

Add custom billing fields in WooCommerce

Besides removing all unnecessary fields, adding useful fields to the page is also significant. Use this snippet to add the desired fields on your checkout page. Look below the default checkout form given in the image. Now let’s Add this to your function.php in the child theme. In the above function first, we are forming

Scroll to Top