Skip to content

Knowledgebase

Setting the Cart and Checkout pages correctly

wordpress

Assign the correct Cart and Checkout pages in WooCommerce so its navigation and order flow reach functioning store pages. A page title alone is not enough: each assigned page must contain the appropriate WooCommerce content and remain publicly accessible.

01 Inspect the existing pages

Open Pages in WordPress and identify the intended Cart, Checkout and My Account pages. Check for duplicates created by earlier imports or setup attempts. Record the current assignments before changing anything, especially on a live store with custom checkout links.

02 Configure and verify assignments

  1. Edit the Cart page and confirm it contains the Cart block or the supported classic cart implementation.
  2. Edit the Checkout page and confirm it contains the Checkout block or the supported classic checkout implementation.
  3. Open WooCommerce > Settings > Advanced and assign the intended published pages.
  4. Review the My Account and terms page assignments where applicable.
  5. Save, then follow the store's own cart-to-checkout links from a logged-out session.
  6. Check that the assigned pages are excluded from inappropriate full-page caching.

03 Which shortcodes does a classic Cart and Checkout use?

If the store deliberately uses the supported classic flow, edit each assigned page and place its matching shortcode in a WordPress Shortcode block. Use these on separate pages:

Assigned page Shortcode
Cart [woocommerce_cart]
Checkout [woocommerce_checkout]

Use one intended implementation on each page. Do not add the classic shortcode below an existing Cart or Checkout block as a general repair. Save the pages, verify their assignments under WooCommerce Settings, and test with a product in the cart. If the store uses the modern blocks successfully, keep those blocks unless a reviewed compatibility requirement calls for a change.

Can Cart and Checkout be the same page?

Use separate pages for the normal WooCommerce workflow. Combining roles or placing multiple checkout implementations on one page can create confusing routing and state. A specialised one-page-checkout extension needs its own documented setup and compatibility checks.

What if the original pages were deleted?

WooCommerce provides system tools that can recreate missing default pages, but review the existing content and assignments first. Recreating pages repeatedly can produce duplicates and does not necessarily restore custom design or URLs. After recovery, update navigation and redirects for any changed public addresses.

Why does checkout redirect to an empty cart?

Check whether the cart actually retains the product, whether cookies are accepted and whether caching or redirects discard the session. An incorrect page assignment is only one possible cause. Test a simple product with a clean browser session before changing several settings at once.

04 Complete a real workflow test

Add an item, change quantity, proceed to checkout and submit a sandbox order on staging. Verify the order-received page and account links. Check mobile navigation and translated page variants if used. Preserve the final page IDs and URLs in the store's operations record so future design work does not accidentally replace a functional checkout with an ordinary content page.

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support