L
L
LR92020-07-16 01:33:21
WordPress
LR9, 2020-07-16 01:33:21

How to make wooconerce count tenths when choosing the quantity of goods?

Good day to all! Help the villager!

Who knows how to make it so that when choosing a product, you can order 10.5 or 2.5, etc.

5f0f8422d314d931050230.jpeg

It turns out that 10.5 or 2.5, etc. are invalid parameters.
5f1021f281546484968293.jpeg
is it possible to do this with the help of the voo settings (unfortunately, I did not find it because, I'm just stupid)
or through plugins. Well, if there are other options, I will be grateful!
Thank you very much!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DooX, 2020-07-16
@DooX

Firstly!
all that is circled is an input
that has a numeric type
so that you can enter numbers with handles
if you want the visitor to be able to use the up and down arrows, then take a closer look at the
step="any" attribute
in it you specify the step number. if you specify 0.1, then when you click up, it will add to the number 0.1
further by analogy.
then you need to install a plug-in for woo that changes the type of this field
or manually trace if where is the filter that changes the value from this field to int even if it is float and change this code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question