pretix icon indicating copy to clipboard operation
pretix copied to clipboard

Bundled products and free text input - minimum price html bug

Open hp197 opened this issue 1 year ago • 1 comments

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

  1. Create a product, free text input, set the default price to €10
  2. Add bundled products to that product, for example 2 products each set to €15
  3. Go to the orderpage and order this product, try to buy the product for €10.
  4. Note that the minimum price is probably set to €15 for you (even if you have 2x €15 as bundled product).

Screenshots

Monosnap Regular ticket :: Product :: Pretix 2024-12-11 12-24-42 Monosnap Regular ticket :: Product :: Pretix 2024-12-11 12-25-07 Monosnap Event 2024-12-11 12-25-31

Link

No response

Browser (software, desktop or mobile?) and version

Chrome

Operating system, dependency versions

docker

Version

pretix/standalone:stable

hp197 avatar Dec 11 '24 11:12 hp197

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.

raphaelm avatar Dec 11 '24 14:12 raphaelm