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

OpenApi\Controller\Front\CartController::checkAvailableStock comporte une erreur et renvoie toujours false #97

Open
MariusMMM opened this issue Nov 5, 2024 · 0 comments

Comments

@MariusMMM
Copy link

OpenApi\Controller\Front\CartController::checkAvailableStock comporte une erreur et renvoie toujours false :

L'idéal serait je pense cette nouvelle version :

/**
 * @param ProductSaleElements $pse
 * @param int $quantity
 *
 * @return bool
 * @throws PropelException
 */
protected function checkAvailableStock(ProductSaleElements $pse, int $quantity): bool
{
    return $quantity > $pse->getQuantity() &&
        ConfigQuery::checkAvailableStock() && !$pse->getProduct()->getVirtual();
}

À disposition pour confirmer cette correction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant