WooCommerce Conditions

BricksExtras adds optional additional element conditions for Woocommerce users, based around products, users and cart status.

(Note that these options will only appear inside Bricks with WooCommerce plugin activated).

Table of Contents

Looking for Woocommerce Subscriptions?

Cart count

Render element depending on whether the total number of items in the cart is currently above/below/equal specified value. (Note – doesn’t accept 0 as a value)

Operators: ==, !=, >=, <=, >, >=

Cart empty

Render element depending on whether the cart is currently empty

Operators: ==

Cart total

Render element depending on whether the total cost of the products in the cart is currently above/below/equal specified value. (Note – doesn’t accept 0 as a value)

Operators: ==, !=, >=, <=, >, >=

Cart weight

Render element depending on whether the total weight of the products in the cart is currently above/below/equal specified value.

Operators: ==, !=, >=, <=, >, >=

Current product in cart

Render element depending on whether the current product (either the product being viewed in a single view or the product inside of a query loop) is in the cart.

Operators: ==

Product has category

Render element depending on whether the current product (on single product pages or in the query loop) has the selected product category assigned to it.

woocommerce product has category bricks condition

Operators: ==, =!

Product has tag

Render element depending on whether the current product (on single product pages or in the query loop) has the selected product tag assigned to it.

woocommerce product has tag bricks condition

Operators: ==, =!

Product in cart

Render element depending on whether a specific product is currently in the user’s cart.

Operators: ==

Product in stock

Render element depending on whether the current product is in stock.

Operators: ==

Product is downloadable

Render element depending on whether the current product is a downloadable product.

Operators: ==

Product is virtual

Render element depending on whether the current product is a virtual product.

Operators: ==

Product on backorder

Render element depending on whether the current product is on backorder.

CleanShot 2023 08 30 at

Operator: ==

Product rating

Render element depending on whether the average rating of the current product is above/below/equal specified value.

Operators: ==, !=, >=, <=, >, >=

Product type

Render element depending on whether the current product is either simple, variable, grouped or external/affiliate product.

Operators: ==

Product Weight

Render element depending on whether the weight of the current product is above/below/equal specified value.

Operators: ==, !=, >=, <=, >, >=

User has pending order

Render element depending on whether the current user has a pending order.

Operators: ==

User purchased current product

Render element depending on whether the current user already purchased the current product.

Operators: ==

User purchased product

Render element depending on whether the current user already purchased a specific product. (choose the product from the dropdown)

Operators: ==