| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Removing Price Brackets for Second Currency on Product Page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Removing Price Brackets for Second Currency on Product Page
Hi All,
I've been struggling with this for a few days and cannot figure out the solution. I found this thread - Price Brackets - and I did the steps mentioned there, and went into the file skin/common_files/customer/main/alter_currency_value.tpl i also, did it in this file too common_files_client/customer/main/alter_currency_value.tpl and then i edited it so the ( and ) were like <!-- ( --> and <!-- ) --> but the price is still showing up with brackets. any ideas? thanks, matt
__________________
Version: 4.4.2 Mods: Defaults |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Removing Price Brackets for Second Currency on Product Page
First - comment it out by using smarty comments {* *}, not html comments
Second - you may need to run yourdomain/cleanup.php to see the changes
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Removing Price Brackets for Second Currency on Product Page
Hey Steve,
Thanks for the reply. I did what you suggested but it's still not working. Do i have to edit the file in common_files_client as well? I ran the cleanup and refreshed the product page, but I am still seeing the ( ) around the secondary price. thanks! matt
__________________
Version: 4.4.2 Mods: Defaults |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Removing Price Brackets for Second Currency on Product Page
You need to make the change in the file under the skin you are using
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
Re: Removing Price Brackets for Second Currency on Product Page
Hm. Okay, I copied the file
cp skin/common_files/customer/main/alter_currency_value.tpl skin/MYTHEME/customer/main/ and then ran cleanup.php but still see the brackets. complete file is; Code:
__________________
Version: 4.4.2 Mods: Defaults |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Removing Price Brackets for Second Currency on Product Page
Then maybe you are not modifying the correct file. Use the webmaster to find out which file exactly to modify
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
Re: Removing Price Brackets for Second Currency on Product Page
Thanks, I had already tried that but didn't help.
I did however find it with hours and hours of sleuthing. It's in this file. include/templater/plugins/function.alter_currency.php I just changed the $result = "("; to blank, and same for the end $result too. and done. !! thanks for the help! hope this helps someone else on 4.4.x
__________________
Version: 4.4.2 Mods: Defaults |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Removing Price Brackets for Second Currency on Product Page
This has to be new in 4.4.x, it was the template file before. They started hard coding in php files so much code lately... Not good
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Removing Price Brackets for Second Currency on Product Page
Maybe they have a strong reason putting the brackets inside of a php file. In the past, I did not see the brackets inside the tpl file too. This could be a reason. Anyway, the script can be changed, and the brackets can be replaced easy directly in Admin. If empty no brackets, just a text input box.
__________________
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
|