Close

How to show Description Tab only if Product Full Description is not empty string?

maxkomarov
12 years ago
#597 Quote
Avatar
  • 6
?

Thanks in advance,
Max
Support
12 years ago
#598 Quote
Avatar
  • Moderator
  • 1044
maxkomarov wrote:
?

Thanks in advance,
Max


Hi Max,

This will be possible if again the Ajax option is not enabled.
You need to add an additional check if the Model.Description is not null or empty string.

Simply change the code on line 183 in _ProductTabs.cshtml file like this:

@if (Model.Settings.EnableProductFullDescriptionTab && !String.IsNullOrEmpty(Model.Description))

Hope this helps!

Best Regards,
Nop-Templates Support Team
maxkomarov
12 years ago
#600 Quote
Avatar
  • 6
[quote=Support
Simply change the code on line 183 in _ProductTabs.cshtml file like this:

@if (Model.Settings.EnableProductFullDescriptionTab && !String.IsNullOrEmpty(Model.Description))
[/quote]

It is work. Thank you!