I blog about WordPress, WooCommerce, REACT, NextJS, and more.

My posts are either tutorials, deep-dives, or just thoughts I had. I try to write about things I'm passionate about, and I hope you find them useful.

StoreUI.net is looking for a new owner

StoreUI.net is a headless WooCommerce admin interface that I built to revolutionize store management. After careful consideration, I've decided to sell the project.

How I migrated my WordPress blog to Next.js and MDX

After explaining why I left WordPress, here is the technical breakdown of how I built my new blog with Next.js, MDX, and GitHub Actions for a streamlined publishing workflow.

Why I’m moving my blog away from WordPress (after over a decade)

I’ve been using WordPress for my blog for over 10 years. It’s been a great platform, but I’m ready for a change. I’m moving my blog away from WordPress to a new platform that I’m building with Next.js and Tailwind CSS.

Introducing StoreUI: Revolutionizing WooCommerce Store Management

I’m excited to share some big news with you all! After months of hard work and dedication, I’m proud to announce the launch of my latest project: StoreUI. As many of you know, I’ve been deeply involved in the WordPress and WooCommerce community for more than 12 years at Automattic. Throughout this journey, I’ve noticed […]

Introduction to the WordPress REST API

The WordPress REST API is a powerful tool that allows developers to access and manipulate WordPress data from external applications. In this blog post, we will explain what the WordPress REST API is and how you can use it to build custom integrations and applications with WordPress. What is the WordPress REST API? The WordPress […]

The Null Coalescing Operator ?? and The Ternary Operator ?: in PHP

While I was working on a PHP project I came across those two notations ?? and ?: and realized that it’s not always obvious to determine when using one versus the other. That was a good candidate for a blog post. While those operators aren’t new, they aren’t used that often, so let’s try to […]

Comment Générer une Attestation de Sortie Covid-19 en un Clic sur Mobile

Just a quick post in French to help people generate automatically the mandatory authorization to go outside during the lockdown. La France est en confinement depuis aujourd’hui et c’est le retour de l’attestation obligatoire pour se déplacer. Puisque chaque sortie est synonyme d’une nouvelle attestation il peut être fastidieux d’en créer une nouvelle à chaque […]

Restrict WooCommerce Subscriptions Creation Process to Specific User Roles

Here’s how you can restrict the WooCommerce Subscriptions creation process to some specific user roles only. Since WordPress is based on user capabilities, you can simply edit the capability corresponding to the role you want to target. This snippet will simply remove “Simple Subscription” and “Variable Subscription” from the products dropdown select: Of course, this […]

WooCommerce: Redirect to a Specific URL on Coupon Removal

Here’s a super short snippet, that someone asked a couple of days ago: how to redirect a visitor to a specific page when a coupon is removed on the cart page. Let’s say that you need/want to display specific content to the visitors removing a coupon that is automatically applied to the cart, or something […]

How to Fix Error “Another update is currently in progress” with WP-CLI

While I was working on a local install, I tried to update WordPress core to the latest version, and I saw an ugly message stating I couldn’t update. The problem is that the message is note super useful: Another update is currently in progress. And there was actually no indication on what to do. Well, […]

WPBootCamp 2nd Edition: It’s a Wrap!

Back in September, I co-organized the second edition of the WP BootCamp, in Brittany, France. After organizing the 1st edition we learned a lot and that is probably the reason why this 2nd edition was a blast! Please note that we’re working on the 3rd edition, so please keep an eye on updates ;-) What’s […]

WooCommerce 3.5: Bring Me That Preview Button Back!

Alright alright! You just updated to WooCommerce 3.5, and you can’t see the Preview Changes button anymore in the Publish meta box? No stress, it’s made on purpose. The reason behind this is well explained here. But if like me you want to bring it back, you can certainly force the button to display again […]

Customise WooCommerce Checkout Fields Based on Products in Cart

