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

TOPIC: Custom Tabs Translation

Custom Tabs Translation 11 years 1 month ago #3543

Hello,

I have the same Problem like (link to closed thread).

Since multilingual websites are now the standard would you please kindly provide a more understandable step-by-step instruction for us unenlightened newbies?

Your help in this matter is highly appreciated.
Thank you very much.
The topic has been locked.

Custom Tabs Translation 11 years 1 month ago #3545

sigh - newbies ... ;P (just joking)
so -

do the changes as below

file templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php around line 921 change to
 
<?php if (!empty($customTab1_title)) {?>
		<div id="customTab2" class="tabcontent" style="display:none;">
		<?php	echo JText::_('PUREMART_SHIP_TAB');
		#echo $params->get('productdetails_customTab1_content');; ?>
    </div>
<?php } ?> 

you can also use this technique in the tab titles - around line 823
 
<?php $customTab1_title = $params->get('productdetails_customTab1_title');
				 if (!empty($customTab1_title)) {?>
					<li><a href="javascript:void(0)" rel="#customTab1">
<span>
<?php 
echo JText::_('PUREMART_SHIP_TAB_TITLE');
#echo $customTab1_title; 
?>
 
 
</span></a></li>
			<?php } ?> 

so now your using these two language variables as the tab title and tab content

PUREMART_SHIP_TAB_TITLE
PUREMART_SHIP_TAB

now all you have to do is set the content of these variables in any lang ini ..

probably for the moment it's easiest to use Joomla's native lang overides - see screens - do for each language

Cheers
Attachments:
The topic has been locked.

Custom Tabs Translation 11 years 1 month ago #3546

Hello John,

thank you for your swift reply.
I will try it out at once.

Greetings from a grateful newbie
The topic has been locked.

Custom Tabs Translation 11 years 1 month ago #3569

Hello again,

I have tried it and came across something unexpected.
After creating the described language overrides the tab show up but nothing in there (please see attachment)

Would you have any suggestions on why this happened? Because since the tab is there it must be working…

One other thing … if I leave in the Plug-in Manager: Flexible VM2 Template - option settings the Custom Tab 1 – Title empty the tabs on the front do not appear.
Naturally I gave it a title and the (empty) tabs created with language override are visible.

I also deleted my former text of the Custom Tab-1 – Content … but after safe & close & clean cache the original text appears again in the option setting. Is that normal?

For the other translation of my web site I use FALANG - and it works great.
Does this have anything to do with my problem?

Am I missing something or do I just have another “blond” moment.
Thank you so much for your patience.
Attachments:
The topic has been locked.

Custom Tabs Translation 11 years 1 month ago #3571

Ohhh darn .... I've got it ....


<?php if (!empty($customTab1_title)) {?>
<div id="customTab2" class="tabcontent" style="display:none;">
<?php echo JText::_('PUREMART_SHIP_TAB');
#echo $params->get('productdetails_customTab1_content');; ?>
</div>
<?php } ?>

There was a little typo in it .... also in the original post ... - thats why I was asking again :-)

Ok - never mind - Thanks again for your help
I really appreciated it.
The topic has been locked.

Custom Tabs Translation 11 years 1 month ago #3574

:)

Yes, you need to do this for the 2nd tab and content with different lang vars - but you worked this out (I think).. ;)

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