Download counter and decreaser Woocommerce WordPress

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

I am working on a custom WordPress theme, and i am little stuck in one situation, the client wants that when the user buy subscription on his WordPress site, then the user can download documents, (the users are downloading documents its done). Now the problem is that, the download should be limited as per plan choice, for example:- if a user buys $100 subscription pack then..user can click on download button.. for only 50 times. and if he buys $200 subscription pack then..user can click on download button.. for only 100 times. (*note:- the download button is available on every post so , every time when user click on any post download Resume button, the count should be -1. until he reaches to 0 and disabled download button )
I don’t have any clue how to do this, is there any specific key idea behind this or any WordPress plugin to do this thing.

Here below is the image to get an idea of the concept ;
view Image here

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com