| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How can I insert a new option in Store Settings? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
How can I insert a new option in Store Settings?
Hello Guys,
I would like to insert a new option in Store Settings. A check box for placing the currency in front or behind the price. By default to be in front of the price. I know I should insert inside the database a new paramenter and use it with currency template. But how can I do that? Thanks
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
You just need to run this SQL query
Code:
Now you have this option in appearance section at the very bottom of page. And here is currency.tpl Code:
__________________
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 |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
Great job.
1. Now, how can I do this for Admin section? Inserting the check box and process the form? 2. How can I make a patch for adding easy this option to my shop? Thanks.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
You should just go to Admin backoffice, Path/Upgrade section.
At the section Apply SQL patch insert the code I've posted and press apply button. That's all.
__________________
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 |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
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.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
Quote:
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:
And currency.tpl Code:
__________________
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 |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: How can I insert a new option in Store Settings?
Thanks this example give me a lot of idea about inserting new features.
Cheers
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|