For Developers
Custom Hook Position
Section titled “Custom Hook Position”You can create a custom position for notices that can then be selected in the module settings:
// Add a custom hook at your desired locationadd_action( 'woocommerce_after_checkout_billing_form', function() { do_action( 'my_custom_checkout_position' );} );
// Then in the module settings, enter: my_custom_checkout_positionThis allows you to place module notices at any custom location in your theme.
Available Positions Reference
Section titled “Available Positions Reference”The module supports these standard WooCommerce positions for notices:
Checkout Positions
Section titled “Checkout Positions”| Position | Description |
|---|---|
woocommerce_review_order_before_submit | Before submit button |
woocommerce_review_order_after_submit | After submit button |
woocommerce_before_checkout_form | Before checkout form |
woocommerce_before_checkout_billing_form | Before billing form |
woocommerce_after_checkout_billing_form | After billing form |
woocommerce_before_checkout_shipping_form | Before shipping form |
woocommerce_after_checkout_shipping_form | After shipping form |
woocommerce_checkout_before_order_review | Before order review |
woocommerce_review_order_before_payment | Before payment methods |
Cart Positions
Section titled “Cart Positions”| Position | Description |
|---|---|
woocommerce_before_cart | Before cart |
woocommerce_after_cart_contents | After cart contents |
woocommerce_before_cart_totals | Before cart totals |
woocommerce_cart_totals_before_shipping | Before shipping |
woocommerce_proceed_to_checkout | Before proceed to checkout button |
woocommerce_after_cart | After cart |
Notice Styling
Section titled “Notice Styling”The module applies WooCommerce notice styles. You can customize the appearance using CSS:
| Class | Description |
|---|---|
woocommerce-message | Success message (green) |
woocommerce-info | Info message (blue) |
woocommerce-error | Error message (red) |
Notice Content Filter
Section titled “Notice Content Filter”The module applies the the_content filter to notice content, allowing shortcodes and formatting to work within notices.