WP Development

Debugging WordPress

…s( $obj ) ); Example logging a stacktrace (if my WP Debug Helper plugin is installed and active): error_log( wp_debug_backtrace() ); Example var dumping a variable (if my WP Debug Helper plugin is installed and active): error_log( wp_var_dump( $foo ) ); Dump all defined constants (note that this will be quite extensive within WordPress): error_log( print_r( get_defined_constants(), true ) ); Dump all available globals (note that this will be quite…

Read More

WooCommerce extension updates & releases

New WooCommerce Social Login Providers

…witter Login WooCommerce Google Login WooCommerce Amazon Login WooCommerce Instagram Login WooCommerce LinkedIn Login WooCommerce PayPal Login If you’d like to add any of the new providers, you can check out our updated documentation for steps on creating new apps for each of these. Please note that PayPal login is simply a sign-in with PayPal. This does not add a new PayPal payments option to your checkout. It simply allows customers to sign into…

Read More

WP Development

Magento/WordPress Development and Deployment

…ctually working on. Our project names will be ‘magento’ and ‘widget’ then. Install Magento into the ‘magento’ project, point your local apache and verify that’s all working correctly. Step 2: Attach Git to the Module Project Next we will attach a local Git repository to the Widget project. Right-click the Widget project in the Eclipse project navigator, and select Team > Share Project… > Git. Note that if you’re mirroring my setup exactly you’ll a…

Read More

WooCommerce reviews + tutorials

WooCommerce Class Members Example: Create a WooCommerce Upsell Shortcode

…usts column width CSS accordingly. We’ll go from an original display like this: To being able to move this with a shortcode. Here’s an example of putting it in a custom tab with Tab Manager: And that’s that. 🙂 Want to install this as a plugin, or take a look at the finished code? You can view the entire plugin code here, or click “Download zip” in the top right to get a zip, which you can install just like any other plugin….

Read More

Ask SkyVerge

How can I require customers apply for a membership and approve their access?

…of setup. With this method, you’ll install this snippet on your site. Once installed, all orders for products that grant access to membership plans must be placed in “Completed” status before the plan begins.  By default, WooCommerce only places orders for products that are both Virtual & Downloadable in “Completed” status after receiving payment. So as long as your membership products are not setup as Virtual & Downloadable (Virtual on its own is…

Read More

Exclude Your Traffic From Jetpack Site Stats

…k actions to include the tracking code are removed. All that remains after installing this plugin is to visit the Site Stats settings page and check the box to ‘Count the page views of registered users who are logged in’ since this plugin takes care of removing the Administrator users from that count. Then, the optional but recommended step of setting the ‘ga_exclude’ cookie in all commonly used browsers. One way to set this cookie is with a simpl…

Read More

Terms of Service

…de relief warranted by that party’s individual claim. In addition, in some instances, the costs of arbitration could exceed the costs of litigation and the right to discovery may be more limited in arbitration than in court. The decision of the arbitrator shall be final and enforceable by any court with jurisdiction over the parties. (C) Small Claims Court. Notwithstanding the foregoing, you may bring an individual action in the small claims court…

Read More

Hide Certain WooCommerce Sub-Categories in Catalog

…all subcategories on the shop page. If you want finer-grained control, for instance displaying only certain subcategories on the shop or particular subcategories on a given category catalog page, you’ll need to write a little custom code, and there are a couple of approaches you can take. The existing limited controls, found in WooCommerce > Settings > Catalog, which allow you to hide all or none of the subcategories: WooCommerce > Settings > Cata…

Read More

Guide for Upgrading to WooCommerce 2.1

…isplay in the catalog can also be inclusive or exclusive of tax. The pages installed by default have also changed, which greatly simplifies plugin setup. The only pages now installed are the “Shop”, “Cart”, “Checkout”, and “My Account” pages. You may want to double-check that you have these four pages with the appropriate shortcodes on them (remember, you won’t need all of the shortcodes from that link – the docs are not updated yet). Sub-pages, s…

Read More

Team

Add Plugin Settings to WooCommerce, Part 2

…e filter woocommerce_get_settings_pages so you can see it in action if you install it as a plugin. Construct the Settings tab Now we have to build our settings tab within this class. First, let’s add the tab ID and label, along with some functions to handle saving and outputting sections. If you want an example, have a look at the General Settings Tab in WooCommerce. /** * Setup settings class * * @since 1.0 */ public function __construct() { $thi…

Read More