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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #100512
    thevenard
    Guest

    Hi,
    i’d like to use your plugin to limit users to but for exemple a maximum of 1000 euros for the whole cumulated products. Your pluging do that well.
    But which shortcode to use to display the cumulated amount purchased during the time frame without showing a detail per product?

    for exemple if customer has a limit of 1000€, and bought
    – product 1 : 200€
    – product 2 : 250€

    I’d like to display :
    remaining : 550€
    bought : 450€
    limit : 1000€

    thanks for your help

    #100513
    thevenard
    Guest

    any answer? thanks a lot

    #100514
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.