WooWeekly #302: Dynamic Product Subtotal

It’s a hot Wednesday here in Sicily, and that seems to help out with the coronavirus pandemic. It also seems this summer will go ahead as planned (well, almost), and from mid June Italy will welcome tourists. We’ll see.

Anyway, welcome back to our WooCommerce Weekly appointment – here comes a series of WooCommerce tutorials put together by yours truly so that you can learn something new.

New WooCommerce Tips

WooCommerce: Calculate Subtotal On Quantity Increment @ Single Product

From a UX point of view, ecommerce customers may enjoy a little improvement on the WooCommerce single product page. As soon as they increase the add to cart quantity, it’d be nice if product price could be recalculated or maybe if a “TOTAL” line could appear so that users always know how much they are about to add to cart. Enjoy: https://businessbloomer.com/woocommerce-calculate-subtotal-on-quantity-increment-single-product/

Revised WooCommerce Tips

WooCommerce: Checkbox to Hide/Show Custom Checkout Field

This snippet could come really handy for several reasons. When you’ll need to do advanced customization of the checkout and its fields, hopefully you’ll thank me then. In today’s snippet, we will add a new checkbox and another new “hidden” field – then, if the checkbox is ticked, the field will show, otherwise it will disappear again: https://businessbloomer.com/woocommerce-add-checkbox-hideshow-checkout-field/

WooCommerce: Translate “You may also like…” Text

Apparently, since WooCommerce 4.1, there is now an easy way to edit the “You may also like…” WooCommerce string thanks to a brand new “PHP filter”. As usual, simply copy/paste the snippet below in your child theme’s functions.php and it will do what it says on the tin. Enjoy: https://businessbloomer.com/woocommerce-change-may-also-like-text/

WooCommerce: Add Content @ My Account Register / Login Page

A WooCommerce Customization client wanted to add some text above the “Login” and “Register” boxes on the My Account page. Understandably, users may need a bit of an explanation before they take action. Here’s how you do it: https://businessbloomer.com/woocommerce-show-extra-content-my-account-page/

WooCommerce: Apply Coupon Programmatically if Product @ Cart

Users can manually enter a coupon code, refresh the Cart and see their discount apply… or you can do that automatically when a user adds a product to the WooCommerce Cart. All you’ve got to do is creating a coupon, and then a PHP function will do the whole work: https://businessbloomer.com/woocommerce-apply-coupon-programmatically-product-cart/

WooCommerce: How to Enable Catalog Mode?

One of the most common WooCommerce questions is: can I use WooCommerce to build a catalog of products (without add to cart, price… basically a product gallery)? Another question might be: can I disable the WooCommerce add to cart / cart / checkout functionality until the time I am able to sell my products? Good news is there are snippets and plugins that can make your life easier, your admin time more efficient and your product management simpler. Today we’re taking a look at the best options: https://businessbloomer.com/woocommerce-how-to-enable-catalog-mode/

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

Proudly supported by

Join them?