Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 17,369 subscribers) so that you can learn something new.
I plan to take a few days off after a crazy year. My family is flying to Sicily in 2 days so I hope to enjoy some quality time with them; also, I’ll try not to use the PC until next Wednesday, which is when the last WooWeekly of the year will be sent out. If you’re taking the rest of 2022 off, well, it’s been a pleasure to be in your inbox every single week of the year. If you have tips, feedback or you have room and ideas for helping out, I’m all ears. You can also leave a review here.
Anyhow, back to Woo now – 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. Brand New WooCommerce Tips
For example, it’s easy to “get the current product’s categories“, but how can we get the “parent product categories” only? In today’s snippet we will see how this can be achieved in 7 lines of PHP ~ Rodolfo Melogli, Business Bloomer
There are a million reasons why this could be helpful. So, let’s see how to actually deactivate a plugin (not disable its scripts – but actually deactivate it) with a handy piece of code ~ Rodolfo Melogli, Business Bloomer
THANK YOU, ORCHESTRA SPONSORS!
Save up to 30% on your eCommerce business insurance in 3 minutes. Get a tailored liability insurance policy that will perfectly fit your WooCommerce store and any unique business needs you have. Save time and thousands of dollars on your Liability Insurance with Spott.
Cloudways is a managed WooCommerce hosting provider that provides the performance, uptime, and simplicity needed to give your online store the boost it deserves. With Cloudways, you have the freedom to choose from any of the 5 leading IaaS providers, including, DigitalOcean, AWS, Google Cloud, Vultr, and Linode. So, get started with Cloudways today to step above the ordinary and experience relentless online growth.
Doofinder is the intelligent site search that allows your customers to find relevant results quickly and easily. More than 8,000 online stores of all sizes increase their sales by 20% with its technology. It integrates into your store design, also in mobile format, learns from your customers’ behavior and provides you with trend information and product suggestions for your stock. Install it on your WooCommerce store in less than 5 minutes and try it for 30 days for free.
2. ICYMI: WooCommerce Articles
It’s a one-off operation that could take hours if it had to be done manually, based on the number of existing orders. With this simple snippet, however, you can edit an unlimited number of orders, and let the code replace ordered items. ~ Rodolfo Melogli, Business Bloomer
So, here’s how we add a new “section” (meta box) to the single order edit page in the WordPress dashboard, and how we display some content in it. ~ Rodolfo Melogli, Business Bloomer
This amazing workaround will add a second input number in the product settings, redefine stock quantity and status on the frontend by summing up stock 1 + stock 2, and finally decrease stock 1 until it goes to 0, after which it will decrease stock 2. ~ Rodolfo Melogli, Business Bloomer
In this tutorial, we will add a new “Warehouse Address” section and address fields under the “Store Address” settings, and also see how we can easily retrieve this custom address so that you can display it anywhere. Enjoy! ~ Rodolfo Melogli, Business Bloomer
Let’s build a simple shortcode to display the stock quantity in other sections of the website, that can automatically update the output, so that you never need to worry about changing that piece of content ever again. ~ Rodolfo Melogli, Business Bloomer
Here’s a PHP one-liner that can immediately disable this default behavior, so that you can avoid the automatic restocking (and maybe doing it manually based on your business rules). ~ Rodolfo Melogli, Business Bloomer
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/