Hack: Have a Checkbox on the Checkout Page Which Updates the Order Totals

Adding a checkbox the the checkout page is easy. However, making it alter the order totals via AJAX is whole different game. In this post I will show you a little trick which will simplify this rather difficult task.

Continue reading Hack: Have a Checkbox on the Checkout Page Which Updates the Order Totals

JS: WooCommerce Variable Product Selection Event

Following my recent post regarding a JS function that Iv’e created in order to get variants prices based on 2d attributes values, Iv’e found a JS function which uses a WooCommerce JS event called show_variation.

Continue reading JS: WooCommerce Variable Product Selection Event

Function: Get Variants Prices Based on 2d Attributes Values

In the past weeks I’ve had the opportunity to work on several projects including modifying the design of a WooCommerce variable product.

While I could have probably completed all projects using WordPress hooks & actions, since some of them also needed some JS and CSS functionality, Iv’e decided to seek a different approach.

Continue reading Function: Get Variants Prices Based on 2d Attributes Values

How to build better user experience with “positive thinking” approach

“Positive thinking” approach is a method that assumes that the steps of our product flow are going to be fine 99% of the time so we should update our UI as if we got OK response from the server even before we sent our request. In the 1% of errors that may occur, we will quietly notify the user that something has gone wrong or an exception has occurred.

Source: How to build better user experience with “positive thinking” approach

Hack: Placing the Google Tag Manager in WordPress After the body Tag

In this post, I will show how to insert the Google Tag Manager in WordPress immediately after the opening <body> tag. The solution isn’t based on a child theme or JavaScript.

Continue reading Hack: Placing the Google Tag Manager in WordPress After the body Tag

Tutorial: How to Link Your Product Image to an Affiliate URL

In this post, we will continue our previous post on How to Correctly Modify Your WooCommerce Website and demonstrate how to link your product image to an affiliate URL using the WordPress Code Snippets plugin, WordPress child theme, and WooCommerce templates methods.

Continue reading Tutorial: How to Link Your Product Image to an Affiliate URL

Tutorial: How to Correctly Modify Your WooCommerce Website

In this post, I will go over the pros and cons of using the WordPress Code Snippets plugin, WordPress child theme, and WooCommerce templates for modifying your WooCommerce website functionality.

Continue reading Tutorial: How to Correctly Modify Your WooCommerce Website