Cart & Checkout
GeoBlock Pro enforces restrictions at every step of the purchase flow, so customers can't get around them with direct add-to-cart links, AJAX buttons or API calls.
| Checkpoint | Hook | Behaviour |
|---|---|---|
| Add to Cart | woocommerce_add_to_cart_validation | Blocks adding a restricted product or variation; shows "Sorry, this product is not available in your country." |
| Cart and checkout pages | woocommerce_check_cart_items | Removes restricted items with a notice: "[Product] has been removed from your cart as it is not available in your country." |
| Order submission | woocommerce_checkout_process | Blocks the order if a restricted item is still in the cart |
| Payment methods | woocommerce_available_payment_gateways | Hides payment methods restricted by payment rules |
In Catalog Only mode with Allow purchase via direct URL turned on, restricted products can go through cart and checkout normally.
⚠️
Hiding a product from the catalog alone doesn't stop someone who knows its URL or ID. The cart and checkout checkpoints close that gap.