News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Tabbed product view

Started by tony198, May 02, 2015, 20:41:08 PM

Previous topic - Next topic

tony198

Can anyone help with this, I have a tabbed viewer in the product section and need to add tabs for the custom fields, my code is below but I can't seem to get the right info to include the custom fields as extra tabs.

<?php // event onContentBeforeDisplay
echo $this->product->event->beforeDisplayContent?>


<?php if(!empty($this->product->product_desc) || $this->allowRating || $this->showReview) : ?>
<ul id="productdetails-tabs">
<?php if(!empty($this->product->product_desc)) : ?>
<li data-toggle="product-description"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE'?></li>
<?php endif; ?>

        <?php if(!empty($this->product->customfieldsSorted['onbot'])) : ?> 
<li data-toggle="customfield_TITLE"><?php echo JText::_('Datasheets'?></li>
<?php endif; ?>
       
       
   
       
       
       
<?php if($this->allowRating || $this->showReview) : ?>
<li data-toggle="customer-reviews"><?php echo JText::_('COM_VIRTUEMART_REVIEWS'?></li>
<?php endif; ?>
</ul>

       <div id="productdetails-tabs-content">
<?php endif; ?>
<?php if (!empty($this->product->product_desc)) : ?>
           <div class="product-description">
<?php echo $this->product->product_desc?>
           </div>
<?php endif; ?>


<?php // onContentAfterDisplay event
echo $this->product->event->afterDisplayContent?>


<?php
echo 
$this->loadTemplate('reviews'); ?>


<?php if(!empty($this->product->product_desc) || $this->allowRating || $this->showReview) : ?>
</div>


In VM3.0.2

Thanks

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum