× English Section!

We will be more than happy to help you with problems related to our services and products. Please feel free to write it down as clear as possible

Replace tabs in virtuemart and smart template

Περισσότερα
2 Μήνες 3 Εβδομάδες πριν - 2 Μήνες 3 Εβδομάδες πριν #263 από infogate
Replace tabs in virtuemart and smart template δημιουργήθηκε από infogate
If you want to replace the tabs system of the template and use the standard VirtueMart layout, you can make the following changes.

Override and customise - templates/vp_smart/layouts/default/html/com_virtuemart/productdetails/default.php

Find the following codes between lines 252 to 307:
<?php if(!empty($tabTitles) && !empty($tabDisplays)) : ?>
<div class="product-tabpanel" role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-list" role="tablist">
<?php $i = 0; ?>
<?php foreach($tabTitles as $id => $title) : ?>
<?php $i++; ?>
<li role="presentation"<?php echo ($i == 1) ? ' class="active"' : ''; ?>>
<a href="#<?php echo $id ?>" aria-controls="<?php echo $id ?>" role="tab" data-toggle="tab"><?php echo $title ?></a>
</li>
<?php endforeach; ?>
<?php if($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) : ?>
<li role="presentation">
<a href="#tab-reviews" aria-controls="tab-reviews" role="tab" data-toggle="tab"><?php echo vmText::_('COM_VIRTUEMART_REVIEWS') ?></a>
</li>
<?php endif; ?>
</ul>
<!-- Tab panes -->
<div class="tab-content with-list-tab">
<?php $i = 0; ?>
<?php foreach($tabDisplays as $id => $display) : ?>
<?php $i++; ?>
<div role="tabpanel" class="tab-pane fade<?php echo ($i == 1) ? ' in active' : ''; ?>" id="<?php echo $id ?>">
<div <?php echo empty($metaDescription) && empty($this->product->product_s_desc) && !empty($this->product->product_desc) ? 'class="product-tab-texts" itemprop="description"' : 'class="product-tab-texts`"'; ?>>
<?php echo $display ?>
</div>
<?php if($i == 1 && $this->product->product_box) : ?>
<div class="product-box">
<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') . $this->product->product_box; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php if($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) : ?>
<div role="tabpanel" class="tab-pane fade" id="tab-reviews">
<?php echo $this->loadTemplate('reviews'); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php elseif($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) : ?>
<div class="product-tabpanel" role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-list" role="tablist">
<li role="presentation" class="active">
<a href="#tab-reviews" aria-controls="tab-reviews" role="tab" data-toggle="tab"><?php echo vmText::_('COM_VIRTUEMART_REVIEWS') ?></a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content with-list-tab">
<div role="tabpanel" class="tab-pane fade in active" id="tab-reviews">
<?php echo $this->loadTemplate('reviews'); ?>
</div>
</div>
</div>
<?php endif; ?>



Replace above by:

<?php echo $this->product->product_desc; ?>
				<?php if($i == 1 && $this->product->product_box) : ?>
					<div class="product-box">
						<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') . $this->product->product_box; ?>
					</div>
				<?php endif; ?>
				<?php echo shopfunctionsf::rendervmsublayout('customfields', array('product' => $this->product, 'position' => 'normal')); ?>
				<?php if($this->allowRating || $this->allowReview || $this->showRating || $this->showReview) : ?>
					<?php echo $this->loadTemplate('reviews'); ?>
				<?php endif; ?>

Follow us at You Tube --> www.youtube.com/@freespiritsgr
Follow us at Facebook --> www.facebook.com/freespirits.gr
Αν το παραπάνω άρθρο σας φάνηκε χρήσιμο θα το εκτιμούσαμε αν μας αξιολογούσατε κάνοντας κλικ εδώ --> g.page/r/CeAOj46Cf2epEB0/review
Σε περίπτωση που σας ενδιαφέρει να λάβετε οικονομική προσφορά για σχεδίαση ιστοσελίδας κάντε κλικ --> freespirits.gr/web-design
Αν διαθέτετε ήδη ιστοσελίδα και θέλετε να γίνει δωρεάν έλεγχος ταχύτητας και SEO κάντε κλικ εδώ --> freespirits.gr/contact-us
Αν χρειάζεστε οικονομική, ταχύτατη φιλοξενία με δωρεάν μεταφορά δεδομένων κάντε κλικ εδώ --> freespirits.gr/hosting

Last edit: 2 Μήνες 3 Εβδομάδες πριν by infogate.

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 2.339 δευτερόλεπτα
Powered by Kunena Φόρουμ