Bundled products and free text input - minimum price html bug
Problem and impact
When having a product configured as free price input and that product has bundled options and a designated price set on that bundled item, the Default price (minimum price) setting on the product is ignored on the orderform rendering.
Instead of taking the Default price as the minimum allowed, it seems to take one or multiple prizes from the bundled prizes.
Note that it doesn't take/sum all the prizes from the bundled products. If I have 3 bundled products, prized €30, €20 and €10 the minimum on the form gets €50.
It's also only in the orderform html output, if I edit the html inline and submit the form the €10 input is happily accepted as the code seems to respect the Default price setting.
Expected behaviour
HTML min value of the freetext input field on the orderform should use the Default price setting of the product
Steps to reproduce
- Create a product, free text input, set the default price to €10
- Add bundled products to that product, for example 2 products each set to €15
- Go to the orderpage and order this product, try to buy the product for €10.
- Note that the minimum price is probably set to €15 for you (even if you have 2x €15 as bundled product).
Screenshots
Link
No response
Browser (software, desktop or mobile?) and version
Chrome
Operating system, dependency versions
docker
Version
pretix/standalone:stable
Hmm, there's a bug here, agreed, but it's not entirely clear what the correct behaviour should be. I thought we purpusefully made it impossible to sell a product for a price less than the sum of the designated prices of its bundled products because that would get you in all kinds of unexpected situations.