Documentation
GeoBlock Pro
Cart & Checkout

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.

CheckpointHookBehaviour
Add to Cartwoocommerce_add_to_cart_validationBlocks adding a restricted product or variation; shows "Sorry, this product is not available in your country."
Cart and checkout pageswoocommerce_check_cart_itemsRemoves restricted items with a notice: "[Product] has been removed from your cart as it is not available in your country."
Order submissionwoocommerce_checkout_processBlocks the order if a restricted item is still in the cart
Payment methodswoocommerce_available_payment_gatewaysHides 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.