How Can We Show Vendor Number Of Products In The Vendors List Page


How can we show the total number of the products in each store "vendor" we have in the marketplace inside the vendors list page of Admin back-end?

Use companies:list_extra_th and companies:list_extra_td hooks in the design/backend/templates/views/companies/manage.tpl file. Data can be displayed with the following code:

{"SELECT COUNT(*) FROM ?:products WHERE company_id = ?i"|db_get_field:$company.company_id}