Reply To: Which shortcode should I use to display the total amount purchased?

Tom Anbinder
Plugin Support


Sorry for the late reply.

I’m not sure if I understood you correctly: by “… for the whole cumulated products…” – you mean you are using our “Per product category” option (and “product 1” and “product 2” both belong to that category)? If that’s the case, you can get category info with our [alg_wc_mppu_term_limit] shortcode, e.g.:

[alg_wc_mppu_term_limit taxonomy="product_cat" term_slug="t-shirts" template="Remaining: %remaining%"]
[alg_wc_mppu_term_limit taxonomy="product_cat" term_slug="t-shirts" template="Bought: %bought%"]
[alg_wc_mppu_term_limit taxonomy="product_cat" term_slug="t-shirts" template="Limit: %limit%"]

Also, if you are going to display it on a single product page, you can use our [alg_wc_mppu_current_product_limit] shortcode as well, e.g.:

[alg_wc_mppu_current_product_limit template="Remaining: %remaining%"]
[alg_wc_mppu_current_product_limit template="Bought: %bought%"]
[alg_wc_mppu_current_product_limit template="Limit: %limit%"]

Please let me know if I misunderstood the question. If you wish, you can contact me directly via [email protected]. Also, if you wish, you can share access to your site, so I could log in and help you with setting it up.