Is it possible to add another sub-page?

Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
GK User
Fri Dec 07, 2012 11:26 am
Hi all,

I am wondering if it is possible to add a sub-page to a virtuemart product.

For example - at the moment the product has a section for 'Description' and another section for 'Reviews'.

If I wanted to add additional sub pages to this i.e. 'Features', 'Specifications' etc is this possible?

Many thanks,

Prit
User avatar
Gold Boarder

Konrad M
Fri Dec 07, 2012 12:38 pm
Hi,
yes go to html/com_virtuemart/productdetails/default.php and find (line 315):
Code: Select all
 <ul id="gkProductTabs">
    <li class="gkProductTabActive"><span><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span></li>
    <li><span><?php echo JText::_('COM_VIRTUEMART_REVIEWS') ?></span></li>
    </ul>

Here you ca nad new tab title. To add content of your new tab add:
Code: Select all
<div id="gkProductTab3" class="gkProductTab gkUnvisible">
your content here
</div>

after this element:
Code: Select all
<div id="gkProductTab2" class="gkProductTab gkUnvisible">
</div>
User avatar

GK User
Fri Dec 07, 2012 6:50 pm
Hi Konrad,

Thanks for the response.

I have added the following to line 562, 563 and 564:

<div id="gkProductTab3" class="gkProductTab gkUnvisible">
Test content
</div>

The above has been added after this bit of coding:

}
?>
<span class="product-field-display"><?php echo $field->display ?></span>
<span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
</div>
<?php
$custom_title = $field->custom_title;
}
}
?>
</div>

How do I now view this as a new section and how do I then add content to it?

Apologies if I am missing something.

Thanks,

Pritesh
User avatar
Gold Boarder

Konrad M
Mon Dec 10, 2012 11:48 am
Please send me url to te page where you made those changes.
User avatar


cron