I am trying to add a whatsapp icon, and want to auto populate the product title in text= of the url, unable to fetch the same, please help
File i am trying to place the whatsapp icon: /Views/Product/_ProductPrice.cshtml
Code I am trying to add ( this worked in here tough /Views/Shared/_ProductBox.cshtml) <a href="https://api.whatsapp.com/send?phone=xxxxxxxxxx&text= @Model.Name "><i class="fa fa-whatsapp fa-2x" style="color:#10c346;" aria-hidden="true"></i></a>
The ProductPrice Model Class that is used for the View does not contain the Name of the Product. It has only Id. You need to add the variable to the model, fill it either from product details or from fetch it from product id.