Skip to content

For Developers

You can create a custom position for notices that can then be selected in the module settings:

// Add a custom hook at your desired location
add_action( 'woocommerce_after_checkout_billing_form', function() {
do_action( 'my_custom_checkout_position' );
} );
// Then in the module settings, enter: my_custom_checkout_position

This allows you to place module notices at any custom location in your theme.

The module supports these standard WooCommerce positions for notices:

PositionDescription
woocommerce_review_order_before_submitBefore submit button
woocommerce_review_order_after_submitAfter submit button
woocommerce_before_checkout_formBefore checkout form
woocommerce_before_checkout_billing_formBefore billing form
woocommerce_after_checkout_billing_formAfter billing form
woocommerce_before_checkout_shipping_formBefore shipping form
woocommerce_after_checkout_shipping_formAfter shipping form
woocommerce_checkout_before_order_reviewBefore order review
woocommerce_review_order_before_paymentBefore payment methods
PositionDescription
woocommerce_before_cartBefore cart
woocommerce_after_cart_contentsAfter cart contents
woocommerce_before_cart_totalsBefore cart totals
woocommerce_cart_totals_before_shippingBefore shipping
woocommerce_proceed_to_checkoutBefore proceed to checkout button
woocommerce_after_cartAfter cart

The module applies WooCommerce notice styles. You can customize the appearance using CSS:

ClassDescription
woocommerce-messageSuccess message (green)
woocommerce-infoInfo message (blue)
woocommerce-errorError message (red)

The module applies the the_content filter to notice content, allowing shortcodes and formatting to work within notices.