Snippets are priceless. Whether you create them or use them. But as a developer, snippets can help you to level up your WooCommerce coding.
A Snippet is Always the Starting Point
So a snippet is always the starting point, or at least it’s the answer to the question, is this possible in WooCommerce?
Snippet vs. Plugin
Often with a snippet you may feel confident that you can achieve that without a plugin. But that doesn’t mean plugins are bad, as there are a lot of great ones out there. In most cases, four lines of code are better than a plugin. On the other hand, sometimes they’re not because plugin might be complex enough to handle payments, to manage shipping, to do something more complicated. In that case using snippets or custom code is almost never a great idea because it’s an ecommerce site and money comes first. If with a snippet you do something wrong and payments cannot be taken and a shipping doesn’t work then there is a lot of issues, especially with your client.
Opening Your Mind for Learning
Now snippets may be complex but at the same stage they open the developer’s mind because you are given the confidence to say, “Oh, this can actually be done in WooCommerce so let’s try it,” of course, if your client has it in their budget. Whereas a $79 plugin might be the solution. It really is about making sure whatever direction you go that it is a perfect fit to your project specifications.
This was taken from a podcast with Rodolfo Melogli, the master of Woo snippets. There is a ton of great advice as well as his story in the podcast.