Reliably check for the checkout page earlier than is_checkout()
The is_checkout() method is the standard to build conditionally logic around on whether the user is on the checkout page or not. But what if it is too early for is_checkout() to be available? Paying attention to the WordPress load lifecycle, is_checkout is available “too late” in the cycle. It may work when called in […]
How to add text or an icon to the Shipping Method label in WooCommerce
For your available shipping methods, you may want to add an image, text, or any other type of indicator at the farther right corner of the Shipping Method name. You can do so with the woocommerce_cart_shipping_method_full_label filter. This filters the shipping method full label and accepts two parameters, $label, the label of the shipping method, […]
Prevent the CheckoutWC’s Side Cart from opening when editing a page with Elementor.
There is a problem with Elementor and CheckoutWC, and that is, when you try to edit any page in the Elementor editor, and you save a change, the CheckoutWC’s Side Cart will auto-open for some strange reason. This problem is somewhat complex to solve as essentially, the Elementor editor lives in its own environment. This […]
Disable the Side Cart conditionally in CheckoutWC on specific pages.
Following the filter’s name, you need to set it to true, and the Side Cart won’t pop up.
To dynamically change the value while detecting the page, you can use a preg_match function to check if certain slug is part of the URL.
Display the discounted amount per product on the Order Details in WooCommerce.
After a customer completes a purchase in your WooCommerce store, they get redirected to the Order Received page. This Order Received page contains information about the purchase, like the Order Number, the customer’s full name, email address, and payment method used, and there is also a table featuring the list of purchased items called Order […]
Add a custom button to CheckoutWC’s side cart
CheckoutWC side cart by default allows you to display a ‘Proceed to Checkout’ button and a Continue Shopping button. Sweet. But what if you want to add a custom button that does something different, or more interesting that just redirecting the user to the checkout page or back to the shop? You can add a […]
How to add a custom icon to each shipping method in WooCommerce
Shipping methods define how the purchase will be delivered to your customer. Commonly, the shipping service is taken care of by a company. Some of the shipping companies are larger than others. You can identify the Shipping Method with a label in the shipping method settings in WooCommerce. But if you feel the shipping label […]
Change the Billing fields position in CheckoutWC
In the WooCommerce standard checkout form, you are first asked for personal details like First Name, Last Name, Email Address, etc. Then, immediately you are asked to fill up the Billing Address. That’s nice in some cases, but it can be improved. CheckoutWC, by design, changes this behavior by switching priorities between the Billing Address […]