customer_group - aareano/ifshop-wiki GitHub Wiki

This drop is does not correspond to a Shopify liquid drop.

This drop corresponds to Shopify's API.

customer_group (CustomerGroup) is the same as customer_saved_search (CustomerSavedSearch)



customer_group.name

Returns the name of the group.


customer_group.query

Returns the query of the group

Input

{{ customer_group.query }}

Output

orders_count:>1

customer_group.customers

Returns an array of customers.


customer_group.customers_count

Returns the size of customer_group.customers, or nil, if customer_group.customers is nil.


customer_group.all_customers_tags

Returns an array of all customer tags in the customer group.

Input

{{ customer_group.all_customers_tags }}

Output

first_tag, second_tag

customer_group.shop

Defined for the following events:

  • a customer group is created
  • a customer group is updated
  • a customer group is deleted

Returns the shop drop.