Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Removing Price Brackets for Second Currency on Product Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2011, 08:44 AM
 
hlorenzo hlorenzo is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 4
 

Arrow 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
Reply With Quote
  #2  
Old 05-16-2011, 09:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
Reply With Quote
  #3  
Old 05-16-2011, 10:00 AM
 
hlorenzo hlorenzo is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 4
 

Default 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
Reply With Quote
  #4  
Old 05-16-2011, 06:09 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
Reply With Quote
  #5  
Old 05-16-2011, 08:32 PM
 
hlorenzo hlorenzo is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 4
 

Default 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:
{* $Id: alter_currency_value.tpl,v 1.1.2.1 2010/12/15 11:57:05 aim Exp $ vim: set ts=2 sw=2 sts=2 et: *} {* Use {alter_currency value=..} smarty function for maximal performance *} {strip} {if $alter_currency_value eq ""} {assign var="alter_currency_value" value="0"} {/if} {if $config.General.alter_currency_symbol ne ""} {* ( *} {if $plain_text_message eq ""} <span class="nowrap"> {/if} {alt_currency value=$alter_currency_value rate=$config.General.alter_currency_rate assign="cf_value" display_sign=$display_sign} {assign var="cf_value" value=$cf_value|abs_value|formatprice} {if $tag_id ne "" and $plain_text_message eq ""} {assign var="cf_value" value="<span id=\"`$tag_id`\">`$cf_value`</span>"} {/if} {$config.General.alter_currency_format|replace:"x":$cf_value|replace:"$":$config.General.alter_currency_symbol} {if $plain_text_message eq ""} </span> {/if} {* ) *} {/if} {/strip}
__________________
Version: 4.4.2
Mods: Defaults
Reply With Quote
  #6  
Old 05-17-2011, 03:11 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
Reply With Quote
  #7  
Old 05-17-2011, 08:26 PM
 
hlorenzo hlorenzo is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 4
 

Default 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
Reply With Quote
  #8  
Old 05-18-2011, 04:27 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
Reply With Quote
  #9  
Old 05-18-2011, 05:03 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:10 AM.

   

 
X-Cart forums © 2001-2020