customer_stats
allowing us to see all customers who have placed orders, the number of order placed and the total amount of those orders.customer_stats
collection in the forest/
directory.orders_count
) and the sum of the price of all those orders (in a field total_amount
).id
field when creating a Smart Collection. The value of this field for each record MUST be unique.id
manually.isSearchable: true
added to your collection allows to display the search bar. Note that you will have to implement the search yourself by including it into your own get
logic.CustomerStat
collection in the lib/forest-liana/collections/
directory.orders_count
) and the sum of the price of all those orders (in a field total_amount
).id
field when creating a Smart Collection. The value of this field for each record MUST be unique.id
manually.is_searchable: true
added to your collection allows to display the search bar. Note that you will have to implement the search yourself by including it into your own get
logic in your collection controller.CustomerStat
collection in the app/forest/customer_stat.py
file.orders_count
) and the sum of the price of all those orders (in a field total_amount
).id
field when creating a Smart Collection. The value of this field for each record MUST be unique.id
is_searchable = True
added to your collection allows to display the search bar. Note that you will have to implement the search yourself by including it into your own get
logic in your collection controller.CustomerStat
collection in the app/Models/SmartCollections/CustomerStat.php
file.orders_count
) and the sum of the price of all those orders (in a field total_amount
).id
field when creating a Smart Collection. The value of this field for each record MUST be unique.id
is_searchable = True
added to your collection allows to display the search bar. Note that you will have to implement the search yourself by including it into your own get
logic in your collection controller.routes/customer_stats.js
, we’ve created a new route to implement the API behind the Smart Collection.limit
and offset
variables are used to paginate your collection according to the number of records per page set in your UI.req.query.search
) has been performed and to return all records for which the email
field matches the search.lib/forest_liana/controllers/
, we’ve created a controller file customer_stats.rb
to implement API behind the Smart Collection.limit
and offset
variables are used to paginate your collection according to the number of records per page set in your UI.params[:search]
) has been performed and to return all records for which the email
field matches the search.CustomerStatsController