Changeset 510803
- Timestamp:
- 02/26/2012 08:41:46 PM (14 years ago)
- Location:
- e-commerce-multi-currency-support
- Files:
-
- 1 deleted
- 2 edited
- 13 copied
-
tags/0.4.5 (copied) (copied from e-commerce-multi-currency-support/trunk)
-
tags/0.4.5/js-css (copied) (copied from e-commerce-multi-currency-support/trunk/js-css)
-
tags/0.4.5/js-css/currency.js (copied) (copied from e-commerce-multi-currency-support/trunk/js-css/currency.js)
-
tags/0.4.5/license.txt (copied) (copied from e-commerce-multi-currency-support/trunk/license.txt)
-
tags/0.4.5/localization (copied) (copied from e-commerce-multi-currency-support/trunk/localization)
-
tags/0.4.5/localization/currency-changer-ru_RU.po (copied) (copied from e-commerce-multi-currency-support/trunk/localization/currency-changer-ru_RU.po)
-
tags/0.4.5/localization/currency-changer-xx_XX.pot (copied) (copied from e-commerce-multi-currency-support/trunk/localization/currency-changer-xx_XX.pot)
-
tags/0.4.5/localization/wpsc-ru_RU.mo (deleted)
-
tags/0.4.5/localization/wpscmcs-ru_RU.mo (copied) (copied from e-commerce-multi-currency-support/trunk/localization/wpscmcs-ru_RU.mo)
-
tags/0.4.5/localization/wpscmcs-ru_RU.po (copied) (copied from e-commerce-multi-currency-support/trunk/localization/wpscmcs-ru_RU.po)
-
tags/0.4.5/readme.txt (copied) (copied from e-commerce-multi-currency-support/trunk/readme.txt) (2 diffs)
-
tags/0.4.5/widgets (copied) (copied from e-commerce-multi-currency-support/trunk/widgets)
-
tags/0.4.5/widgets/currency_chooser_widget.php (copied) (copied from e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php)
-
tags/0.4.5/wpsc-currency-changer.php (copied) (copied from e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpsc-currency-changer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
e-commerce-multi-currency-support/tags/0.4.5/readme.txt
r510492 r510803 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.4. 46 Stable tag: 0.4.5 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.4.5 = 20 - now currency is changed in shopping cart as well. 19 21 = 0.4.4 = 20 22 - additional fix for currency symbols -
e-commerce-multi-currency-support/tags/0.4.5/wpsc-currency-changer.php
r510492 r510803 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.4. 46 Version: 0.4.5 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv … … 85 85 { 86 86 if($wpsc_cart->use_currency_converter){ 87 88 $totalpre1 = trim(preg_replace("/([^0-9\\.])/i", "",$total)); 87 $total1 = $total; 88 if (preg_match('/<.*/',$total)) 89 { 90 91 $total1 = trim(preg_replace('/.*>(.*)<.*/',"$1",$total)); 92 $total1 = preg_replace('/\&\#(036|8364)\;/','',$total1); 93 } 94 $totalpre1 = trim(preg_replace("/([^0-9\\.])/i", "",$total1)); 89 95 $totalpre = (float)$totalpre1; 90 96 $total_converted = number_format($totalpre * $wpsc_cart->currency_conversion, 2, '.', ''); 91 $total = preg_replace('/([A-Z]{3}|[$€] )/', $wpsc_cart->selected_currency_code, $total);97 $total = preg_replace('/([A-Z]{3}|[$€]|\&\#(036|8364)\;)/', $wpsc_cart->selected_currency_code, $total); 92 98 $total = str_replace($totalpre1, $total_converted , $total); 93 99 … … 95 101 } 96 102 } 97 return $total; //.$totalpre.$totalpre1.$total_converted;103 return $total; 98 104 } 99 105 -
e-commerce-multi-currency-support/trunk/readme.txt
r510492 r510803 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.4. 46 Stable tag: 0.4.5 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.4.5 = 20 - now currency is changed in shopping cart as well. 19 21 = 0.4.4 = 20 22 - additional fix for currency symbols -
e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php
r510492 r510803 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.4. 46 Version: 0.4.5 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv … … 85 85 { 86 86 if($wpsc_cart->use_currency_converter){ 87 88 $totalpre1 = trim(preg_replace("/([^0-9\\.])/i", "",$total)); 87 $total1 = $total; 88 if (preg_match('/<.*/',$total)) 89 { 90 91 $total1 = trim(preg_replace('/.*>(.*)<.*/',"$1",$total)); 92 $total1 = preg_replace('/\&\#(036|8364)\;/','',$total1); 93 } 94 $totalpre1 = trim(preg_replace("/([^0-9\\.])/i", "",$total1)); 89 95 $totalpre = (float)$totalpre1; 90 96 $total_converted = number_format($totalpre * $wpsc_cart->currency_conversion, 2, '.', ''); 91 $total = preg_replace('/([A-Z]{3}|[$€] )/', $wpsc_cart->selected_currency_code, $total);97 $total = preg_replace('/([A-Z]{3}|[$€]|\&\#(036|8364)\;)/', $wpsc_cart->selected_currency_code, $total); 92 98 $total = str_replace($totalpre1, $total_converted , $total); 93 99 … … 95 101 } 96 102 } 97 return $total; //.$totalpre.$totalpre1.$total_converted;103 return $total; 98 104 } 99 105
Note: See TracChangeset
for help on using the changeset viewer.