You can easily add custom fields to your checkout page in WooCommerce using custom code, or via the Checkout Field Editor add-on, but none of those methods allow you to display those fields conditionally, based on products in the cart. Here’s how to do it. The idea here is to get the cart content and load […]

How to Customize the WooCommerce Checkout Page

Customizing the checkout page is one of the best aspects of WooCommerce simply because it’s the page where customers will have to trust you the most. That’s where they will wonder if they really need your product, if you can ship the package quickly and if you won’t just take their money. Thankfully, WooCommerce has […]

Force Customer Creation in Stripe with WooCommerce

By default, when an order is placed on a WooCommerce site using Stripe, the order is obviously sent to Stripe, a payment is stored, but a Stripe customer is created only if the “saved cards” feature is used, otherwise no customer is created in Stripe. But you can force the customer creation process in Stripe easily […]

WooCommerce: Remove Default Products Ordering Dropdown Select

By default, WooCommerce displays a nice and useful drop-down select to re-order products on the shop page. But many of you wonder how this can be removed. Here is how to do it! It’s a simple snippet that will save you and will remove that products ordering dropdown select easily, all you have to do […]

WooCommerce Stripe: Add Custom MetaData

Adding custom metadata to Stripe is easy with WooCommerce Stripe. You can send any kind of value to Stripe from WooCommerce itself. Pretty handy right? The result that we want to achieve is shown in the following screenshot: To do so, all you have to do is to create a function that will be tied […]

How to Disable All Payment Gateways in WooCommerce

So you have a WooCommerce shop but you don’t want to take payments? That’s neat! Please remind me to place an order on your site after your read that post then! In all seriousness, many WooCommerce shop owners have a shop where payments aren’t required at all. Customers place orders and payments are not handled […]

Replace “Includes $xx.xx Tax” in WooCommerce Cart

Here is a super snippet that will allow you to tweak the way the WooCommerce cart displays the tax amount included in the order total. By default it will display, for example “Includes $12.50 Tax”, but if live in a country where the tax name is always the same or if you use only one […]

Add WooCommerce Version Check Support to Your Plugins

WooCommerce 3.2 was launched a couple days ago, and it brought some great new features. And there’s one that I personally really like: the WooCommerce version check support. It’s really simple but it’s huge at the same time. It consists in just two lines of code that have a big impact on your plugins’ users […]

WooCommerce Apple Pay: Move Buttons Below Customer Details

Here is a small snippet that will allow you to move the Apple Pay button (provided by Stripe) below the customer details form on the checkout page with WooCommerce. By default, the Apple Pay button, on the checkout page will be displayed at the top of the page, before the customer details form, which, isn’t […]

Remove the WooCommerce 3.+ JSON/LD Structured Data format

WooCommerce 3 introduced a new format for structured product data called JSON/LD. Despite the fact that this improvement is a huge step forward, some people asked how to remove it. From our official post-release: Previously, structured data was output inline in our template files (marking up things such as products). In 3.0 we’ve switched to JSON-LD […]

WooCommerce Apple Pay: Add More Supported Product Types

Apple Pay is now available for WooCommerce via our Stripe add-on. That is pretty sick to tell you the truth. But by default, only some product types are supported, and I’m sure you’d like to add some more right? So, yes, by default, Apple Pay for WooCommerce supports only variable products and simple products, but […]

Disable WooCommerce 3.+ Lightbox

Here is a quick way to disable the WooCommerce 3.+ default lightbox. It’s as simple as removing the lightbox theme support: Place this in your functions.php file in your theme folder.

Disable WooCommerce 3.+ Zoom

In WooCommerce 3.+ there’s a cool new feature: the zoom! When you (h)over a product image when you’re on the single product page, you can zoom on the product images; I love this feature, however, some people would like to remove it. To do so, simply paste this snippet into your functions.php file, within the theme […]

Create a WooCommerce Order Dynamically

