For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cart page

Lock the storefront cart page itself, separate from conditions about what's inside the cart.

The Cart page content type locks your storefront's cart page as a whole — for example, requiring a visitor to sign in or subscribe before they can view their cart and proceed toward checkout.

Don't confuse this with Cart conditions. Cart page is what you're locking (the cart page itself, on any other lock). Cart conditions are an access rule you can add to a lock on other content (like a product) that checks whether specific items, or a quantity or subtotal, are already in the visitor's cart.

Create the lock

  1. Open Locks in the app's navigation and click Create lock.

  2. Give the lock a descriptive name, for example "Cart — sign-in required."

  3. On the Lock setup tab, open Content to lock and choose Cart page.

The content picker with Cart page selected as the content type.
Choose Cart page to lock the entire storefront cart page.

Cart page has no extra targeting options — selecting it locks the whole /cart page, so there's nothing else to configure on this tab besides the lock's name.

Add an access rule

  1. Switch to the Unlock rules tab and add at least one rule. See Access rules overview for the full catalogue.

  2. Add every required condition to the access key. All conditions must be satisfied. See Combining rules.

A Cart page lock doesn't have its own "Blocked visitor behavior" panel — there's no price or Add to cart to hide on the cart page itself. Use the rule's messages and, if needed, a redirect to control what a blocked visitor sees. See Redirect after access.

Save

  1. Click Save. The lock takes effect on your storefront as soon as the app embed is enabled.

Last updated

Was this helpful?