• Resolved Krips

    (@krips)


    Hello
    I am not able to publish my product as plugin has error
    please fix the code in file.

    I was having console error
    An invalid form control with name=’tiered_pricing_fixed_quantities_variable[]’ is not focusable. ?

    There was issue with value field default it was taking 1 though min value is 2
    and also name attribute value is having unwanted space

    <input type=”number”min=”2″value=”<?php echo esc_attr( $amount ); ?>”
    placeholder=”<?php esc_attr_e( ‘Quantity’, ‘tier-pricing-table’ ); ?>”
    name=” <?php echo esc_attr( $quantityFieldName ); ?>”>

    /wp-content/plugins/tier-pricing-table/views/admin/components/tiered-pricing-rules-form.php
    LIne 143

    Screens recording

    https://www.awesomescreenshot.com/video/31089289?key=e42ce79392f222442131963227c38736

    • This topic was modified 2 months, 3 weeks ago by Krips.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Developer

    (@bycrik)

    Hello @krips,

    Unfortunately, I cannot check the video, because it reached the limit for sharing.

    You couldn’t save invalid values without “hacks,” so you most likely imported tiered pricing with the wrong values or updated them directly in the database.

    The minimum value for tiered pricing quantity is 2, so it does not allow you to submit the form when the value is wrong.

    To fix this:

    1. Change product type to “variable”
    2. Go to the “tiered pricing” tab
    3. Remove invalid rules
    4. Switch back to the original product type
    5. Save product

    I hope this helps.

    Plugin Author WP Developer

    (@bycrik)

    Hello,

    We haven’t heard from you in a while, so I’m going to mark this as resolved.
    Feel free to start a new thread if you have any other questions.

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