Home » Categories » Managed WordPress » WordPress E-Commerce

Create a Categories in Cart Cart Notice

The Categories in Cart notice, when using the "Show" Categories option, allows you to select one or more categories which, when a product from the category is in the customer’s cart, will trigger the notice.

Note: the categories must match exactly, child categories are not used to activate this notice.

The “Hide” Categories option allows you to select one or more categories which, when a product from the category is in the customer’s cart, will hide the notice. This lets you conditionally remove the notice if an item from a cross-sell category has been added.

Required: WooCommerce Cart Notices is a premium WooCommerce extension included with WordPress Ecommerce Hosting or as a standalone purchase.

A "Categories in Cart" Cart Notice can be created by:

  1. Go to WooCommerce > Cart Notices.
  2. Select the New Notice tab.
  3. Select Categories in Cart from the Type menu.
  4. Enter a name for the notice in the Name field.
  5. Create your custom Notice Message. A basic notice is provided to get you started, as well as the variables related to the notice type.
  6. Enter Call to Action text (optional) - This text will be rendered next to the cart notice.
  7. Enter a Call to Action URL (optional) - This specifies where the user will go upon clicking the Call to Action button.
  8. To show the notice if any selected category is in the cart, add all the categories you wish to show in the"Show" Categories field.
  9. To hide the notice if any selected category is in the cart, add all the categories you wish to hide in the "Hide" Categories field.
  10. Select the Create Cart Notice button.
1 (4)
Article Rating (4 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Set the default shipping method in WooCommerce
Added on Wed, May 12, 2021
Import Pickup Locations
Added on Wed, May 12, 2021
Create attributes for a variable product
Added on Mon, May 10, 2021
What are WooCommerce user roles?
Added on Wed, May 12, 2021
Manually add a vendor to my multi-vendor marketplace site
Added on Wed, May 12, 2021