How can I use the “start_date” and “end_date” in the formula?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce How can I use the “start_date” and “end_date” in the formula?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #100501
    Douglas Cox

    Hi Tom, what this proper format for timeframes in the formulas?

    I see this…* You can set shortcode effective date(s) with start_date, end_date (and not_date_limit) attributes. *

    So… would it be something like this for a product limit of 5 for just the 1st quarter of 2021?

    [alg_wc_mppu limit="5" term_id="321" start_date="01_01_2021" end_date="03_31_2021"]


    blankTom Anbinder
    Plugin Support

    Hi Douglas,

    We are using PHP strtotime() function to parse date format, so it should basically parse about any English textual datetime description. I would recommend using the MySQL DATETIME format (YYYY-MM-DD hh:mm:ss), i.e.:

    [alg_wc_mppu limit="5" term_id="321" start_date="2021-01-01" end_date="2021-03-01"]

    P.S. Just to be sure – our start_date, end_date and not_date_limit shortcode attributes will set the effective date(s) for the shortcode, but not the “Date range” to check product sales in (i.e. this will still be taken from what you’ve set in “Date range” option in “WooCommerce > Settings > Maximum Products per User > General”).

    Hope that helps. Please let me know if you have any questions.

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