blinkboi Posted September 18, 2020 Share Posted September 18, 2020 Hello, how can I add a label to the product list which displays the number of products sold. E.g. 40/100 i.e. 40 of 100 sold. Ideally in a label which looks like the "new" or "sale" label. Thanks in advance! Link to comment Share on other sites More sharing options...
musicmaster Posted September 20, 2020 Share Posted September 20, 2020 There are two aspects to this: - you need to add the number sold to the list of variables that is transferred to the template. You probably will need to add a sql query to retrieve the number. - you need to adapt the template (templates when you want to have it both on the product and category page). Just look how your theme handles the new and sale labels and add your own. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now