Cart & Checkout
GeoBlock Pro enforces restrictions at four checkpoints to prevent bypass via direct cart manipulation.
| Checkpoint | Hook | What It Checks |
|---|---|---|
| Add to Cart | woocommerce_add_to_cart_validation | Blocks adding a restricted product to the cart |
| Cart Display | woocommerce_cart_item_visible | Hides restricted items in the cart view |
| Checkout Process | woocommerce_checkout_process | Aborts checkout if a restricted item is in the cart |
| Order Processing | woocommerce_check_cart_items | Final validation before order is created |
⚠️
Even if you have a bulk rule excluding a product from a country's catalog, a customer who manually adds the product ID to their cart URL could bypass catalog hiding. The cart/checkout checkpoints are essential to prevent this.