Database Table & API to get remaining product

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce Database Table & API to get remaining product

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #120811
    Thierry ADIGO
    Participant

    Hello,

    I would like to know in which table are stored the maximum product per user rule/matrice ?

    I would like to get those info via the wordpress API but I can’t find the table. Thanks

    #120872
    Moshtafizur
    Moderator
    Plugin Support

    Hi Thirry,

    Thanks for reaching out.

    I have escalated this with our development team. They will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    #121169
    pablo-pacheco
    Moderator

    Hi,

    Actually we’re only keeping these 2 metas on termmeta and postmeta tables:

    • _alg_wc_mppu_orders_data
    • _alg_wc_mppu_totals_data

    Unfortunately, I’m afraid there is not an easy way of getting such info. We’re using a combination of 2 methods to get the “remaining” data, alg_wc_mppu()->core->get_max_qty_for_product() and alg_wc_mppu()->core->get_user_already_bought_qty().

    • This reply was modified 9 months, 4 weeks ago by pablo-pacheco.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.