Alright, so you’d like to create an order dynamically within WooCommerce? Well, let me tell you you found the right post! Here is a super small snippet that will allow you to create a new order on the fly and dynamically when the function is triggered, simply load the function when needed and adjust it. You […]

Display WooCommerce Product Variations Dropdown on the Shop Page

Riaan, my fellow colleague at Automattic asked me if I had a snippet to display the variations dropdown select on the shop page for variable products so that customers can shop variable product directly from an archive page without having to visit the product page… and I didn’t have such a snippet. So I built […]

Add WooCommerce Product to Cart From URL Using Products SKU

I am working on a personal project for Automattic, and in this project I needed to tweak the way WooCommerce adds products to cart. Basically, when you add a product to cart, you probably noticed it if Ajax isn’t enabled in your shop, your are redirected to page having the following URL structure: http://mysite.com/?add-to-cart=XX Where […]

Link a WooCommerce Product to an Existing Newer Version

I have to admit that I am a fan of what Amazon does, and there’s a feature I really like. You know when you’re looking for a product, you find it, you’re about to buy it and at this moment, on the product page, you see a little notice stating that a newer version of […]

Solve WooCommerce Payment Gateways SVG Icons Not Showing

In many payment gateways, WooThemes and SkyVerge decided to use SVG files instead of PNG files to display credit card icons. It’s a great move as SVG files can provide an equal quality on retina and no retina screen for the same file weight. But from time to time, and depending on the server the […]

Providing Support is Not an Easy Task

I started working at WooThemes nearly 3 years ago as a support technician. And before joining Woo I worked with Pippin Williamson, doing support for all his premium plugins and early versions of Easy Digital Downloads. In the meantime, I also tried to provide to support to my own customers. And from what I can […]

9 Reasons why I am attending WordCamp Paris 2016

WordCamp Paris 2016 is starting tomorrow, Friday 5th of January 2016, and I’ll be attending this amazing event. Let me give you a few reasons why I’ll be there and why you should join! WordCamp is a conference that focuses on everything WordPress. 1 – The biggest WordPress related event in France No doubt, WordCamp […]

Why I Built My Own WordPress Theme

If you read my blog from time to time, you probably noticed it: I have a new theme! And guess what? It’s a custom theme that I built from scratch. Let me explain to you why, as a non-designer, I chose to create my own theme. 1 – Premium Themes have too many features That’s […]

Upload File Failing: Check List

Sometimes the upload file type just doesn’t work as expected in your PHP/HTML forms. I literally hate debugging that stuff and I’m sure you do as well. So I’d like to share a list of points to verify when this happens. Here is my checklist to help you debug your upload forms:

I Worked On A Book!

Some time ago I worked on a book with Nicola Mustone, one of my fellow colleague at Automattic. It’s of course a WooCommerce related book! We didn’t write it, but we reviewed it, that means we spent time to help the author to make the book better. This book is now available.

Bulk Import WooCommerce Products with WP-CLI & Alfred From a Text File

The other day was rainy and I was bored, so I decided to play a bit with the WooCommerce WP-CLI integration. And as I am a huge fan of WP-CLI, I wanted to create a products import system linked to an Alfred 2 workflow, because I love Alfred.

My #WPtech slides

This weekend I talked at WPtech about the customizer API for plugins. In this presentation I mentioned a free plugin I made in order to explain how the whole process works. You can download it here.

Select & Delete WooCommerce Orphaned Variations

A WooCommerce orphaned variation is a variation without a link to a parent product. This can happen sometimes during updates, or data manipulation and it’s recommended to not keep them in the database to avoid any potential errors on your e-commerce site. Here are two SQL queries that you can run on your database, the […]

Adding New Custom Flat Shipping Rates in WooCommerce 2.4+

Since WooCommerce 2.4, the flat shipping rates interface have been really improved and it’s now so simple that it can even be confusing for some users. A common request is: ”how can I add new custom flat rates?” Because, that’s true, in previous versions you could do it via the interface, but now you need […]

