Skip to content

Commit

Permalink
Merge pull request PrestaShop#37849 from pszostok/patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
boherm authored Jan 24, 2025
2 parents aced7ef + 7627b82 commit 1e41ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Presenter/Product/ProductListingLazyArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAddToCartUrl()
protected function shouldEnableAddToCartButton(array $product, ProductPresentationSettings $settings)
{
if (isset($product['attributes'])
&& count($product['attributes']) > 0
&& !empty($product['attributes'])
&& !$settings->allow_add_variant_to_cart_from_listing) {
return false;
}
Expand Down

0 comments on commit 1e41ced

Please sign in to comment.