Steffen Buschkemper
September 25, 2012, 06:11 PM
Hi @ all,
I have found a little bug in templates/your_template/tpl/controllers/my_packages.tpl
find code @ line 14
<div class="price">{if $pack_info.Price > 0}{$config.system_currency}{$pack_info.Price}{else }{$lang.free}{/if}</div>
and change with the follow
{if $config.system_currency_position == 'before'}
<div class="price">{if $pack_info.Price > 0}{$config.system_currency} {$pack_info.Price}{else}{$lang.free}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div class="price">{if $pack_info.Price > 0}{$pack_info.Price} {$config.system_currency}{else}{$lang.free}{/if}</div>
{/if}
find code @ line 109 (or 118)
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$config.system_currency}{$plan.Price}{else}{$la ng.free}{/if}{/if}</div>
and change with the follow
{if $config.system_currency_position == 'before'}
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$config.system_currency} {$plan.Price}{else}{$lang.free}{/if}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$plan.Price} {$config.system_currency}{else}{$lang.free}{/if}{/if}</div>
{/if}
find code @ line 272
<td valign="top" class="price"><div>{if $package.Price > 0}{$config.system_currency} {$package.Price}{else}{$lang.free}{/if}</div></td>
and change with the follow
<td valign="top" class="price">
{if $config.system_currency_position == 'before'}
<div>{if $package.Price > 0}{$config.system_currency} {$package.Price}{else}{$lang.free}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div>{if $package.Price > 0}{$package.Price} {$config.system_currency} {else}{$lang.free}{/if}</div>
{/if}
</td>
The currency position setting (before, after) now also works for packages.
Best regards
Steffen
I have found a little bug in templates/your_template/tpl/controllers/my_packages.tpl
find code @ line 14
<div class="price">{if $pack_info.Price > 0}{$config.system_currency}{$pack_info.Price}{else }{$lang.free}{/if}</div>
and change with the follow
{if $config.system_currency_position == 'before'}
<div class="price">{if $pack_info.Price > 0}{$config.system_currency} {$pack_info.Price}{else}{$lang.free}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div class="price">{if $pack_info.Price > 0}{$pack_info.Price} {$config.system_currency}{else}{$lang.free}{/if}</div>
{/if}
find code @ line 109 (or 118)
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$config.system_currency}{$plan.Price}{else}{$la ng.free}{/if}{/if}</div>
and change with the follow
{if $config.system_currency_position == 'before'}
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$config.system_currency} {$plan.Price}{else}{$lang.free}{/if}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div class="price">{if isset($plan.Listings_remains)}→{else}{if $plan.Price > 0}{$plan.Price} {$config.system_currency}{else}{$lang.free}{/if}{/if}</div>
{/if}
find code @ line 272
<td valign="top" class="price"><div>{if $package.Price > 0}{$config.system_currency} {$package.Price}{else}{$lang.free}{/if}</div></td>
and change with the follow
<td valign="top" class="price">
{if $config.system_currency_position == 'before'}
<div>{if $package.Price > 0}{$config.system_currency} {$package.Price}{else}{$lang.free}{/if}</div>
{/if}
{if $config.system_currency_position == 'after'}
<div>{if $package.Price > 0}{$package.Price} {$config.system_currency} {else}{$lang.free}{/if}</div>
{/if}
</td>
The currency position setting (before, after) now also works for packages.
Best regards
Steffen