Restriction Message
The Custom Message field is displayed to visitors from restricted countries when the Block Purchase restriction mode is active. It replaces the product price and Add to Cart button on the single product page.
Navigate to WooCommerce → GeoBlock → General to configure the message text.
Message Content
The Custom Message field supports:
- Plain text
- Basic HTML (e.g.,
<strong>,<a>,<br>)
Example:
Sorry, this product is not available in your region. <a href="/contact">Contact us</a> for more information.When the Message Appears
The message is shown only when:
- The global Restriction Mode is set to Block Purchase.
- The current visitor's country matches a restriction rule for the product being viewed.
The message is rendered server-side, so it is not visible to visitors from unrestricted countries. Server-side Add to Cart validation also blocks API-based attempts to add restricted products to the cart.
See Message Position to control where on the page the message is displayed.