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

TOPIC: How to move "Specifications" TAB to footer TABs.

How to move "Specifications" TAB to footer TABs. 11 years 5 months ago #1160

Hello,
I am trying to create customs fields within the vmFlyPageBottom area instead of within FlexibleProductDetailsID. That is, I want my custom fields to be with Product Description, Reviews, Ask a question...

Is it possible? What modifications should I do?

Thanks a lot
Last Edit: 11 years 5 months ago by Support.
The topic has been locked.

Custom fields in another area 11 years 5 months ago #1173

HI,

I am going to give you the tutorial based on default.php (for flexv2.php, you are going to follow the same procedure).

Open this PHP:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php

and find this these lines (620th):
<?php if (!empty($this->product->customfieldsSorted['ontop'])) { ?>
				<li><a href="#" rel="SpecificationsBottom"><span><?php echo $params->get('productdetails_specs','Specifications'); ?></span></a></li>
       	<?php } ?>   

CUT these codes and paste them to 725th line, Right before:
<?php if ($this->showReview) {?>

Then go back to 641th line and CUT these lines:
 <?php
    if (!empty($this->product->customfieldsSorted['ontop'])) { ?>
    <div id="SpecificationsBottom" class="tabcontent">
	<?php $this->position='ontop';
		echo $this->loadTemplate('customfields'); ?>
        <div class="clear"></div>
    </div>
	<?php } // Product Custom ontop end
    ?>    

and PASTE them to 826th line (right before)
<?php // Customer Reviews
	if($this->showReview) { ?>

And the "SPECIFICATIONS" tab will be at the footer section, and right before the RATING tab.
The topic has been locked.

Custom fields in another area 11 years 5 months ago #1186

Thank for the quick response and the indications.
We were able to tune it perfectly.
The topic has been locked.

Custom fields in another area 11 years 5 months ago #1196

I am glad you were able to do it.
Hope this tutorial will help to others who are asking for the same thing ;)

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