Build first WooCommerce extension

Widgets, Part Deux: Create a Smart WooCommerce Widget

This is post 4 of 8 in the series “Build a WooCommerce Extension” We’ve covered how to create a WooCommerce widget in a very basic sense in an earlier post in this series. However, there are some more advanced steps we can take to create “smart” WooCommerce widgets for your store. Creating a “Smart Widget” If you frequently use WooCommerce widgets, you’ll notice that some of them are displayed only on certain pages. For example,…

Read More

Changing the Storefront My Account Page

Today’s Ask SkyVerge question is from Harshad: The “My Account” page used to display the login and register forms side by side, but now that I switched to Storefront and updated WooCommerce they are below each other, taking up a lot of space on the page. Can the Storefront My Account page be changed? If you use WooCommerce in a default theme, like TwentyTwelve, you’ll see that the “My Account” page layout is in two…

Read More

WooCommerce: Remove Link to Product Page from the Shop

We’ve got a couple new Ask SkyVerge questions prepped for you this week! The first question comes from Randy: I’m wondering how to remove the links on the shop page to the single product page — I simply want users to be able to click on the ‘add to cart’ button on the shop page. If you’re using WooCommerce 2.5+, there’s a code snippet that can do this for you now! Please see this comment…

Read More

Overriding Templates in WooCommerce Extensions

WooCommerce has a system in place that will allow you to override core templates within your child theme. This means that you can copy a template file, edit it, and the edited version in your theme will be loaded instead of the core version of the template. We do encourage you not to do this, as most changes can be made via hooks (filters and actions) instead, and this method is far more upgrade-safe than…

Read More

Storefront free woocommerce theme

One WooCommerce Theme to Rule Them All: Storefront

Hey folks! In case you haven’t been keeping up with WooThemes updates, we wanted to share a pretty awesome thing they did with you yesterday. WooThemes has released Storefront, which is an entirely free WooCommerce theme. And it’s fantastic. Lots of customers end up asking WooThemes, “Which theme for WooCommerce should I use?” It’s a question we get at SkyVerge, and it’s one I get at Sell with WP frequently as well (which I also…

Read More

Add Custom Code to WordPress

How to Safely Add Custom Code to WordPress Sites

There are many times that you want to tweak plugins, add a code snippet, or change some styling for your WordPress site. However, many users make these changes in a way that’s not viable for the long-term. For example, these changes shouldn’t be put into your parent WordPress theme, as they’ll be overridden when you update your theme (the same goes for plugins). Some users use this as a reason not to update themes or…

Read More

WordPress plugins vs themes

Why Use Plugins Instead of Theme Changes?

Since we develop a lot of plugins (mostly for WooCommerce) and do some custom development, we get a lot of questions on best practices or recommendations for adding functionality to a site. Many times we’ll provide suggestions or guidance and tell people they should create a custom plugin, which prompts the question, “Couldn’t I just modify my theme template or buy a theme with this built-in this instead? I don’t want to have too many…

Read More

WooCommerce reviews + tutorials

Override WooCommerce Template File Within a Plugin

The goal of this article is to describe one approach to overriding WooCommerce core template files within a custom plugin, such that they can still be overridden by a theme in the typical way. Note that this is similar to but solves a slightly different problem than what we did to create a custom overrideable woocommerce template file in your custom plugin. Overriding a core template in your plugin is something you might want to…

Read More

WooCommerce reviews + tutorials

Create an Overrideable WooCommerce Template File

Sometimes when developing a WooCommerce plugin you want to output a snippet of HTML, and do so in such a way that the content can be easily overridden by a theme. It’s part of the process of crafting a well-engineered, customizable plugin. The best way to achieve this is by using WooCommerce’s own templating mechanism, and what once took some effort and some filters is now a snap thanks to one of the recent WooCommerce…

Read More

WooCommerce reviews + tutorials

Theming WooCommerce: How to Override WooCommerce Template Files

To override WooCommerce template files in your theme (or better yet, child theme) simply make a folder named ‘woocommerce’ within your theme directory, and then create the folders/template file you wish to override within it. Example As an example, lets override the price template for the single product page to add a notice. First we locate the template file in question at: woocommerce/templates/single-product/price.php (see the full list of templates). Next, copy price.php to the following…

Read More

Error: Please enter a valid email address

Error: Invalid email

Error: Please enter your first name

Error: Please enter your last name

Error: Please enter a username

Error: Please enter a password

Error: Please confirm your password

Error: Password and password confirmation do not match