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