• Resolved panon

    (@panon)


    Is there any way to get the value thats is set up in the product page for the field “Minimum quantity”.

    I want to use in the product page with a message like “This products allows to get _minimum-quantity-field-value products”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Hi there,

    You can use our wcmmq_get_product_limits() function to retrieve product limit details.

    Example: Retrieving Product Limits
    $limits = wcmmq_get_product_limits( $product_id );

    The function will return an array containing details such as step, min_qty, max_qty, and rule.

    Example: Accessing Specific Data (e.g., min_qty)

    if ( $limits && isset( $limits['min_qty'] ) ) {
    $min_qty = $limits['min_qty'];
    }


    You can then use the min_qty value to display notices or perform other actions as needed.

    Thanks!
    Regards,
    Kawsar Ahmed.

    Thread Starter panon

    (@panon)

    Awesome, thank you.

    That did exactly what i want to do.

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