Jump to content

Incorrectly displaying "Product is available with different options"


jellygnite

Recommended Posts

Prestashop v1.7.2.4

I noticed this message displaying for a product that did not offer combinations.

"Product is available with different options".

This was because the quantity for the product was -7.

The code in \src\Core\Product\ProductPresenter.php checks  if $product['quantity_all_versions']  is true

line 437

            } elseif ($product['quantity_all_versions'] ) {

I think this should check if greater than zero so change this line to:
 

            } elseif ($product['quantity_all_versions'] > 0) {

Anyone else notice this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...