HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
68 stars 55 forks source link

SI: User Supplied Price Minimum Quantity Error #372

Closed WillStrohl closed 2 years ago

WillStrohl commented 2 years ago

Describe the bug

When using the user-supplied price feature, you're unable to add the product to the cart without entering a quantity.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Clean install and complete the getting started wizard.
  2. Add at least one product that's using the user-supplied price (for donation-style products).
  3. Check the "Hide Quantity" checkbox.
  4. Save the changes.
  5. Navigate to the product in the store.
  6. Enter any donation amount.
  7. Click to add the donation to the cart.

Expected behavior

The donation product is added to the cart with a quantity of 1, and you're redirected to the cart view with the expected amount.

Actual behavior

The view stays on the product and displays an error about there not being a number in the quantity field (see screenshot). The error message states, "Please enter number only in quantity."

Screenshots

image

Additional Context

Customer support request 7671

erw13n commented 2 years ago

@hismightiness Error happen because Quantity is Null.

If donation, set default Qty = 1