View Single Post
  #6  
Old 08-25-2008, 04:18 AM
  Piotr M.'s Avatar 
Piotr M. Piotr M. is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 134
 

Default Re: How can I insert a new option in Store Settings?

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}
__________________
Regards,
Piotr Markushin

X-Cart PDF Catalog Generator NEW
Professional X-Cart Skins Store (7 new skins added in August 2008!)

ahedOffice.com - Web 2.0 Online Groupware
Reply With Quote