• Resolved jardimfelipe

    (@jardimfelipe)


    Is there a way to change the number input by a select? I’m having an issue with the number input, the order is completed even when the value on this input is 0, and I think that a select will be better in my case.

    I’m not using a theme, I’m creating on my on and I’m new on woocommerce, maybe i’m doing something wrong too

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @jardimfelipe,

    Thank you for sharing the Website URL.

    > Is there a way to change the number input by a select?

    Yes, you can add the select. If you add the select menu then you need to write a code for changing the cart details on the checkout page.

    Please check the screenshot: https://prnt.sc/jkzphw

    > the order is completed even when the value on this input is 0,

    I’ve checked but I’m not able to select 0 from the quantity selector. I was not able to go below the 1.

    Can you please let me know how did you manage to get 0 in quantity selector?

    I’ve also noticed that changing the quantity on the checkout page it is not changing the cart.

    Can you please confirm?

    I can see that from my plugin it is updating the cart information but it is not reflecting on the checkout page.

    Please let me know.

    Regards,
    Bhavik.

    Thread Starter jardimfelipe

    (@jardimfelipe)

    > Can you please let me know how did you manage to get 0 in quantity selector?
    Changing the value using a keyboard, was possible change to 0 and any value

    > I can see that from my plugin it is updating the cart information but it is not reflecting on the checkout page.

    It’s not. When you confirm and go to the gateway page, this value is updated, but don’t update in checkout.

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @jardimfelipe,

    > Changing the value using a keyboard, was possible change to 0 and any value.

    So what you can do here, is make that input field a readonly. You need to add a css in your style.css file.

    So it will not accept values from the keyboard.

    Please let me know if you have any queries.

    >It’s not. When you confirm and go to the gateway page, this value is updated,
    > but don’t update in checkout.

    Ideally, when you change the quantity it should change the cart detail on the checkout page.

    It might be the conflict with the theme. Can you check the same issue with the storefront theme?

    Please let me know.

    Regards,
    Bhavik

    Thread Starter jardimfelipe

    (@jardimfelipe)

    >It might be the conflict with the theme. Can you check the same issue with the storefront theme?

    With storefront I don’t have this problem. As I said, I’m not using a theme for this site, I’m made one specifically for it, and maybe I’m doing something wrong

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @jardimfelipe,

    >With storefront I don’t have this problem. As I said, I’m not using a theme
    > for this site, I’m made one specifically for it, and maybe I’m doing something > wrong

    Yes. Maybe you’ve missed WooCommerce action or filter on the checkout page.

    I’m not sure about it, you can debug more on it.

    Let me know if you need anything from my side.

    Regards,
    Bhavik

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is there a way to change the number input by a select?’ is closed to new replies.