[Solved] A script to count the total number of products

Seems like what you need is NOT javascript at all. If you are talking about OpenCart (as your title suggests), you need access to the total number of the products in your database (not in the page itself or DOM elements). The ‘professional approach’ will be to extend your model and controller files with the … Read more