Home › Forums › WoodMart support forum › Quantity step increment
Quantity step increment
- This topic has 5 replies, 2 voices, and was last updated 1 year, 8 months ago by
Luke Nielsen.
-
AuthorPosts
-
August 15, 2023 at 6:26 pm #488929
atpd23ParticipantHello,
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.August 16, 2023 at 10:18 am #489033
Luke NielsenKeymasterHello,
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
August 16, 2023 at 10:27 am #489035
atpd23ParticipantHello,
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,
AndrejAugust 16, 2023 at 10:50 am #489038
Luke NielsenKeymasterHello,
Please send me access to the admin dashboard so I will investigate the issue on your side.
Thank you in advance.
Kind Regards
August 17, 2023 at 1:54 pm #489308
atpd23ParticipantHello,
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
August 17, 2023 at 4:35 pm #489363
Luke NielsenKeymasterHello,
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
-
This topic was modified 1 year, 8 months ago by
-
AuthorPosts
- You must be logged in to create new topics. Login / Register