WooCommerce passes 150,000 downloads

Congratuations to WooCommerce on passing 150,000 downloads in the WordPress plugin repository. I’ve used WooCommerce on several E-Commerce websites and it’s the best solution for WordPress based sites that I’ve come across so far.

Adding password field to Gravity Forms

By default, Gravity Forms doesn’t include a password field in the various field types you can use, but it does have that functionality built in. All you have to do, is add the following code snippet to activate it.

add_action('gform_enable_password_field', '__return_true');

That’s it – The Password field type will now appear under advanced fields.

Modify the JigoShop Cart widget

JigoShop is a great E-Commerce system built on top of WordPress. As part of a site I was working on, I needed to display the contents of the basket in the sidebar — A common need for an E-Commerce site. So I went and added the widget, which is shown on the right, however I needed to tweak it slightly. Most of it could be done via CSS, but I also needed to change the text of the buttons, however there was no way of changing this when adding the widget. I had a look at the source code for…

Get pages by template in WordPress

I’d originally posted this on the WordPress StackExchange site, but thought I’d share it here as well. If you ever need to get pages which use a certain template, you can use the following query. You can then use the loop as normal to iterate over the pages, as well as expanding on the above query, such as setting the order. It may have once been useful to be able to just specify the page template in the query with an additional parameter, but I feel the widespread need for this is now gone, as many cases which would use…

Removing fields for logged in users in Gravity Forms

Gravity Forms is one of my favourite WordPress plug-ins due to it’s ease of use, flexability and extensibilty. In a recent project I needed to be able to show or hide a set of fields dependant on if the user was logged in. Although Gravity Forms allows for conditional fields, these are dependant on other form fields. As part of the registtration process, we collected numerous pieces of information, and many of the same fields would appear in other forms within the site. Why should users who have already registered and given all that infoamtion once have to do it…