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

TOPIC: Hide Product Description when Empty

Hide Product Description when Empty 10 years 7 months ago #5741

Hi

Good day

Please help me the script to hide Product Description on Product Detail Page and will show Product Description if any description it.

Thanks in advance,
arthur
The topic has been locked.

Hide Product Description when Empty 10 years 7 months ago #5747

it will be in file templates/flexible_darkmart/html/com_virtuemart/productdetails/default.php ~ line 632

you would just surround the <li> in a conditional statement

e.g.
 
<?php if (!empty($this->product->product_desc)) { ?>
<li class="selected"><a href="javascript:void(0)" rel="#desc"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC') ?></span></a></li>
<?php } ?>  
 

and also the div on line 684

 
<?php if (!empty($this->product->product_desc)) { ?>
<div id="desc" class="tabcontent">
			<div class="product-description">
	 		<?php echo $this->product->product_desc; ?>
			</div>	
		</div>
<?php } ?>  
 

but your going to have to play with the ids and style="display:none;" etc to see what haddens

these would have to be conditional as well

Cheers
The topic has been locked.

Hide Product Description when Empty 10 years 7 months ago #5760

Hi

Thanks alot again, the script running well :)

I just recognize that flexiblewebdesign.com, not just sell templates but also experts in custom VM script, plus fast response and descriptive... :)

Cheers
The topic has been locked.

Hide Product Description when Empty 10 years 7 months ago #5762

Thank you!

Regards

Topic closed
The topic has been locked.
Time to create page: 0.119 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