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

TOPIC: Show related products before short description

Show related products before short description 10 years 9 months ago #5299

Hi,

1. I would like to have tab related product before short description. How can I do this?

Attachment tab.fw.png not found



2. I have a lots of products that have Displayed image subtitle and Image Alt-Text written for there images. In the related product tab it is not ok, so I manualy delete displayed subtitles and alt text and than is ok. Is there a way to switch off showing that text.

Attachment names.fw.png not found



webmojstri.si/matjaz/mobymaj/jupgrade/telefoni/sony-xperia-l-detail.html
Last Edit: 10 years 9 months ago by matjazpintaric2013.
The topic has been locked.

Show related products before short description 10 years 9 months ago #5309

Hi

in templates/mobymaj10/html/com_virtuemart/productdetails/default.php around line 669
you will see the unordered list for the tabs

just swap what ever positions you need of the <li>**this is the tab code**</li>
<?php if (!empty($this->product->customfieldsRelatedProducts)) { ?>
            <li><a href="javascript:void(0)" rel="#3relatedproducts"><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS'); ?></a></li>
		<?php } ?> 
 

move that to where you want

that is the tabs

then the content block do the same

line 687 holds the individual divs

e.g.
move the order of the code section to where you want it
<?php if (!empty($this->product->customfieldsRelatedProducts)) { ?>
		<div id="3relatedproducts" class="FlexibleProductTABDetails FlexibleProductTABRelated" style="display:none;">
 
		<?php echo $this->loadTemplate('relatedproducts');	?>
        <div class="clear"></div>
		</div>
	<?php } // Product customfieldsRelatedProducts END?>
 
Last Edit: 10 years 8 months ago by John.
The topic has been locked.

Show related products before short description 10 years 9 months ago #5322

Hi, I find the css file, but there is no <?php .... written?

arround line 669 I see. Coluld you try more specific.

Attachment koda.png not found

Last Edit: 10 years 9 months ago by matjazpintaric2013.
The topic has been locked.

Show related products before short description 10 years 8 months ago #5340

Sorry - pasted the wrong file - the danger of a clipboard history.. he he

it's

templates/mobymaj10/html/com_virtuemart/productdetails/default.php
The topic has been locked.

Show related products before short description 10 years 8 months ago #5379

Hi,

sorry for such delay. I have work with moving the page on live domene.

www.mobystyle.si/smartphone-shop/telefoni-2/samsung-galaxy-s4-lte-detail.html

The changing code did move tabs, but when I open product it open the first description tab, but I would like to open the other tab (related products) first?
Attachments:
Last Edit: 10 years 8 months ago by matjazpintaric2013.
The topic has been locked.

Show related products before short description 10 years 8 months ago #5380

How can I have just title text under related images and not also image file name ?

mobystyle.si/telefoni/sony-xperia-l-detail.html
Attachments:
The topic has been locked.

Show related products before short description 10 years 8 months ago #5386

move the <li class="selected"> to what ever tab you want first

the display of the related products comes directly from the administrator/components/com_virtuemart/models/customfields.php

public function displayProductCustomfieldFE

it is then just displayed by components/com_virtuemart/views/productdetails/tmpl/default_relatedproducts.php

<span class="product-field-display"><?php echo $field->display ?></span>

so in other words you will need to code any changes - either in the model or some fancy preg_replace stuff in the template

cheers
Last Edit: 10 years 8 months ago by John.
The topic has been locked.

Show related products before short description 10 years 8 months ago #5401

OK. Thank you for helping. This is then too much for me, so I can not do this.

Thank you for your suport.

Matjaz
The topic has been locked.

Show related products before short description 10 years 8 months ago #5406

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