Plugin Directory

Changeset 510803


Ignore:
Timestamp:
02/26/2012 08:41:46 PM (14 years ago)
Author:
beshkin
Message:

tagging version 0.4.5

Location:
e-commerce-multi-currency-support
Files:
1 deleted
2 edited
13 copied

Legend:

Unmodified
Added
Removed
  • e-commerce-multi-currency-support/tags/0.4.5/readme.txt

    r510492 r510803  
    44Requires at least: 2.9
    55Tested up to: 3.1.1
    6 Stable tag: 0.4.4
     6Stable tag: 0.4.5
    77
    88
     
    1717
    1818== Changelog ==
     19= 0.4.5 =
     20- now currency is changed in shopping cart as well.
    1921= 0.4.4 =
    2022- additional fix for currency symbols
  • e-commerce-multi-currency-support/tags/0.4.5/wpsc-currency-changer.php

    r510492 r510803  
    44Plugin URI: http://misha.beshkin.lv
    55Description: 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.4
     6Version: 0.4.5
    77Author: Misha Beshkin
    88Author URI: http://misha.beshkin.lv
     
    8585        {
    8686            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));
    8995    $totalpre = (float)$totalpre1;
    9096    $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);
    9298    $total = str_replace($totalpre1, $total_converted , $total);
    9399
     
    95101           }
    96102        }
    97     return $total;//.$totalpre.$totalpre1.$total_converted;
     103    return $total;
    98104}
    99105
  • e-commerce-multi-currency-support/trunk/readme.txt

    r510492 r510803  
    44Requires at least: 2.9
    55Tested up to: 3.1.1
    6 Stable tag: 0.4.4
     6Stable tag: 0.4.5
    77
    88
     
    1717
    1818== Changelog ==
     19= 0.4.5 =
     20- now currency is changed in shopping cart as well.
    1921= 0.4.4 =
    2022- additional fix for currency symbols
  • e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php

    r510492 r510803  
    44Plugin URI: http://misha.beshkin.lv
    55Description: 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.4
     6Version: 0.4.5
    77Author: Misha Beshkin
    88Author URI: http://misha.beshkin.lv
     
    8585        {
    8686            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));
    8995    $totalpre = (float)$totalpre1;
    9096    $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);
    9298    $total = str_replace($totalpre1, $total_converted , $total);
    9399
     
    95101           }
    96102        }
    97     return $total;//.$totalpre.$totalpre1.$total_converted;
     103    return $total;
    98104}
    99105
Note: See TracChangeset for help on using the changeset viewer.