Quote:
Originally Posted by am2003
I would like to have in Admin -> Store configuration this check box, placing currency in front or behind the price. You gave me the solution only for the Front-End.
Thanks.
|
Go to
http://www.yoursite.com/xcart/admin/configuration.php?option=Appearance
At the very bottom, inside Miscellaneous section there is this checkbox.
if you want it to be placed directly at
http://www.yoursite.com/xcart/admin/configuration.php
then use this code
Code:
INSERT INTO `xcart_config` (`name`, `comment`, `value`, `category`, `orderby`, `type`, `defvalue`, `variants`, `validation`) VALUES ('currency_sign', 'When checked, shows currency sign before price', 'N', 'General', '4', 'checkbox', 'N', '', '');
And currency.tpl
Code:
{if $plain_text_message eq ""}<span style="WHITE-SPACE: nowrap">{/if}{if $display_sign}{if $value gte 0}+{else}-{/if}{/if}{if $config.General.currency_sign eq "Y"}{$config.General.currency_symbol}{/if}{$value|abs_value|formatprice}{if $config.General.currency_sign ne "Y"}{$config.General.currency_symbol}{/if}{if $plain_text_message eq ""}</span>{/if}