WooCommerce

WooCommerce is my favourite eCommerce solution since WooThemes joined Automattic.

Payment Complete Hooks

In this tutorial I will show you three different WooCommerce payment complete hooks and describe how and when you should use them.

Hide Payment Methods Based on Shipping Class in the Cart

WooCommerce product shipping classes

How to Find Shipping Class ID?

how to add a shipping class ID column into WooCommerce settings

Redirect to a Different Thank You Page based on Payment Method

In this tutorial I will show how to perform a redirect to a custom order received paged depending on a payment gateway used by customer.

Disable Payment Gateways based on User Role

In this tutorial I will show you how to enable or disable WooCommerce payment gateways for a specific user role. And also how to condition them for registered users.

Restrict Payments Gateways for Specific Products / Product Categories

How to enable/disable payment gateways if a specific product is in the cart or a product is in a specific category.

Charge Additional Fees Based on Payment Gateway Selected

charge additional fees for specific WooCommerce payment gateways

Change Specific Payment Gateway Title and Description

Change WooCommerce payment gateway title and description

Disable Payment Gateway based on Shipping Method

Enable payment gateway by shipping method in WooCommerce

How to Hide Payment Methods based on Postal Code

Hide or show WooCommerce payment methods based on postal code

Restrict Payment Methods based on Cart Total

In this tutorial I will show you how to disable WooCommerce payment gateways based on cart total without use of any plugin.

Disable Payment Gateway for a Specific Country

restrict WooCommerce payment gateways by country selected

Add ID Column to Payment Methods Table

Payment method ID column

Add Product to Cart Programmatically

In this tutorial I will show you some simple PHP code examples which allow to add a product or a product variation to the cart in WooCommerce.