Code Snippets

WooCommerce – Autocomplete all Orders

December 8, 2015 in Code Snippets by

What if you just want to automatically complete all of the orders that come in? The following code snippet will do just that!

Read More →

WooCommerce – “Ship to a Different Address” area always visible

December 7, 2015 in Code Snippets by

If you want people to see the shipping fields by default, you want that section ALWAYS visible. Here’s how you do it.

Read More →

WooCommerce – Add an Editable Text at the top of Cart page

December 7, 2015 in Code Snippets by

Sometimes client will ask you to promptly add some text at the top of cart page and they will have to change this text often.

Read More →

WooCommerce – Change the link of the “Continue Shopping” button

December 7, 2015 in Code Snippets by

Below is a quick snippet on how to change link on the “Continue Shopping” button in cart. Hope you will find it helpful.

Read More →

Remove menu items in wp-admin depending on user role

December 7, 2015 in Code Snippets by

You will usually find one or more menu items that you don’t want to show to your guest posters. How do you hide them?

Read More →

WooCommerce – Automatically set order status to completed after payment is received

December 7, 2015 in Code Snippets by

Sometimes you’ll need to automatically check the payment status and mark an order as completed.

Read More →

Remove The URL Field From WordPress Comments

May 5, 2014 in Code Snippets by

Spammers tend to use URL field to post links to their spammy websites. Just to be safe, you may want to remove that URL field altogether.

Read More →

Remove the Product Count on Categories in WooCommerce

May 5, 2014 in Code Snippets by

This snippet will remove the product count functionality site-wide.

Read More →

Automatically Complete Orders in WooCommerce

May 5, 2014 in Code Snippets by

Auto Complete all WooCommerce orders.

Read More →

Change the Billing Address Label on the WooCommerce Checkout Page

May 5, 2014 in Code Snippets by

woocommerce-shipping-billing-address-label

This code snippet lets you change the main label for either the Billing Address section or Shipping Address section.

Read More →

Disable WooCommerce Scripts and Styles

September 18, 2013 in Blog, Code Snippets by

Here’s how to disable all the extra scripts and style-sheets WooCommerce loads throughout your web site, and restricts them to just loading in your store area.

Read More →

Get group details from group_id – BuddyPress Snippet

June 20, 2013 in Code Snippets by

This is a very simple thing to do but it often takes a lots of time to find. Here is how to get group details if you have a group id.

Read More →

Display number of items in cart together with total – WooCommerce

June 9, 2013 in Blog, Code Snippets by

How to display number of items in cart together with total in WooCommerce.

Read More →

Get List of Coupons used by one Customer in all WooCommerce orders

May 3, 2013 in Blog, Code Snippets by

The beauty of code snippets is their ability to save you time when developing a site. If you are a WooCommerce developer you may find this snippet usefull for Coupons listing.

Read More →
sumida@mailxu.com