Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 17,601 subscribers) so that you can learn something new.
Totally off topic – we had to call our builders again to do some post-renovations fixes. Like a pipe that was leaking and a window that was not opening… is there such a thing as a “post-renovations warranty” where builders need to come back to fix their mistakes for free for the next 12 months? Just wondering how it works – especially outside of Italy.
Apart from our beach house, all is well and we’re finally enjoying the beach whenever I’m not at work. The weather is nice and fires have gone, thankfully. I’m still working every other day, but my schedule is flexible so I can prioritize my wife and kid, as well as friends and nights out (last night’s lounge bar dinner was lovely, for example).
Business-wise, I released two new WooCommerce Mini-Plugins this week, so I’m delighted with that: WooCommerce Rename “Select Options” Button on Shop Page and WooCommerce Hide Categories, Tags Or SKU on Single Product. Sales are going well (339 sales in 2023 so far), support is not that much (99% of the time) and the no-subscriptions business model *seems* sustainable. We’ll see at the end of the year if there’s anything that needs to be adjusted.
Anyhow, here are this week’s WooCommerce tips – enjoy.
BUT FIRST… THANK YOU, STAGE SPONSOR!
GoDaddy PRO WordPress Ecommerce hosting with WooCommerce gives you the freedom to sell anything, anywhere online – from physical products to digital downloads, services and subscriptions. We’ve integrated WooCommerce into our Managed WordPress platform where you can choose from over 75 premium WooCommerce extensions included in your plan for as long as you host your ecommerce store with us. That’s nearly $6,000 in free premium extensions — at no extra charge — to build a powerful, customized ecommerce store.
1. WooCommerce Tips & Updates
Today I’d like to experiment a little, and see what happens when we include the “add to cart template” (i.e. the one you see on the WooCommerce Single Product page) under each product on the WooCommerce Shop page. ~ Rodolfo Melogli, Business Bloomer
In this experiment, we will first calculate the current product’s categories, and then use a WooCommerce shortcode to output them as a grid, right below the related products section. ~ Rodolfo Melogli, Business Bloomer
To help you find a solution that matches your large-scale needs, we’ve done extensive research on each of these platforms to bring you our list of the best WooCommerce hosting providers for 2023. ~ Maddy Osman, Nexcess
2. ICYMI: WooCommerce Articles
There is a native, handy way to get a WooCommerce customer’s last order. This time, I want to write some custom code to get the second last order instead. We will indeed reuse most of the above function code and change it slightly. ~ Rodolfo Melogli, Business Bloomer
Ever wondered if you could toggle payment gateways based on whether a given “product type” is in the WooCommerce Cart? For example, disable PayPal if there are simple subscription products, or enable Stripe only when there are variable products? ~ Rodolfo Melogli, Business Bloomer
Especially when you need to let other people (such as developers) log in to your WooCommerce website, you may want to protect the identity of your customers and your order details. ~ Rodolfo Melogli, Business Bloomer
Getting the list of cross-sells for a WooCommerce product is actually super easy (yes, it’s one line of PHP). But what if you need to “calculate” the list of cross-sells for an entire order, made of different products? ~ Rodolfo Melogli, Business Bloomer
Here’s my personal attempt to fight against the WooCommerce My Account Page registration spam, without installing yet another captcha plugin. I’m pretty sure this solution is not perfect, because spam bots are very “smart”, but it can help prevent most fake registrations. ~ Rodolfo Melogli, Business Bloomer
It may happen during your coding career that you need to know whether a given Product ID is part of a Grouped Product (so, it’s a “child” of a Grouped Product) – the snippet below will help with that. ~ Rodolfo Melogli, Business Bloomer
Let’s say, as a WooCommerce store admin, that you’ve added a product custom field (e.g. “gtin“), and you want to make sure the backend search also returns products where “gtin” is equal to the search term. This snippet will help you do that. ~ Rodolfo Melogli, Business Bloomer
THANK YOU, BALCONY SPONSORS!
Optimize the SEO of your WordPress site with SEOPress: titles and metas, xml & html sitemaps, social sharing, Analytics, Local SEO, WooCommerce SEO, automatic and manual schemas, Google News, Video sitemap, Search Console integration and so much more. Fully integrated with all page builders thanks to our Universal SEO metabox and now with AI for maximum productivity. Super easy to use, no coding required, white label, no ads. Already 300,000 active installations. Start ranking now!
Struggling to find the right words to describe your products? ProductWriter.ai is here to help. Our AI-powered tool uses your product data to generate engaging descriptions in seconds. Say goodbye to spending hours writing copy or hiring a copywriter. With ProductWriter.ai, you can generate product descriptions right within WooCommerce, no extra apps or websites are needed. Try it for free today!
Nexcess Managed WooCommerce hosting is fast, easy-to-use, and includes built-in performance tools like extra PHP workers and a global CDN, which means their hosting is fully optimized for selling online. Nexcess offers free migrations, a 30 day money-back guarantee, and helpful support from WooCommerce experts 24/7/365. They are even officially recommended by WooCommerce! If you’re a serious WooCommerce store owner who needs to sell without limits, get started today by visiting Nexcess.
Enjoyed this issue?
Well, congratulations for reading this far – you’re one of a kind! There are many ways you can support WooWeekly and help us spread the word. Thank you in advance!
Share it: https://wcwkly.com/newsletter-archive/
Invite friends: https://wcwkly.com
Leave a review: https://www.businessbloomer.com/shop/newsletters/wooweekly-free/
Become a sponsor for as little as $97: https://wcwkly.com/sponsors/