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.
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 […]