Close

General Discussion

ezzat2k
8 years ago
#9183 Quote
Avatar
  • 34
Is there a way to include the price for the (related products) in the quick view popup?! right now only a small picture and product name is showing.
Thank you
iliyan.tanev
8 years ago
#9186 Quote
Avatar
  • Moderator
  • 347
Hi,

Yes, you can easily do it.
Open Views\Product\RelatedProducts.cshtml view and change the item-box div to the following:


<div class="item-box">
                @Html.Partial("_ProductBox", item)
                <div class="price">@item.ProductPrice.Price</div>
</div>
Regards,
Iliyan Tanev
Nop-Templates Dev Team
ezzat2k
8 years ago
#9190 Quote
Avatar
  • 34
Iliyan,

Thank you for the quick response, I do appreciate it, your suggestions worked, but it didn't show up.

I can see in the source code now that the price is there, however it is not showing/visible on the page. I'm assuming it might be CSS related, cause inspecting the div shows it's outside of the layout.

Thanks
iliyan.tanev
8 years ago
#9203 Quote
Avatar
  • Moderator
  • 347
Hi,

On which theme are you trying this ?
On Default Clean is appearing.
If you are using some third party theme, please check if the price class of the div wrapping the price is not caching some styles that it shouldn't. Keep in mind that if this price class is not used you could use it to apply some styles to the price. 
Regards,
Iliyan Tanev
Nop-Templates Dev Team