"Add To Cart" button in Product list for PrestaShop 1.7

If you want taking back the "Add to Cart" button for product lists in PrestaShop 1.7, you can do it making few customizations in prestashop template.

For PrestaShop classic template you need to open file: /themes/classic/templates/catalog/_partials/miniatures/product.tpl 

And find this code:

    {hook h='displayProductPriceBlock' product=$product type='weight'}
</div>
{/if}



And after this rows paste code below:

<form action="{$urls.pages.cart}" method="post" class="add-to-cart-or-refresh">
<input type="hidden" name="token" value="{$static_token}">
<input type="hidden" name="id_product" value="{$product.id}" class="product_page_product_id">
<input type="hidden" name="qty" value="1">
<button class="btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit" {if $product.quantity < 1 }disabled{/if}>
<i class="material-icons shopping-cart"></i>
{l s='Add to cart' d='Shop.Theme.Actions'}
</button>
</form>

After this changes also open file: /themes/classic/assets/css/theme.css

And in the bottom of the file paste this code: 

#products .product-description,
.featured-products .product-description,
.product-accessories .product-description,
.product-miniature .product-description{
height: 120px;
}

#products .thumbnail-container,
.featured-products .thumbnail-container,
.product-accessories .thumbnail-container,
.product-miniature .thumbnail-container{
height: 388px;
}

#products .thumbnail-container form,
.featured-products .thumbnail-container form,
.product-accessories .thumbnail-container form,
.product-miniature .thumbnail-container form{
text-align: center;
margin: 10px 0 10px 0;
}

#products .thumbnail-container:hover .highlighted-informations,
.featured-products .thumbnail-container:hover .highlighted-informations,
.product-accessories .thumbnail-container:hover .highlighted-informations,
.product-miniature .thumbnail-container:hover .highlighted-informations{
bottom: 8.625rem;
}

#products .thumbnail-container:hover .highlighted-informations.no-variants,
.featured-products .thumbnail-container:hover .highlighted-informations.no-variants,
.product-accessories .thumbnail-container:hover .highlighted-informations.no-variants,
.product-miniature .thumbnail-container:hover .highlighted-informations.no-variants{
bottom: 6.375rem;
}



After all this changes you will see "Add to cart" button in your Product lists: