cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a description to product grid

Adding a description to product grid

Hi,

Our site is at southernrecords.co.uk

We display a grid of records and would like to be able to add some HTML above the "add to cart" button to allow the record mp3 to be played. We have the code to do this but do not know where we can add it.

 

We are new to Magento2 so any help would really be appreciated

Thanks

Rich

 

 

 

 

1 REPLY 1

Re: Adding a description to product grid

Addtocart button code arise from vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml 

 

You can override this addtocart.phtml file from core module to your custom theme,

 

In your theme create addtocart.phtml file at below location and add your code, app/design/frontend/{Packagename}/{themename}/Magento_Catalog/templates/product/view/addtocart.phtml

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial