Home Forums WoodMart support forum Quantity step increment

Quantity step increment

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #488929

    atpd23
    Participant

    Hello,

    I have applied quantity step increment feature by using WooCommerce hook woocommerce_quantity_input_args. It’s working, I have set step increment value to 5, it adds 5 pieces of a product by clicking up and down quantity arrows located next to the add to cart buttons.

    Also I have included a warning alert that displays if a costumer tries to enter quantity value directly into the quantity field and the value doesn’t fit step increment scheme.

    It’s working as I expected on product page and cart page, not on the shop page. It seems there is a WoodMart quantity field next to the add to cart button and it can cause problems. Please see the attached images.

    Best Regards,
    Andrej

    • This topic was modified 1 year, 8 months ago by atpd23.
    Attachments:
    You must be logged in to view attached files.
    #489033

    Luke Nielsen
    Keymaster

    Hello,

    Please navigate to Theme Settings -> Product archive -> Products styles and turn off the “Quantity input on product” option: https://prnt.sc/LqS-7DFIDKMg

    So as a result that quantity on the product grid will be hidden.

    Kind Regards

    #489035

    atpd23
    Participant

    Hello,

    Thank you for the reply, but I would like to keep it. Please see in the attached images what I need to achieve. The step increment is working, but on shop page it isn’t showing warning alert if I enter a wrong number (if it doesn’t follow the step increment rule).

    Best Regards,
    Andrej

    #489038

    Luke Nielsen
    Keymaster

    Hello,

    Please send me access to the admin dashboard so I will investigate the issue on your side.

    Thank you in advance.

    Kind Regards

    #489308

    atpd23
    Participant

    Hello,

    It’s a testing side placed on my localhost. Please see the attached video where I explain the problem in details.

    As you can see, everything is working on product and cart pages, but not on shop page. Shop page doesn’t display the warning alert at all. A workaround is to replace WoodMart quantity field with a custom one.

    Best Regards

    #489363

    Luke Nielsen
    Keymaster

    Hello,

    In order to active the notification in the input, the input must be in the form as it is in the custom code: https://monosnap.com/file/N702gBxCrgVxRUvSMCzk5Bhjyqk84V , but by default, we do not have a form in the grid product topic, so it will not work.

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)