Code Snippet: WooCommerce quantity select field

For a client project we’re currently working on, I get to dive into WooCommerce for the first time. The client was already using JigoShop—WooCommerce was forked from that project—so WooCommerce was a logical upgrade.

One thing that frustrated me was how WooCommerce used a number input field for setting the quantity a customer wanted to purchase. A select field felt more natural, perhaps because that’s what Amazon (and other eCommerce behemoths) use. Using a select field for quantity inputs improves the user experience, and looks better too!

There are a number of code snippets that purport to replace WooCommerce’s quantity inputs with a quantity select field floating around the web, but they all had problems. Some only worked on the product page but not the cart. Others worked in both places, but didn’t properly update the quantity in certain places, or didn’t accurately reflect the current quantity.

Using the code from this version by Github user “kloon” as a starting point, I fixed it up so it worked exactly as desired: it correctly updates the quantity, and reflects the current quantity in the cart. Check out the snippet after the jump!

Read more…

3 WordPress plugins every small business owner needs

One of the great things about WordPress (our content management system of choice) is just how darn flexible it is. With themes and plugins at your disposal, you can accomplish just about anything in WordPress.

I thought it’d be fun to look at three plugins I think every small business needs on its WordPress website. They’re all free and easy to install, and they’ll help take your site to the next level.

Read more…

Notes from #chatwp round 3: Responsive WordPress Theming

Our third WordPress TweetChat went off without a hitch! This time around, we invited Tracy Rotton (alias @taupecat) to share her thoughts on responsive web design and how it intersects with WordPress. Tracy had lots of awesome tips to share, and to help spread them around we’ve compiled this blog post. It runs through the highlights of the chat, via tweets.

If you like it, be sure to follow #chatwp on Twitter so you can join in the next round too!

Read more…

3 reasons solo entrepreneurs need to use WordPress

It’s no secret that at Van Patten Media we love WordPress. It’s why we run #chatwp, speak at WordCamps, and release WordPress plugins. But we’re not the only ones who love WordPress; it’s used by over 20% of all websites as measured by W3Stats, and we’re sure that number is going to grow even more.

Why? Because WordPress is the perfect website management tool for solo entrepreneurs. As entrepreneurship grows, WordPress usage will grow with it, and we have three great reasons why you need to hop on the bandwagon too.

Read more…

Tracy Rotton to chat responsive themes in #chatwp 3

It’s hard to believe it’s been almost a month (a whole month!) since the second #chatwp, but time flies, and here we are announcing the next instalment of our TweetChat for WordPress-aficionados.

In this third edition of #chatwp (on Tuesday March 18th at 3pm EST), I’m so excited to welcome Tracy Rotton, alias @taupecat, to discuss responsive theming in WordPress. Tracy has contributed to WordPress core, is an avid Sass user (just like us; yay!), and is the author of the upcoming book Responsive WordPress Theming. In other words, she’s the perfect person to discuss this topic.

Read more…