• Resolved zest0adam

    (@zest0adam)


    Hi,

    I’m currently developing a quotation-based website, and as such I need the ability to quote on multiple quantities. I’ve got the YITH quote request plugin installed, so that side of things is covered, but I just need a way to get the quantity to accept a string rather than an integer so the user can type in multiple quantities for us to manually quote on.

    I’ve so far tried to amend the quantity-input.php file in Woocommerce, and I can of course change the input type to “text”, but my issue comes on the next page. On the quote page it’s not showing the string in the quantity column.

    Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    I think that you’ll be going down a deep rabbit hole if you try to adjust the behavior of the quantity field. That has so many dependencies that unexpected areas will break.

    I’d recommend going about this differently. You could add a comments section to the product where customers could add their request. Or you could work with variations to share a range, i.e 1-10, 11-20, etc. You could use a plugin such as WooCommerce Product Add-ons to create fields on the product to list a minimum and maximum in their range:
    https://woocommerce.com/products/product-add-ons/

    If you’d really like to do this, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Moderator Hari Shanker R

    (@harishanker)

    Hi @zest0adam

    I just wanted to quickly check-in on this for you. I hope you were able to look into the suggestions provided in the previous reply. They should guide you in the right direction.

    Since we haven’t heard from you in a while, I’m going to mark this topic as Resolved. Let us know if you keep running into troubles. You can either reply here to follow-up with the same problem, or create a new thread to report your troubles to us.

    All the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Converting WooCommerce quantity field to allow strings’ is closed to new replies.