Changeset 498347
- Timestamp:
- 02/01/2012 05:46:22 AM (14 years ago)
- Location:
- e-commerce-multi-currency-support
- Files:
-
- 3 edited
- 8 copied
-
tags/0.3 (copied) (copied from e-commerce-multi-currency-support/trunk)
-
tags/0.3/js-css (copied) (copied from e-commerce-multi-currency-support/trunk/js-css)
-
tags/0.3/js-css/currency.js (copied) (copied from e-commerce-multi-currency-support/trunk/js-css/currency.js)
-
tags/0.3/license.txt (copied) (copied from e-commerce-multi-currency-support/trunk/license.txt)
-
tags/0.3/readme.txt (copied) (copied from e-commerce-multi-currency-support/trunk/readme.txt) (1 diff)
-
tags/0.3/widgets (copied) (copied from e-commerce-multi-currency-support/trunk/widgets)
-
tags/0.3/widgets/currency_chooser_widget.php (copied) (copied from e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php) (1 diff)
-
tags/0.3/wpsc-currency-changer.php (copied) (copied from e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/widgets/currency_chooser_widget.php (modified) (1 diff)
-
trunk/wpsc-currency-changer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
e-commerce-multi-currency-support/tags/0.3/readme.txt
r490468 r498347 17 17 18 18 == Changelog == 19 = 0.3 = 20 - Base currency is selected by default in drop-down currency selector 19 21 = 0.2 = 20 22 - currency code can appear now in the selector drop-down -
e-commerce-multi-currency-support/tags/0.3/widgets/currency_chooser_widget.php
r490468 r498347 23 23 //Display Currency Info: 24 24 $sql ="SELECT * FROM `".WPSC_TABLE_CURRENCY_LIST."` WHERE `visible`='1' ORDER BY `country` ASC"; 25 //echo $ sql;25 //echo $_SESSION['wpsc_base_currency_code']; 26 26 $countries = $wpdb->get_results($sql, ARRAY_A); 27 27 $output .= '<form method="post" action="" id="wpsc-mcs-widget-form">'; 28 28 $output .='<select name="currency_option" style="width:200px;">'; 29 if (!isset($_SESSION['wpsc_base_currency_code'])) 30 { 31 $currency_code = $wpdb->get_results("SELECT `code` FROM `".WPSC_TABLE_CURRENCY_LIST."` WHERE `id`='".get_option('currency_type')."' LIMIT 1",ARRAY_A); 32 $local_currency_code = $currency_code[0]['code']; 33 }else{ 34 $local_currency_code=$_SESSION['wpsc_base_currency_code']; 35 } 29 36 foreach($countries as $country){ 30 37 $country_code = ''; 31 38 if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")"; 39 $selected_code = ''; 32 40 if($_SESSION['wpsc_currency_code'] == $country['id']){ 33 $output .="<option selected='selected' value=".$country['id'].">".$country['country'].$country_code."</option>"; 34 }else{ 35 $output .="<option value=".$country['id'].">".$country['country'].$country_code."</option>"; 36 } 41 $selected_code = "selected='selected'"; 42 }else { 43 if ( $local_currency_code == $country['code']) 44 $selected_code = "selected='selected'"; 45 } 46 $output .="<option ".$selected_code." value=".$country['id'].">".$country['country'].$country_code."</option>"; 47 37 48 } 38 49 $output .="</select><br />"; -
e-commerce-multi-currency-support/tags/0.3/wpsc-currency-changer.php
r490468 r498347 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. 26 Version: 0.3 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv -
e-commerce-multi-currency-support/trunk/readme.txt
r490468 r498347 17 17 18 18 == Changelog == 19 = 0.3 = 20 - Base currency is selected by default in drop-down currency selector 19 21 = 0.2 = 20 22 - currency code can appear now in the selector drop-down -
e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php
r490468 r498347 23 23 //Display Currency Info: 24 24 $sql ="SELECT * FROM `".WPSC_TABLE_CURRENCY_LIST."` WHERE `visible`='1' ORDER BY `country` ASC"; 25 //echo $ sql;25 //echo $_SESSION['wpsc_base_currency_code']; 26 26 $countries = $wpdb->get_results($sql, ARRAY_A); 27 27 $output .= '<form method="post" action="" id="wpsc-mcs-widget-form">'; 28 28 $output .='<select name="currency_option" style="width:200px;">'; 29 if (!isset($_SESSION['wpsc_base_currency_code'])) 30 { 31 $currency_code = $wpdb->get_results("SELECT `code` FROM `".WPSC_TABLE_CURRENCY_LIST."` WHERE `id`='".get_option('currency_type')."' LIMIT 1",ARRAY_A); 32 $local_currency_code = $currency_code[0]['code']; 33 }else{ 34 $local_currency_code=$_SESSION['wpsc_base_currency_code']; 35 } 29 36 foreach($countries as $country){ 30 37 $country_code = ''; 31 38 if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")"; 39 $selected_code = ''; 32 40 if($_SESSION['wpsc_currency_code'] == $country['id']){ 33 $output .="<option selected='selected' value=".$country['id'].">".$country['country'].$country_code."</option>"; 34 }else{ 35 $output .="<option value=".$country['id'].">".$country['country'].$country_code."</option>"; 36 } 41 $selected_code = "selected='selected'"; 42 }else { 43 if ( $local_currency_code == $country['code']) 44 $selected_code = "selected='selected'"; 45 } 46 $output .="<option ".$selected_code." value=".$country['id'].">".$country['country'].$country_code."</option>"; 47 37 48 } 38 49 $output .="</select><br />"; -
e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php
r490468 r498347 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. 26 Version: 0.3 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv
Note: See TracChangeset
for help on using the changeset viewer.