Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Decription Tab with no Content

Decription Tab with no Content 9 years 4 months ago #3058

Hi,

Is there a way i can have the description tab not show if there is no content in that field.

I have seen this is the case on other templates.

Any help you could give would be great.

Cheers,
Matt
The topic has been locked.

Decription Tab with no Content 9 years 4 months ago #3066

Hi Mat,

relatively simple

file templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php ~ line 453

change
 
		<li class="selected">
            	<a href="#" rel="desc"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span></a></li>
 
 

to
 
<?php if (!empty($this->product->product_desc)) { ?>
			<li class="selected">
            	<a href="#" rel="desc"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span></a></li>
		<?php } ?>
Attachments:
The topic has been locked.

Decription Tab with no Content 9 years 4 months ago #3136

Thanks John, looks like it has been missed.

Your solution has also been applied to FashionMart permanently in the FashionMart v2.6

Case solved. Topic is closed.

Regards.
Forum Support.
The topic has been locked.
Time to create page: 0.090 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo