Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check minimal quantity #10279

Merged
merged 4 commits into from Sep 7, 2018
Merged

Check minimal quantity #10279

merged 4 commits into from Sep 7, 2018

Commits on Sep 4, 2018

  1. Check minimal quantity

    Solve PrestaShop#10162. After the product is added to the cart, it will return an error if the customer tries to decrease the product quantity below the minimal_quantity (for the product or combination).
    sadlyblue committed Sep 4, 2018
    Copy the full SHA
    0503ae2 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2018

  1. Array_push changed

    array_push to $this->{$ErrorKey}[]
    sadlyblue committed Sep 6, 2018
    Copy the full SHA
    97090de View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2018

  1. Copy the full SHA
    473f645 View commit details
    Browse the repository at this point in the history
  2. Fix checkout button unavailable

    Changing $this->{$ErrorKey} to $this->errors returns the same error, but the checkout button is enabled (as per @marionf comment and bug reported).
    I believe it should not decrease the product quantity, since in the product page we con only add the minimum amount or can't add at all.
    sadlyblue committed Sep 7, 2018
    Copy the full SHA
    5c82720 View commit details
    Browse the repository at this point in the history