WooCommerce Custom Templates, tips and best practices

Yesterday I did a quick talk at Montreal meetup, in front of a great audience. I briefly explained what WooCommerce custom templates are, how to use them, and how to troubleshoot templates related issues. Here are my slides:

Custom Timbuk2 WordPress Bag

Today, my awesome employer Automattic sent me my Custom Timbuk2 bag. It has a super nice WordPress logo embroidered on the front. It looks really amazing and I love it! Thanks Automattic!

Get WooCommerce API V1 Response in XML

Not a common request but here a quick snippet that will allow you return the WooCommerce API V1 response in XML instead of JSON. Please note that REST API V2 does NOT allow you to get results in XML.

WP All Import makes WooCommerce products invisible

I was working on a WooThemes customer ticket today and he was having an issue with the products he bulk imported into his WordPress install with a plugin called WP All Import. All his products were showing fine in the WordPress dashboard but those products were not showing on the frontend.

Create Custom WooCommerce System Status Sections

When you create a plugin, I can be very useful to add a custom section to the System Status default page. When debugging a customer site you always need to check various details, and these details are pretty much always the same. That’s why adding such a debugging section is important. And the good news […]

My Talk at WordCamp Paris 2015

I just realized that I never posted the video of my talk at WordCamp Paris 2015… Now it’s done!

WooCommerce: Add a Custom Action in Tools

In WooCommerce, if you go to System Status > Tools you can see a list of useful default tools such as “Clear Transients”, “Recount Terms”, or “Install WooCommerce Pages”. But do you know that you can create your own custom buttons there? It can be very useful when you create a plugin that needs advanced […]

WooCommerce: Hide coupon box on checkout page if a coupon is already applied

Here is a quick snippet to make things a bit less confusing for your customers in your WooCommerce store. When you enable the use of coupons, WooCommerce adds a field on the cart page, and a box notice on the checkout page. But, if you enter a coupon in the cart page, and apply that […]

WooCommerce: Free Shipping on a Per Product Basis in the Same Cart

This is a common request from WooCommerce users: I want to ship specific products for free while some others will have shipping costs, but when a product having free shipping is in cart with another product that has shipping costs, free shipping isn’t available at all, what to do?

Fixing Shipment Tracking & WooCommerce Subscriptions issues

If you use WooCommerce you probably know Subscriptions, that awesome plugin that allows anyone to sell subscriptions. Today, I had a ticket about an issue between Suscriptions and Shipment Tracking, a great extension to track your shippings.

My talk at WPtech Nantes

Here is is the video of my talk at WPtech Nantes, a technical event about WordPress:

WordCamp Paris 2015 Slides

Yesterday at WordCamp Paris, I talked about emotional design applied to WooCommerce to increase sales. Here are my slides:

Allow WooCommerce customers to read private posts/products

Here is a quick snippet to allow WooCommerce users to read/access private posts or private products. Pretty useful when you want to create special offers for some existing customers only. Simply place that snippet in functions.php in your theme folder:

WooCommerce Checkout Field Editor Date Field Restrictions

At WooThemes we have an awesome add-on for WooCommerce called Checkout Field Editor. This add-on allows to add many new fields to the checkout page. This is a truly great plugin. You can add dropdown select list, checkboxes, radio buttons, and even date pickers. And pretty often people ask me how to apply restrictions on the […]

Starting the “Blogging for Hippo” contest

