SkyVerge Test
Tweaking the WooCommerce Order Admin: Searching For Custom Fields December 12 2012
The WooCommerce Order Admin allows you to search for ordres by the following fields: order key billing first name billing last name billing company billing address 1 billing address 2 billing city billing postcode billing country billing state billing email billing phone order items But what if you want to search by another order field? Perhaps the order total? Well it’s as easy as adding something like the following to Keep Reading…
The post Tweaking the WooCommerce Order Admin: Searching For Custom Fields appeared first on SkyVerge.
How to Override WooCommerce Widgets December 01 2012
While it’s not technically possible to override a WordPress widget (and remember WooCommerce widgets are nothing more than WordPress widgets), WooCommerce is just so extendable and pluggable and flexible, that some widget functionality can be nearly completely overridden just using the standard WooCommerce template files and/or template functions. For the widgets that aren’t as pluggable, or if you need greater control, you have the option to un-register a core WooCommerce Keep Reading…
The post How to Override WooCommerce Widgets appeared first on SkyVerge.
Don’t Share Terms Between WordPress Taxonomies November 20 2012
By default WordPress will reuse terms with the same name and slug between different taxonomies (at least for now). For instance, if you add the term ‘red’ as a tag, and then add the category ‘red’, the same wp_terms record will be shared between them. This is also true for any custom taxonomies you define (remember that despite their seeming differences, WordPress tags and categories are both implemented as taxonomies). Keep Reading…
The post Don’t Share Terms Between WordPress Taxonomies appeared first on SkyVerge.
How to Add Dimension Units to WooCommerce November 08 2012
This post was prompted by a recent question on the blog regarding how best to add custom units to the WooCommerce dimensions or weight options. While not a difficult thing to do, adding units is not trivial either if you don’t have much experience with PHP, WordPress or WooCommerce. This would be useful for adding, for instance, the foot as a dimension measurement to WooCommerce, which seems to be the Keep Reading…
The post How to Add Dimension Units to WooCommerce appeared first on SkyVerge.
WooCommerce Order Admin Calc Line Totals September 30 2012
Compatibility Notice: The following article and code applies to pre-WooCommerce 2.1 only. It is not compatible with WooCommerce 2.1+ As of version 1.6.5.2 at least, WooCommerce does not provide a way to automatically calculate the Line Subtotal and Line Total values for a given product quantity, when creating or updating an order through the Order Admin: As shown in the above image, there’s a button to calculate the line taxes Keep Reading…
The post WooCommerce Order Admin Calc Line Totals appeared first on SkyVerge.
Override WooCommerce Template File Within a Plugin September 06 2012
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 Keep Reading…
The post Override WooCommerce Template File Within a Plugin appeared first on SkyVerge.
How to Display WooCommerce Products by Subcategory September 01 2012
I recently released a WooCommerce plugin that allows you to organize your products by subcategory in your shop and catalog pages. This extension grew out of a client’s request to alter the standard WooCommerce catalog page layout to show nested child categories on his catalog pages, along with any products that belong to those categories; this is in contrast to the standard catalog pages which simply display all products assigned Keep Reading…
The post How to Display WooCommerce Products by Subcategory appeared first on SkyVerge.
How to Use WooCommerce’s Lightbox August 30 2012
[box type="info" style="rounded"]Update: As of version 2.0, WooCommerce is no longer packaged with the excellent FancyBox (I guess due to some licensing issue or something). I’m leaving this article up for those still on WC 1.6.6 and previous, and for historical purposes. To learn how to make use of the new WooCommerce-2.0 compatible lightbox, read on in the new and updated article How to Use WooCommerce Lightbox Part 2[/box] WooCommerce Keep Reading…
The post How to Use WooCommerce’s Lightbox appeared first on SkyVerge.
How to Display MSRP Price on WooCommerce Shop Pages August 23 2012
The WooCommerce MSRP Pricing plugin allows you to set an MSRP price for your products and display it on the product page. But what if you want the MSRP displayed on the category/catalog/shop pages? The following is one solution, which will display the MSRP just before the regular product price in the catalog pages. You may need to do a little CSS style tweaking of the displayed MSRP price, depending Keep Reading…
The post How to Display MSRP Price on WooCommerce Shop Pages appeared first on SkyVerge.
Hide WooCommerce "Free" Price Label August 23 2012
A common WooCommerce question lately has been how to hide the “Free” price label in the product/category/shop pages. Thanks to WooCommerce’s judicious use of filters/actions, this is very easy request, yet if you’re new to WordPress/WooCommerce you might not necessarily know exactly where to look. Well look no further, because here’s an easy way to suppress that “Free” notice for regular/variable products: Simply add the above to your theme’s functions.php Keep Reading…
The post Hide WooCommerce "Free" Price Label appeared first on SkyVerge.
Extending the WordPress XML-RPC API August 20 2012
The purpose of this article is to describe the WordPress XML-RPC API, explain how to use it, and demonstrate how to extend it to create custom API methods for interacting programmatically with WordPress. I assume a relative unfamiliarity with XML-RPC in general, WordPress XML-RPC, and spend time first covering the basics, if you want to skip straight to the section on extending the WordPress XML-RPC API, feel free to. What Keep Reading…
The post Extending the WordPress XML-RPC API appeared first on SkyVerge.
Writing a Plugin That Can Be Localized by WPML August 10 2012
Writing a custom plugin that can be translated by WPML (WordPress Multilingual) using .mo files is actually quite simple once you figure out how to generate the .mo file. My first attempt to internationalize my plugin with WPML however was less than successful, WPML would not localize my plugins text strings. I knew my .mo file was correct, and could be loaded by WordPress because when I set WPLANG to Keep Reading…
The post Writing a Plugin That Can Be Localized by WPML appeared first on SkyVerge.
Hide Certain WooCommerce Sub-Categories in Catalog August 09 2012
WooCommerce provides some coarse control over displaying sub categories in your shop/category pages with the “Show subcategories on category pages” and “Show subcategories on the shop page” options on the WooCommerce > Settings > Catalog > Catalog Options section. These controls are all-or-nothing though: show all subcategories on the category pages, or show all subcategories on the shop page. If you want finer-grained control, for instance displaying only certain subcategories Keep Reading…
The post Hide Certain WooCommerce Sub-Categories in Catalog appeared first on SkyVerge.
How to Set Up an SSH Tunnel With PuTTY July 26 2012
There’s lots of articles on SSH tunneling, and plenty that cover how to create a tunnel with PuTTY, so why write another one? Because I spent longer than I should have trying to get this working the other day, and failing due to a simple order of operations issue. So I decided to spell it out step-by-step, for people like me who need that extra little bit of help. Step Keep Reading…
The post How to Set Up an SSH Tunnel With PuTTY appeared first on SkyVerge.
WordPress Pretty Category Permalinks Broken and Fixed July 26 2012
This is probably another one of those situations that applies only to me, but just in case someone else out there happens to have this same broken permalink issue, I’ll describe what happened to my site, and how I fixed it. The specifics of my setup were: WordPress 3.4.1, WordPress SEO 1.2.5, and the custom permalink structure /%category%/%postname%/. The problem that someone thankfully alerted me to (gotta get back in Keep Reading…
The post WordPress Pretty Category Permalinks Broken and Fixed appeared first on SkyVerge.
How to Set WooCommerce Virtual Order Status to Complete After Payment July 24 2012
WooCommerce virtual orders can be automatically marked as ‘completed’ after payment with a little bit of code added to a custom plugin, or your themes functions.php file. By default WooCommerce will mark virtual-downloadable orders as ‘completed’ after successful payment, which makes sense, but some store owners will want to be able to automatically mark even a virtual order as complete upon payment, for instance in the case of a site Keep Reading…
The post How to Set WooCommerce Virtual Order Status to Complete After Payment appeared first on SkyVerge.
How to Create a Custom WordPress Post Type With Image Uploads July 12 2012
This article details one method of creating a custom WordPress post type with the ability to upload and attach images using the built-in WordPress Media browser. This piece does not cover all the details and nuances of creating a custom post type, as this is covered well elsewhere. In addition to highlighting the most important methods and code required, I have attached a fully functional demo plugin which you may Keep Reading…
The post How to Create a Custom WordPress Post Type With Image Uploads appeared first on SkyVerge.
Create an Overrideable WooCommerce Template File July 06 2012
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 Keep Reading…
The post Create an Overrideable WooCommerce Template File appeared first on SkyVerge.
How to Get Various WooCommerce Page URLs July 04 2012
Code examples of how to get various WooCommerce page URLs such My Account and Checkout
The post How to Get Various WooCommerce Page URLs appeared first on SkyVerge.
Hide WooCommerce Product Images June 29 2012
You can hide WooCommerce product images from the product detail pages by using the following technique.
The post Hide WooCommerce Product Images appeared first on SkyVerge.
How to Add a WordPress Admin Menu Notification Bubble June 27 2012
Adding one of those nifty WordPress admin menu notification number bubbles to your custom menu/submenu is quite easy. Just append the following snippet to your menu/submenu name and you're good to go:
The post How to Add a WordPress Admin Menu Notification Bubble appeared first on SkyVerge.
How to Add a WordPress Plugin Action Link June 25 2012
I always prefer it when plugins make it as easy as possible to find their configuration page. When I install a new plugin the last thing I want to do is hunt around for some hidden menu item, I want to play around with my new toy! And what better place to link to a plugin’s configuration than right from the admin Plugins page where the plugin is activated, deactivated Keep Reading…
The post How to Add a WordPress Plugin Action Link appeared first on SkyVerge.
Debugging WordPress June 11 2012
The following are some techniques I use nearly every day for debugging WordPress and WooCommerce, and can be used for plugin or theme development equally. Echoing or printing to the screen will only get you so far when debugging, especially in a complex framework like WordPress; to really understand the code flow, and to trace and fix issues, you need to be able to log messages to a file. For Keep Reading…
The post Debugging WordPress appeared first on SkyVerge.
Add Payment Type to WooCommerce Admin Email June 08 2012
Here’s a little snippet to add the order payment type to the WooCommerce Admin New Order email, in an upgrade-safe manner
The post Add Payment Type to WooCommerce Admin Email appeared first on SkyVerge.