By default, the WooCommerce Stripe Payment Gateway captures payments rather than authorizing and this works well for most use-cases. However, imagine you’re a merchant who has issues with chargebacks related to subscription renewal orders and would rather authorize the payments to give the customer a few days. How can this be done? The WP-Http class […]
WooCommerce & Colorado Retail Delivery Fee
If you’re a merchant selling goods to customers in Colorado, SB 21-260 establishes a retail delivery fee that merchants are required to collect and remit to the state of Colorado. If you wish to continue to sell to customers in Colorado, you will need a solution to collect this fee. Until a proper solution exists, […]
Remove “via WooCommerce” From Express Checkout
WooCommerce Payments express checkout modal injects WooCommerce branding into the checkout experience of your shop. If you would like to remove that, this can be achieved via a filter named wcpay_payment_request_total_label_suffix and an example of that can be seen below: Not sure what to do with code snippets? See What Do I Do With These […]
Date Based Person Cost Adjustment
If you’re using WooCommerce Bookings and you are trying to add a cost adjustment to one particular person type based on dates, you will find that this is not possible as the only cost adjustments available via the product configuration options will apply to the bookable block as opposed to the person’s booking cost. If […]
Hide Shipping Methods – Payment Request
It’s possible to conditionally remove shipping methods on the checkout page and there are several examples of how this can be done with code. Some of these examples can be seen here: https://docs.woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/ However, what if we want to hide those shipping methods only if the purchase is done via a WooCommerce Stripe provided payment […]
One Coupon Code – Two Discounts
WooCommerce Subscriptions provides a couple of coupon types that are specific to subscription type products. These are documented here Subscription Coupons – however, it is often desirable to be able to offer a promotional code that would apply a discount to both a sign-up fee and a recurring discount. The use case would be for […]
Conditionally Allow Customer Registration
A recent change in WooCommerce has resulted in some cases where customers may be unable to check out if their cart contains a subscription product. This happens if the “Allow customers to create an account during checkout” option is disabled in combination with WooCommerce Subscriptions requiring an account at checkout. Effectively, customers are locked out […]
WooCommerce Bookings Block Number Discount
If we visit the wayback machine and look at the changelog for WooCommerce Bookings we can see that in November of 2015 a new coupon type was added to discount bookable persons. There is no equivalent coupon to discount by some number of blocks. Fortunately, the WooCommerce Coupon class provides a filter that can be […]
Remove Subscriptions Follow-Ups
WooCommerce Follow-Ups allows store owners to send emails after a renewal order goes into a failed status with the idea being that a subscriber would need to resolve whatever is causing the renewal payment to fail. The same WooCommerce extension provides some settings for these emails to remove them (not send) if the order status […]
Subscription Renewal Email to Product Vendors
Using WooCommerce Product Vendors in conjunction with WooCommerce Subscriptions and want to send the vendor an email when a subscription renews? This is requested on the WooCommerce ideas board here but if you would like to implement some code to do this, here is an example of how this could be done using the Subscriptions provided filter named woocommerce_email_recipient_customer_processing_renewal_order […]
- 1
- 2
- 3
- …
- 5
- Next Page »