Forum Replies Created

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

    (@kawsarahmedr)

    Hi there,

    You can use the wcmmq_get_product_limits() function to retrieve product limit details. This function provides an array containing various values, such as the step, min_qty, max_qty, min_total, max_total and rule.

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

    Accessing Specific Data (e.g., step):

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

    Once you have the step value, you can use it to display relevant notices or take other actions as needed.

    Code to Display Step Value After the Add to Cart Form:

    You can add the following code to your theme’s functions.php file or use a code insertion plugin like “Insert Codes

    /**
    * Display the quantity step message after the add to cart form.
    */
    function uniqueprefix_display_quantity_step_message() {
    global $product;

    if ( ! $product ) {
    return;
    }

    // Retrieve product limits, including the step value.
    $limits = function_exists( 'wcmmq_get_product_limits' ) ? wcmmq_get_product_limits( $product->get_id() ) : [];

    if ( isset( $limits['step'] ) && ! empty( $limits['step'] ) ) {
    $step_value = intval( $limits['step'] );

    // Display the message after the add to cart form.
    echo '<p class="quantity-step-message">';
    printf( /* translators: %d: step value */ esc_html__( 'Please order in multiples of %d.', 'your-text-domain' ), absint( $step_value ) );
    echo '</p>';
    }
    }
    add_action( 'woocommerce_after_add_to_cart_form', 'uniqueprefix_display_quantity_step_message' );

    Warning!

    The above PHP code may break your site. Please verify before using it.

    This code will display a message after the product’s quantity field and add-to-cart button, informing customers about the required step value for quantity.

    Let me know if you need further assistance!

    Thanks!
    Regards,
    Kawsar Ahmed

    Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Hi There,

    Thank you for reaching out and bringing this issue to our attention.

    We have identified the cause of the problem and updated the plugin to address it. In the latest version, we have adjusted the minimum required PHP version to 7.4 to ensure compatibility with your environment.

    Please update the plugin to the latest version (2.0.4) from your WordPress dashboard or download it directly from WordPress ORG Plugin Page to apply the fix.

    If you encounter any further issues or need assistance, please don’t hesitate to contact us. We’re here to help!

    Thank you for using our plugin. If you’re satisfied with the update and our support, we’d greatly appreciate it if you could take a moment to leave a positive review. Your feedback helps us improve and supports the ongoing development of our plugins!

    Best regards,
    Kawsar Ahmed

    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.

    Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Thank you for your understanding, and I’m glad to hear that you’ll be investigating further with the Botiga team. We’re always here to help if you need any further assistance with our plugin.

    We aim to provide the best experience for our users, and it’s great to know the issue is being looked into. If everything works out, we’d appreciate hearing how things went after it’s resolved.

    Please don’t hesitate to reach out if you need anything else, and good luck with the theme investigation!

    Best regards,
    Kawsar Ahmed

    Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Hello,

    Thank you for your patience and for updating the settings as we requested. We have investigated the issue.

    After a thorough investigation, we found that the problem is not with the WC Min Max Quantity plugin itself. The conflict arises from the WordPress theme you are using, Botiga. This theme has a custom feature that changes the default WooCommerce quantity field by replacing the step increments with plus-minus icons. As a result, the plugin’s step functionality is overridden, and increments are only applied when using the keyboard’s up-down buttons rather than the theme’s custom icons.

    Since we haven’t specifically made our plugin compatible with the Botiga theme, this conflict wasn’t addressed. Given the large number of themes available in the market, some theme-specific features can sometimes affect plugin behavior.

    As a next step, you could either reach out to the Botiga theme support team or consider using a different theme for testing. We’ll also take note of this for future compatibility improvements.

    Please let us know if you need further assistance or have any questions! And also, you can reach us for plugin-specific support through our website. pluginever.com/support


    Best regards.
    kawsar Ahmed

    Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Hello @blackinkdesign

    Thank you for providing the additional details!

    From what you’ve shared, it seems that both the Min Qty and Qty Step are set to “6,” but the step increment isn’t functioning as expected. This might be due to a conflict between global settings and individual product settings.

    To help pinpoint the issue, I recommend setting up Min/Max rules directly on the individual product level for testing. These product-specific settings will override any global settings, so it should give you a clearer picture of how the rules are being applied. You can find the individual settings in the product’s “Product Data” section.

    Please configure the minimum quantity and step values for an individual product and see if it resolves the issue. Once you test it, let us know if the step increments display correctly.

    Looking forward to your response!

    Best regards.
    Kawsar Ahmed

    Plugin Support Kawsar Ahmed Rubel

    (@kawsarahmedr)

    Hi!

    Thank you for reaching out. The “WC Serial Numbers” plugin is primarily designed for selling and managing serial numbers, but it’s not fully compatible with the mentioned plugin for handling rental products with specific availability constraints.

    Given your needs—where each product with a serial number must be temporarily unavailable during its rental period—I recommend checking out our “WC Key Manager” plugin. It offers advanced functionality that could be better suited for managing and selling keys or licenses, and it might align more closely with your rental requirements. This plugin allows for more granular control over product options and automatically selling keys. This automatic keys option may help you to cover your needs. It can create unlimited keys depending on the customer’s needs.

    I believe “WC Key Manager” could provide a more seamless experience for your rental business. If you have any more questions or need further assistance, feel free to ask!

    Best regards,
    Kawsar Ahmed

Viewing 7 replies - 1 through 7 (of 7 total)