Last year at WooThemes, we decided to create a small contest among WooThemes employees called “Blogging for Benjamin”. The aim was to write a blog post every single day during one month, and that was great! This year, Bryce and Barry decided to called it “Blogging for Hippo” (Hippo will be the mascot for the […]

Access WooCommerce Product Tabs Directly via URL

Here is a quick snippet that I wanted to do for a long time. The aim is to allow you to create custom URLs to access products page with a specific tab active. By default, when you access a product page, the “description tab” is active by default, but with this snippet you can open […]

Too many wc_sessions in WooCommerce?

In some cases, you can see that your wp_options table is growing too fast and is becoming huge because of WooCommerce. If so, you can see that the sql table is full of _wc_session_xxx and _wc_session_expires_xxx entries. These can happen because of two things:

Interviewed on WPmarmite

Just a quick post to let you know that I was interviewed by WPmarmite a few days ago. Pretty happy with the result, so thank you Alex for taking the time to asked me questions about WooThemes, WooCommerce and CodeCanyon!

WooCommerce Product Vendors: Display Vendor Details

WooCommerce Product Vendors is an awesome extension that adds to WooCommerce many features to help you create a whole marketplace like any Envato marketplaces (CodeCanyon, ThemeForest, GraphicRiver etc…), or Creative Market.

4 Million WooCommerce Downloads!

As you know I work for WooThemes, the (awesome) company behind WooCommerce, as a full time support technician. And today is a great day because we hit 4 fucking million downloads! Wow! What a milestone right?

WooCommerce: display “add to wishlist” button on shop page

WooCommerce has an excellent add-on called “WooCommerce Wishlists” that you can get here. This add-on adds an “add to wishlist” button on the product page by default. Here is a quick snippet to add this button on archive pages too (categories pages, main shop page etc…).

WooCommerce: sort products from oldest to most recent

Here is a quick snippet that will be handy for many of you! This snippet allows you to create a new default sorting method to list your products from oldest to most recent. To use it, simply add the following code in the file called functions.php in your theme folder:

Improve WooCommerce Google Feed Products Title with YOAST SEO

Some of you may use the popular YOAST SEO plugin with WooCommerce to improve your search results in Google. And some of you also use our Google Product Feed plugin. But, the problem is that Google Product Feed doesn’t use YOAST SEO titles but WordPress products default titles. This has main issues. The first one […]

Display WooCommerce Order Customer Username on Edit Order Page

When viewing or editing a WooCommerce order, it can be pretty handy to add custom data to the page to avoid having to switch between pages. Today, i’ll provide a quick snippet that will add to the edit/view order page the customer username and a link to its user profile.

WooCommerce: change related products image size

Many of you asked me how to change the size of the related products displayed on the product page in WooCommerce. Most of the time, adding a little CSS snippet does the trick, but in some cases you would need to use a PHP snippet to be sure that your dimensions are taken into account. […]

Store and display WooCommerce order total weight

My friend (and awesome fellow at WooThemes) Gerhard wrote a few months ago a really nice snippet to add a new column in the WordPress administration edit order page to display the order weight. This snippet is really great but the order total weight will not be fully accurate if you change a product weight because […]

WooCommerce Brands: display brand description on product page

WooCommerce has a very good add-on called “WooCommerce Brands” to help you link products to brands. This plugin provides a huge list of shortcode and builtin functions to display pretty much everything everywhere. However, I’d like to share a little very useful snippet to automatically display the brands description on the product page itself, below […]

WooCommerce Subscriptions: edit sign-up button text

By default WooCommerce Subscriptions button text is “Sign-up Now“. What if you want to change this text? Well, it’s pretty simple, simply add the following snippet within functions.php in your theme folder.

How to NOT pre-populate WooCommerce checkout fields

By default WooCommerce pre-populate checkout fields when a previous order was made. That is so useful because you don’t need to re-enter your personal details: first name, last name, address etc…

Bring My WooCommerce Order Notes Back!

Since WooCommerce 2.1+, order notes aren’t listed anymore in the comments section (because yes, WooCommerce order notes are regular WordPress comments). That was something a lot of users asked to change because their comments were messed up with order notes. But Some of you need to bring the notes back in the list, in order, […]

Add WooCommerce Category Images to the Archive Page

By default WooCommerce doesn’t display category images on the products archive page. Here is a snippet that will allow you to automatically add category images without modifying your theme files. Simply copy and paste the following code in your functions.php file, within your theme folder.

Turn your site into purple for Rebecca

Rebecca was a 6 years old little girl that died a few days ago. Her favorite color was Purple… To support her family, you can turn your site into purple with the following WordPress plugin. Here are some more details about Rebecca (taken from this post):

Meet the persons you admire in the WordPress industry

Today I’m not writing about code, snippets or WooCommerce… I’d like to write about the people that make the WordPress community, and in particular about persons that I work with and the one that helped me. As you know, I work in an awesome company called WooThemes, and this company is without any doubt the […]

Delete All WooCommerce Default Product Variations

WooCommerce has a really nice feature that allows you to define default product variations for your variable products. I have to admit that it’s pretty awesome! But if you’d like to remove all default product variations at once, well that’s a bit complicate, especially when you have many products. There’s no easy way to do […]

Localizing jQuery UI Datepicker fields

Here is a quick method to localize with ease the jQuery UI datepicker fields on your site. The 1st thing you need to do is to access that page, and from there click on the language you want to apply to your datepicker fields. Let’s use French for this post. When you click on the jquery.ui.datepicker-fr.js […]

WooCommerce Custom Fields for Variations

A few months ago I wrote a post on how to add custom fields to WooCommerce products within the administration, and many of you ask me how to add custom fields to products variations. So I decided to write this tutorial to help you create new fields for each WooCommerce product variation. The final result […]

Searching by SKUs in the WooCommerce 2.1.x Administration

In WooCommerce <= 2.0.20, searching products by SKU in the administration used to be done using the “SKU:” prefix, but this was removed in version 2.1. You can now search by SKU without having to add the prefix in the search form. However there’s a little bug in versions 2.1, 2.1.1 and 2.1.2 in the […]

Customize WooCommerce Admin Orders Date Format

Sometimes when providing support for WooCommerce at WooThemes we have strange requests, and I got one recently that i wanted to share. It was about the orders date format in the administration. The default format is Y/m/d, and the customer wanted it to be d/m/Y. How to achieve this? Well, simply by using a filter […]

Storing WooCommerce Terms & Conditions in the Database

WooCommerce provides a nice feature that force your customers to accept your terms and conditions if you define the corresponding page within WooCommerce settings. If your customers don’t check the “terms and conditions”, they can’t proceed the order. This is nice and easy to setup.

WooCommerce 2.1.X Endpoints vs Shortcodes

Since WC 2.1, some shortcodes in WooCommerce have been removed and replaced by endpoints. That means that some shortcodes aren’t valid anymore. Basically if you go to WooCommerce > Settings > Accounts tab, you will be able to view and edit endpoints values. Let’s say your “my account” page slug is “my-account”, then all pages […]

WooCommerce 2.1 is out, so what now?

As you might know, WooCommerce 2.1 was released on Monday and this update is an incredibly huge update. But before pushing the update button, I decided to make a list of important posts that you should read.

Support Forums are Back, but…

As you know i had to close temporarily the support forums for a bit, but they are back now. These forums are there for me to provide you support on my premium plugins only. I will not provide support for posts i wrote here or on other sites. Also, no support will be provided for […]

Customize WooCommerce Address Fields Order

Here is a quick way to customize WooCommerce shipping and billing addresses fields order. Before providing you the code to reorder the fields, i’d like to explain how these fields are displayed. They are printed on many parts of WooCommerce: my account page, emails etc…

Customize WooCommerce Products Search Form

Here is a quick method that will allow you to override the WooCommerce default products search form. Basically, to do this, you have two options. You can use the get_product_search_form filter. That’s the easiest solution, but you can also use a custom template that you have to name product-searchform.php. Please note that usually, when you work […]

Automatically add products to cart on visit

Adding products to cart automatically when a visitor is on your site is something that can be very useful when you use WooCommerce. It could what ever you want: an insurance, a sale product etc… And guess what? This is is pretty easy to do. All you need is a little snippet to add to functions.php, […]

Should You Add a Donate Button to Your Blog?

That’s a real interesting question: should you add a donate button to your blog? And my answer is pretty simple, if you write stuff for the others, YES, add a donate button, you probably deserve it!

Change The Orders Default Status By Gateway in WooCommerce

Hey guys, today i’d like to share a little method that could be interesting for many of you. I’d like to show you how to change the WooCommerce orders default status by payment gateways. For example, when you make a purchase and use the BACS payment (bank transfer), the default order status is “on hold”, […]

Starting to Play With #WTBFB

A few days ago, Daniel Espinoza, decided to create a little friendly competition between us at WooThemes. He called it “Blogging For Benjamin”. The idea behind this competition is to post as many articles as possible during the month of december. The more you post and the more you have a chance to win. This […]

The French Community in the WordPress Ecosystem

As you might know, I am French, and since my talk in January at WordCamp Paris, I spent more time trying to know who makes the French community, and I wanted to understand why it is so active

Limit Number of Products to Add to The Shop

Let’s say you want to limit the number of products that a client can add to his WooCommerce shop… You might want to do to that for various reasons… here is how to do it. Simply place that code in functions.php:

Add Order Notes To WooCommerce Completed Order Email

Each you perform an action regarding a WooCommerce order, a note is created. This is the best way to track every single action made on an order, and of course that’s very useful when your team needs to get the full order history. That can be also useful to share this order notes history to […]

WooCommerce Snippets List

I recently posted a nice article on WPexplorer with a list of 25 really handy WooCommerce related snippets. All the snippets i wrote have tested and work absolutely fine. Here are some example of the features you can add to your install with those snippets:

WooCommerce: display coupons used in an order in the confirmation email and on the edit page

Here is a nice snippet that i really like. It will allow you to show the coupon codes used in order on the order edition page, and on the confirmation email. The snippet provides two functions, one for each action, and using the following hooks woocommerce_email_after_order_table and woocommerce_admin_order_data_after_billing_address. Then, the code is pretty much the same, it […]

WooCommerce: Hide Checkout Fields For Virtual Products

I’ve been asked many times how to remove specific fields on the checkout page when the cart contains virtual (downloadable) products only. By default if the cart contains virtual products only, the shipping fields are automatically removed, but some users want to remove some of the billing fields too. That’s understandable, there’s no need to […]

A Sublime Text Like Coda 2 Color Scheme

I know, I know, I know… Sublime Text users will say that’s stupid, but well, i’m a Coda 2 user and i love it. Actually I love many awesome features in Sublime Text, but for now, I still code with Coda 2 by Panic. Until today i was using a GitHub like color scheme, but […]

Mastering WooCommerce Products Custom Fields

WooCommerce is without any doubt the more powerful e-commerce plugin for WordPress. And what i love with WooCommerce is that there’s an API for nearly everything. Today, i decided to show you how you can customize WooCommerce dynamically, and in particular how to add custom fields to any WooCommerce products. Here is the final result […]

WooCommerce – Check if product is already in cart

Here is a snippet for WooCommerce that changes the “add to cart” button text when a product is already into the cart. It uses two filters, one to change the text on the product page, and one for the products list. Here are the results:

WooCommerce – Remove category products count

Here is a quick snippet to remove products count after categories names using WooCommerce. It’s pretty useful in particular when your main shop page list categories instead of listing products.

WooCommerce: Skip Product & Cart Pages

That’s a common issue some of you (WooCommerce users) face: how to click on one single button to add a product to the cart without even visiting the product page and skip the cart page to be directly redirected to the checkout page. Let’s say you sell a ebook, and you lost potential sales during […]

WooCommerce: Create a shortcode to display product categories

Here is a quick snippet that will allow you to create a dropdown select that displays the WooCommerce product categories. Once the dropdown is clicked, your visitors will be automatically redirected to the product category page! Place this code in the functions.php file within your theme folder.