Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Are you talking about on quantity inputs?

    Thread Starter wordpressmz

    (@wordpressmz)

    Hi #Mike Jolley thank you for reply, yes the quantity input. it is current incrementing +1 or -1 , I want it to do this at +10 and -10.

    I was unable to find any solution on the internet. if you can tell me it would be a great help.

    I know it is just a simple code editing just know where to add.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    “with minimum and maximum product limit”

    Are you using the min max quantities plugin? Because that also supports step (grouped of setting).

    Thread Starter wordpressmz

    (@wordpressmz)

    Hi I have used all these two plugins and I am using min max quantities plugin for grouping but the option of group is not working. I think editing the code is much more simple but if you can show me how to use min max quantities plugin for stepping I can use it also. May be I am using it wrong.

    Hoping to hear formm you soon.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Which plugins have your tried?

    Are you using this extension: https://www.woothemes.com/products/minmax-quantities/ ? If so, you will just need to set the “group of” option to 10: https://cld.wthms.co/W8Ru/1kvC4sJd. I just tested this and it is working correctly for me.

    Also, you should submit a ticket for WooThemes support here if you are using that extension: https://support.woothemes.com/hc/en-us

    Thread Starter wordpressmz

    (@wordpressmz)

    Hi #Caleb Burks, I know this option but the screen shot you are shared shows for the simple product. I am using this plugin with variable setting. I don’t know why this is not working.

    That’s why I find editing the code much simple just have to add the proper increment.

    If you help in that matter that would be great.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    “group of” works at variation level too.

    Thread Starter wordpressmz

    (@wordpressmz)

    Dear #Mike Jolley no offense but your answer was not clear. But I have entered the group of values to 10 in every variation and any other place with group of option but nothing happened. incrementation is still 1.

    I think it would be better to edit the woocommerce file with this option.

    If you could guide me in that would be great.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    I just tested, and the “group of” option definitely does work with variations.

    Since you seem set on custom code though, that is also an option. You shouldn’t edit the core WooCommerce files..ever, but you can use the filters available.

    This is the one you will need to change the step value: https://github.com/woothemes/woocommerce/blob/master/includes/wc-template-functions.php#L1024

    You can filter it on a per product basis with this filter: https://github.com/woothemes/woocommerce/blob/master/includes/wc-template-functions.php#L1029

    Thread Starter wordpressmz

    (@wordpressmz)

    Thank you #Caleb Burks but this didn’t worked either, I have change the step to 10 from 1 nut the increment is still happening at rate of +/- 1

    Can you tell me what I need to change or add for this to work?

    #Mike Jolley you advice would also be helpful.

    Thank you

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Show us the product page -need a link.

    Thread Starter wordpressmz

    (@wordpressmz)

    THis is the URL: https://antibacterial-pen.com/shop/

    THere are only two products both need the incrementation of +/- 10

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hmm, that is strange. The html looks correct, but the step isn’t working like it should. See demo here: https://www.w3schools.com/tags/att_input_step.asp

    There is something else at play here (likely some javascript). If I remove everything from the input tag except <input type="number" step="10">, then it doesn’t increment at all. However, if I do this on my demo site, it correctly increments in steps of 10 still.

    Try switching to a default theme / disabling plugins till you find the one causing a conflict.

    Thread Starter wordpressmz

    (@wordpressmz)

    Hi #Caleb Burks I hope everything is fine.

    I have done everything now but the problem is still there but there is a progress or something. the value is incremented by +/- 1 but when I enter any value which is not divisible by 10 I get an error.

    This is a little good but I want to make the increment +/- 10 there must be a way for this.

    PLEASE HELP

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Not sure I understand. It doesn’t seem to be working at all for me: https://cld.wthms.co/Gh9b/5OzRobfR

    Did you try disabling all plugins and switching to a default theme like I mentioned?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Order Step in order of 10’ is closed to new replies.