Calling the Product Title

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
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>

Kakoli
3 years ago
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.
3 years ago
Thank you for your reply, I am not very good at this, can you elaborate little more with example please?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.