src6/module.json
{
"name": "Shop",
"version": "0.1.0",
"title": "Simple online shop and service",
"model": [
"Shop_Address",
"Shop_Agency",
"Shop_Contact",
"Shop_Delivery",
"Shop_Order",
"Shop_OrderItem",
"Shop_OrderHistory",
"Shop_OrderAttachment",
"Shop_Product",
"Shop_Service",
"Shop_TaxClass",
"Shop_Zone",
"Shop_ProductMetafield",
"Shop_ServiceMetafield",
"Shop_OrderMetafield",
"Shop_OrderItemMetafield",
"Shop_Category",
"Shop_CategoryMetafield",
"Shop_Tag"
],
"init": {
"User_Role": [
{
"name": "zone ownership",
"application": "shop",
"code_name": "zoneOwner",
"description": "Permission given to zone owners."
},
{
"name": "Agency ownership",
"application": "shop",
"code_name": "agencyOwner",
"description": "Permission given to agency owner."
},
{
"name": "Shop staff",
"application": "shop",
"code_name": "staff",
"description": "Permission given to staff of the shop."
}
],
"Monitor_Metric": [
{
"name": "shop.order.count",
"title": "Order count",
"description": "Number of orders.",
"function": "Shop_Monitor_Order::count",
"cacheable": false
},
{
"name": "shop.order.amount",
"title": "Total ammount",
"description": "Total amount of orders.",
"function": "Shop_Monitor_Order::amount",
"cacheable": false
},
{
"name": "shop.order.item.count",
"title": "Order items count",
"description": "Total number of order items.",
"function": "Shop_Monitor_OrderItem::count",
"cacheable": false
},
{
"name": "shop.service.count",
"title": "Service count",
"description": "Total number of services.",
"function": "Shop_Monitor_OrderItem::serviceCount",
"cacheable": false
},
{
"name": "shop.product.count",
"title": "Product count",
"description": "Total number of products.",
"function": "Shop_Monitor_OrderItem::productCount",
"cacheable": false
}
]
}
}