• Priority: Medium
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 16.05.22, 11:39
  • Opened by: Lateliers Ma
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23349 - Promokit Size Guide: Change Tab label

Hello Fred,

How can I change tab labels on promokit label ?
Thanks.

Best regards.

Attachments:

Comments

Fred 17 May 2022, 10:31

Hi, Lateliers Ma.
Go to Translations → Modules - https://take.ms/bl9bX

Lateliers Ma 17 May 2022, 11:46

Thx it works !
But I want to have a different label in the text button (please see picture) . Different to the first tab.
Example:
Size guide(text button)
First tab: Mesurer ma nappe
Second tab: Mesurer mon coussin

Thx.
Regards

Attachments:

Fred 18 May 2022, 10:18

You can change button text in the file /modules/pksizeguide/views/templates/hook/pksizeguide.tpl

Lateliers Ma 18 May 2022, 11:57

Hello, thx fred.

See below the file. Which line exactly ? Thx a lot.

Best regards

{*
* Promokit Size Guide Module
*
* @package   alysum
* @version   2.0.0
* @author    https://promokit.eu
* @copyright Copyright Ⓒ 2022 promokit.eu <@email:support@promokit.eu>
* @license   You only can use module, nothing more!
*}

{function name="sgtitle" itemdata=[]}
{if $itemdata != []}
<li class="nav-item">
	<a class="nav-link{if isset($itemdata.class)}{$itemdata.class}{/if}" href="#{$itemdata.id}" title="{$itemdata.title}" data-toggle="tab">
		<h5>{$itemdata.title}</h5>
	</a>
</li>
{/if}
{/function}

<div id="pksizeguide-show" class="buttons_bottom_block additional_button">
	{l s='Size Guide' d='Modules.Pksizeguide.Shop'}
</div>
<div id="pksizeguide">
	<span class="cross" title="{l s='Close' d='Shop.Theme.Global'}">
		<svg class="svgic"><use xlink:href="#si-cross"></use></svg>
	</span>
	<div class="pksizeguide-content tabs">
		<div class="oh container">
			<div class="row">
				{if $config.show_image}
				<div class="{if empty($guides) && !$config.show_global}col-sm-12{else}col-sm-6{/if}">
					<img src="{$config.imgPath}{$config.imagename.{$language.id}}" alt="{l s='Size Guide' d='Modules.Pksizeguide.Shop'}" width="605" height="605" style="width:100%">
				</div>
				{/if}
				<div class="{if $config.show_image}col-sm-6{else}col-sm-12{/if}">
					
					<ul class="nav nav-tabs">
						{if !empty($guides)}
						{assign var=itemdata value=[
			                'id' => "pksizeguide-guide{$product.id}",
							'title' => "{$guides[$product.id]->title}",
							'class' => ' active'
			            ]}
			            {sgtitle itemdata = $itemdata}
			            {/if}
					
{* 
						{foreach from=$guides item=guide key=key name=guides}
							{assign var=itemdata value=[
				                'id' => "pksizeguide-guide{$key}",
								'title' => "{$guide->title}"
				            ]}
				            {if $smarty.foreach.guides.first}
				                {$itemdata['class'] = ' active'}
				            {/if}
				            {sgtitle itemdata = $itemdata}
						{/foreach}
*}
						{if $config.show_global}
							{assign var=itemdata value=[
				                'id' => 'pksizeguide-global', 
								'title' => "{l s='Size Guide' d='Modules.Pksizeguide.Shop'}"
				            ]}
				            {if empty($guides)}
				                {$itemdata['class'] = ' active'}
				            {/if}
				            {sgtitle itemdata = $itemdata}
						{/if}
						{if $config.show_measure}
							{assign var=itemdata value=[
				                'id' => 'pksizeguide-how', 
								'title' => "{l s='How to measure' d='Modules.Pksizeguide.Shop'}"
				            ]}
				            {if empty($guides) && !$config.show_global}
				                {$itemdata['class'] = ' active'}
				            {/if}
				            {sgtitle itemdata = $itemdata}
						{/if}
					</ul>
					<div class="tab-content">
						{if !empty($guides)}
						{*
						{foreach from=$guides item=guide key=key name=guidesContent}
							<div id="pksizeguide-guide{$key}" class="tab-pane rte fade{if $smarty.foreach.guidesContent.first} in active{/if}">
								{$guide->description nofilter}
							</div>
						{/foreach}
						*}
						<div id="pksizeguide-guide{$product.id}" class="tab-pane rte fade in active">
							{$guides[$product.id]->description nofilter}
						</div>
						{/if}
						{if $config.show_global}
							<div id="pksizeguide-global" class="tab-pane rte fade{if empty($guides)} in active{/if}">
								{$config.global.{$language.id}|stripslashes nofilter}
							</div>
						{/if}
						{if $config.show_measure}
							<div id="pksizeguide-how" class="tab-pane rte fade{if empty($guides) && !$config.show_global} in active{/if}">
								{$config.content.{$language.id}|stripslashes nofilter}
							</div>
						{/if}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="pksizeguide-overlay"></div>
Fred 18 May 2022, 12:08
<div id="pksizeguide-show" class="buttons_bottom_block additional_button">
	{l s='Size Guide' d='Modules.Pksizeguide.Shop'}
</div>
Lateliers Ma 18 May 2022, 14:43

Thanks a lot Fred. It's ok now :)

Fred 18 May 2022, 18:58

You are welcome!