Search the site:

Home / Blog / Code Snippets

Category: Code Snippets

WooCommerce Shop Page Hooks: Visual Guide with Code Snippets

WooCommerce has lots of different hooks for their shop page, product pages, cart page & checkout page. These hooks help us to add our content in different places on these pages. We saw the different cart page hooks & checkout page hooks earlier. In this post, we will learn about different WooCommerce Shop page hooks […]

How to customize WooCommerce Order Emails

Customizing the WooCommerce email template is a good way to modify the emails based on your store’s design or personalize the transactional emails. WooCommerce provides this functionality with their various email templates. WooCommerce sends emails to the admin & customers at different stages in the order processing cycle. WooCommerce contains email templates for New Order, Completed […]

How to add custom fields to WooCommerce products & subsequently through the order cycle

When you are working with WooCommerce and want to add some extra information to your product page, you can do this by adding custom fields to the products. These custom fields are also referred to as item meta and can be displayed on the cart page, checkout page, and emails too. Cart item meta is when extra […]

How to add a new custom product type in WooCommerce

WooCommerce has four product types, Simple Product, Grouped Product, External/Affiliate Product and Variable Product. In many cases, the default product types are not enough. You might need to add new product types such as Subscription product, Membership product, Bookable product & so on. In this post, we will try to add a new custom product type […]

Subscribe Now