Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 17,444 subscribers) so that you can learn something new.
Well, they say “better late than never“… It’s Thursday and in the last 2 days I’ve been hit by a bad stomach flu, and only now I’m getting back to life. So, that’s why I’m only sending WooWeekly now – hope you can enjoy it as usual, and next week I’ll try to get back to the Wednesday schedule.
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
WooCommerce: Search Products By SKU
Today, we’ll study how to alter the product search query, as well as the wc_get_product_id_by_sku() function, which is super helpful to determine the product ID for a given SKU number. ~ Rodolfo Melogli, Business Bloomer
WooCommerce: Edit “Ship to a Different Address?” @ Checkout
The “Ship to a Different Address?” string may be confusing or may need further clarification, as not all customers are created equal. What about “I’d like to define a different shipping address” or “Ship to a different address than the Billing one“? ~ Rodolfo Melogli, Business Bloomer
2. ICYMI: WooCommerce Articles
WooCommerce: Hide Products Based On Custom Field / ACF Value
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
WooCommerce: Display All Single Variations (Shortcode)
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
WooCommerce: Allow Customers To Define the Product Price
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
WooCommerce: Get Order Fees Total
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
WooCommerce: Show Product Image @ Emails
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
WooCommerce: Item Custom Field @ Edit Order Page
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
WooCommerce: Get Product Parent Categories
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
WooCommerce: Disable A Plugin For Customers / Shop Managers
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/