WooWeekly #441: Custom Tab, Product URL, Missing Add to Cart

Hello there,

Welcome back to WooWeekly, your weekly appointment with WooCommerce tutorials, tips and updates handpicked for you (and the other 17,512 subscribers) so that you can learn something new.

Business Bloomer’s WooCommerce Mini-Plugins have now reached the 9 products mark this week with the latest 4 releases (redirect to custom thank you page, hide payments by country, display stock on shop, change quantities on checkout). I’m moving as fast as I can to complete my objective of selling 400 mini WooCommerce plugins (2.25% done as of today!). I’ll keep you posted so that you can take part in this crazy personal challenge.

Anyhow, back to useful WooCommerce stuff now – enjoy!

Rodolfo Melogli


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 & Tutorials

WooCommerce: Add New Tab @ Single Product Page

I want to concentrate on the actual functionality of adding a custom tab, giving a name and a heading to it, showing it conditionally (e.g. only for a specific product category), and making sure the “scroll to tab” works when the URL contains its anchor tag. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Get Draft Product URL

You may need the product URL for a scheduled blog post, a future newsletter, an email; in whatever case, this is a cool way to “get” the product URL and print it in the “Publish” meta box of the single product edit page. Enjoy! ~ Rodolfo Melogli, Business Bloomer

How To Fix a Missing WooCommerce Add to Cart Button

So what do you do when your add to cart button is missing from a WooCommerce store? We’ll cover that in this tutorial. Read on to discover why the add to cart button matters, what may cause it to disappear, and how to troubleshoot the issue Maddy Osman, Nexcess


2. ICYMI: WooCommerce Articles

WooCommerce: Move Sale Badge Beside Price @ Single Product Page

The single product page template is laid out so that the SALE badge comes first, on its own line, then comes the product title, the product price on its own line, the short description, etc. As you can see, there is lots of white space on the right hand side, so let’s move the SALE badge right beside the price! ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Custom Logout Redirect @ My Account

When you use separate Login and Registration pages, or whenever you have custom landing pages you wish your customers to see instead of the default My Account page, we can set a custom URL by code and safely redirect the just-logged-out customer there. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Product Description in a Shortcode!

It may be helpful to show the long product description of a given product in a custom WordPress page or post, so that you can use it as a teaser or anyway as a way to save some time instead of rewriting the whole thing. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Disable Orders Table Row Hyperlink @ Admin

What’s annoying sometimes is that the whole row is a clickable link, so if you need to copy and paste some information you will end up actually clicking on it, and being redirected to the single order page. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Change Address Format For a Specific Country

Now, what if you wanted to move the “company” before the customer name, or maybe have “address 1” and “address 2” on the same line, or move “postcode” to the last line? Well, thankfully there is a neat WooCommerce filter called “woocommerce_localisation_address_formats” that allows us to do just that – reformat any address for any country we wish. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Change “Buy Product” Label for External Products

So, here’s a super quick fix to override the “Buy Product” external add to cart button label to whatever you wish, without ever touching the manual settings. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Refresh Checkout Upon Any Input Field Change

In case you add custom checkout fields that may cause a difference in pricing, or you want to keep the checkout UX consistent, or you have some other kinds of logic, it may be useful to refresh the order review section after a change on any checkout field. ~ Rodolfo Melogli, Business Bloomer

WooCommerce: Add Content To Additional Information Tab @ Single Product Page

There are hooks, thankfully, that can help us display additional content in there, either above or below the attributes table. ~ Rodolfo Melogli, Business Bloomer


THANK YOU, BALCONY SPONSORS!

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 ithttps://wcwkly.com/newsletter-archive/

Invite friendshttps://wcwkly.com

Leave a reviewhttps://www.businessbloomer.com/shop/newsletters/wooweekly-free/

Become a sponsor for as little as $97https://wcwkly.com/sponsors/


Author

  • Rodolfo Melogli

    Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.

    View all posts

Leave a Comment

Proudly supported by

Join them?