WooCommerce How to Disable all Payment Gateways?

Many woocommerce stores do not take payments online or here are some woocommerce stores which provide free products, Free Membership, Free Digital Goods etc. such stores do not need payment gateways.

In this video tutorial we can see how a single line of code specifically a filter can help us to disable all payment gateways.

 

Here is code snippet to add in you child theme’s functions.php file

 

Woo Commerce One Product only, Skip the cart page

Sometime there is situation where custom sells only One product. At that time they do not require cart page before checkout. So taking them to checkout page is the right thing this will make purchase process shorter.

below code snippet clears the cart, adds the product to it and then redirects to the checkout page.

What this script does is:
1. Check that it’s a click on one of the ‘buy’ links.
2. Get the ID of the product we’re adding to the cart. This ID comes from the ‘buy’ link.
3. Empty the cart, in case a different product was selected before.
4. Add the new product to the cart.
5. Redirect to the checkout page (skipping the cart page).

woocommerce : How to hide or disable payment gateway

WooCommerce: On website load add product to cart

useful code

WooCommerce restrict shipping method as per category

This video is created for one of my client. It demonstrates how we can hide extra shipping methods if product is in particular category.

 

 

WooCommerce Tabs using Advanced Custom Fields(acf)

Part1: Manage WooCommerce Tabs Using filter

In this video you will see how you can create woo commerce tabs using Advanced Custom Field Plugin(acf)

You should be familiar with advanced custom field plugin.

we will use “woocommerce_product_tabs” filter of woo commerce to create video tab.

Watch below video to know how you can add customized tab in woo commerce.

Manage or customize WooCommerce Tabs Using filter

WooCommerce is very popular shopping cart software used with WordPress.

In this video you will see how you can manage woo commerce tabs.
Video covers following points.
1. Removing WooCommerce Tabs
2. Renaming WooCommerce Tabs
3. Changing order of WooCommerce Tabs
4. Customise a WooCommerce Tab
5. Adding a WooCommerce custom Tab

In Next video we will see how we can create custom tab which has content from custom field created using Advanced Custom Fields Plugin.

WooCommerce Auto complete orders

On of my clients requirement was that he want all orders automatically completed. So googled little bit and bingo finally found the code I want. Here it is. Thought might be helpful to someone else.

Add following code in your theme’s functions.php file