Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 17,419 subscribers) so that you can learn something new.
After a few days of flu, thankfully we’re all back in business. I haven’t slept much in the last 3 days so expect lots of typos and mistakes in this email (also including the 5 hours delay as I usually send it out earlier)! Hope you’re feeling better than the three of us…
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
We’ve already seen how to hide products based on IP addresses, hide products belonging to a specific category and even hide all products from the Shop page. Today I want to publish another version of those, but this time we’ll use a custom field / ACF in our conditional logic, so that we can toggle the product visibility based on its value. ~ Rodolfo Melogli, Business Bloomer
As you know, each variable product is made of one or more “single variations”, and these are only visible in the single product page. Now, what if you want to display a grid of all “single variations” in a custom page / post? Well, a shortcode can be coded so that you can achieve just that. ~ Rodolfo Melogli, Business Bloomer
2. ICYMI: WooCommerce Articles
This is a great customization for those WooCommerce store owners who are willing to accept donations, custom amounts, or need anyway that the customer enters a custom price on the product page for paying an invoice or a bill. ~ Rodolfo Melogli, Business Bloomer
Well, there is actually one line of PHP you can use to calculate the order total fees (despite I didn’t think so while I was writing this post). You will still find the original way to calculate order total fees (by looping through all order fees and adding up totals), as well as the one liner that can help you save time. ~ Rodolfo Melogli, Business Bloomer
With this little trick, you can revert this default behavior and indeed show images beside their product name inside the email order item table. ~ Rodolfo Melogli, Business Bloomer
When, as an administrator, you edit an order and are in the Order Items table, you have the chance to edit the item quantity, subtotal and discounted price. What if you also want to have the freedom to display and edit another custom field, so that it is saved inside the order? ~ Rodolfo Melogli, Business Bloomer
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
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/