Cart and checkout pages
Bricks’ WooCommerce templates replace the classic cart and checkout. A page that uses the WooCommerce Cart or Checkout block shows the block instead of your template.
What the pages need#
| Page | Content |
|---|---|
| Cart | [woocommerce_cart] |
| Checkout | [woocommerce_checkout] |
They must also be set as the Cart and Checkout pages in WooCommerce > Settings > Advanced > Page setup.
Switch in one click#
- Go to WooCommerce > Bricks Templates > Templates.
- The WooCommerce pages card lists the Cart page and Checkout page and whether each is ready.
- If a page still has the block, click the button to switch it. The block is replaced with the shortcode and the rest of the page is kept.
The old content stays in the page’s revisions, so you can go back.
Note
The setup checklist and the notice at the top of the settings screen also warn you when a page still uses a block.
Switch by hand#
- Edit the Cart page in the block editor.
- Remove the Cart block and add a Shortcode block with
[woocommerce_cart]. - Do the same on the Checkout page with
[woocommerce_checkout]. - Update both pages and clear your caches.