Did you know that you can programmatically change WooCommerce Product Prices? And not change their database record?
Let's see how we can change a price based on the user role. 👇
We can change a sale price, a regular price, or a "price".
"Price" is actually the final price of the product which WooCommerce determines (if it's on sale, it will be the sale price, otherwise the regular one).
Here, I'll filter all and make sure it's 30% off.
Feb 10, 2023 • 11 tweets • 4 min read
WooCommerce Logs are a powerful way of getting information about what happened during various events:
It's helpful to debug issues that clients encounter, especially if no other tooling is used.
Make your own 👇
Let's make a custom logger that will store information for each login.
I'll just store the email & referrer for the sake of this thread.
Jan 11, 2023 • 27 tweets • 6 min read
Customizing WooCommerce Checkout is a skill worth thousands of dollars.
Here is what you need to know to get started with it:👇
WooCommerce Checkout can be customized in various ways:
- style
- fields
- layout
- additional content
Oct 19, 2022 • 12 tweets • 4 min read
If you want to be a WordPress developer earning $80k-100k/year, you must know how to code custom solutions.
Here are a few types of projects I did or still do:
Headless WooCommerce My Account
- writing custom REST APIs
- React front with React hooks
- React routing for different tabs
- custom features such as changing addresses on orders/subscriptions
- changing subscription plans
- adding payment methods
Oct 14, 2022 • 15 tweets • 7 min read
I was almost laughed at several years ago when I told 2 developers that I am developing with WordPress.
They thought I was doing $500 sites, while I was already earning $2k+ on the side.
Here is how you can get to $5k/mo as a WordPress developer:
There are several ways you can achieve the $5k mark.
It's not an easy mark to get to, but much easier once you get to $2k.
Break it down:
$5k / 4 weeks = $1.25k
$1.25k seems more achievable.
$1.25k / 40 hours = $32 hourly rate.
More free time? $64 hourly rate for 20 hours.
Oct 13, 2022 • 9 tweets • 2 min read
WordPress projects that will make you comfortable to start charging $60+/hour:
Note:
You should complete them all.
Once you've done them, you'll understand better how hooks work, and how to extend plugins and such.
May 18, 2022 • 15 tweets • 4 min read
WordPress development project ideas to learn more:
- 🟢 Contact Form
- 🔵 Read Later for Articles
- 🟡 Online Book Library
- 🔴 Restaurant Food Menu Builder
If you don't know how you would do that, check below how you could approach it 👇
🟢 Contact Form (Simple)
- Create a shortcode
- Use fields attribute for fields [shortcode fields=firstname|lastname|email]
- Use "to" attribute where to send [shortcode to=yourEmail]
May 18, 2022 • 9 tweets • 2 min read
Refactoring is a part of every developer's journey.
It makes your code better and more reliable.
And you'll thank yourself in a month or so.
Here is a short thread on how to approach refactoring for the code in the image
Before we start, you should know that I am no expert in refactoring or in coding.
I am trying my best and try to keep the code as maintainable as possible.
That's the idea behind refactoring, right? :)
Apr 23, 2022 • 8 tweets • 7 min read
Engagement is key on Twitter.
My sensei on Twitter 😂 is @arvidkahl and he offered great advice:
- < 5 Tweets
- > 20 Replies
In both cases, you need to find what to tweet or which tweets to reply to.
Here is how I do it: 👇
@arvidkahl Before we start, here is his advice:
I bought the course from @arvidkahl "Find your Following" and started applying what I learned immediately.
- Changed bio
- Changed cover
- Removed tutorials posted on autopilot
- Started engaging with tweets
- Started writing tweets
Can't recommend it enough.
Apr 22, 2022 • 4 tweets • 2 min read
WordPress developers, you can earn 4-5 figures/month.
When I talk about 4-figures, I think about $4000+.
When I talk about 5-figures, it's $10k+ (once I find a secret for $40k, I'll let you know 😂).
Interested?
Check:
- My free course
- @natmiletic courses (1 giveaway)
👇
My course is focused more on backend stuff and extending WooCommerce (for example selling tickets for events).
I tried Upwork (Elance before) and didn't get a client/project for 2 years 😱
I changed my approach after reading guides and got a few projects within a short period of time.
Here is how I approached projects on Upwork (or similar platforms) and got hired on them.
🧵👇
1. Update your Profile
This is the first thing you need to do. Make sure your profile is not too generic.
Update your profile by answering this:
- What do you do best? For me: WooCommerce development
- How can you help your clients?
- How do you approach solving issues?
Feb 16, 2022 • 14 tweets • 6 min read
What's your struggle when developing with or extending WooCommerce?
Do you miss something from their documentation?
Did you know they have a useful Wiki on their Github repository?
I've listed a few of their Wiki docs in this thread. 🧵
When working with WooCommerce, you might need to query products.
For that, you can use wc_get_products or WC_Product_Query.
I am embarrassed to say, but I didn't understand hooks at first.
Started fully understanding hooks when I started working on my custom #WordPress plugins.
I'll try to teach you everything about them in this thread. 👇 💻
At first, the WordPress Hook system was also called the Plugin API, because it's the core system that allowed extending WordPress.
I investigated a bit the success of Potion.so. Mostly because I am thinking of building in public. So let’s see how @noahwbragg is building in public and after only 10 months of opening the product to public, he went full-time. #buildinpublic@noahwbragg This thread is really long, so if you want to see all his tweets on Potion, you can use this in the Twitter search (and replace YEAR-MONTH-DAY): (Potion OR SaaS OR Notion OR saas) (from:noahwbragg) until:YEAR-MONTH-DAYsince:YEAR-MONTH-DAY -filter:replies