Saphali Woocommerce Russian - Version 1.3.6.2

Version Description

  • ( ) .
Download this release

Release Info

Developer Saphali
Plugin Icon wp plugin Saphali Woocommerce Russian
Version 1.3.6.2
Comparing to
See all releases

Code changes from version 1.3.6.1 to 1.3.6.2

Files changed (2) hide show
  1. readme.txt +5 -2
  2. saphali-woocommerce-lite.php +9 -6
readme.txt CHANGED
@@ -6,8 +6,8 @@ Donate link: http://saphali.com/
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: 3.3 or higher
8
  Tested up to: 3.6.1
9
- Stable tag: 1.3.6.1
10
- Version: 1.3.6.1
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -62,6 +62,9 @@ QIWI, Приват24, LiqPay, WebMoney, Яндекс.Деньги, Интерк
62
 
63
  == Changelog ==
64
 
 
 
 
65
  = 1.3.6.1 =
66
  * Исправлена ошибка отображения дополнительных полей заполненных покупателем (в письме и в заказе).
67
 
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: 3.3 or higher
8
  Tested up to: 3.6.1
9
+ Stable tag: 1.3.6.2
10
+ Version: 1.3.6.2
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
62
 
63
  == Changelog ==
64
 
65
+ = 1.3.6.2 =
66
+ * Повышение приоритета знака валюты по Лебедеву (для рубля) над встроенным.
67
+
68
  = 1.3.6.1 =
69
  * Исправлена ошибка отображения дополнительных полей заполненных покупателем (в письме и в заказе).
70
 
saphali-woocommerce-lite.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Saphali Woocommerce Russian
4
  Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
5
  Description: Saphali Woocommerce Russian - это бесплатный вордпресс плагин, который добавляет набор дополнений к интернет-магазину на Woocommerce.
6
- Version: 1.3.6.1
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  */
@@ -30,6 +30,7 @@ Author URI: http://saphali.com/
30
  ------------------------------------------------------------ */
31
  // Подключение валюты и локализации
32
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
 
33
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
34
  class saphali_lite {
35
  var $email_order_id;
@@ -50,7 +51,7 @@ Author URI: http://saphali.com/
50
  add_action( 'woocommerce_order_status_failed_to_completed_notification', array( &$this, 'store_order_id' ), 1 );
51
  add_action( 'woocommerce_order_status_completed_notification', array( &$this, 'store_order_id' ), 1 );
52
  add_action( 'woocommerce_new_customer_note_notification', array( &$this, 'store_order_id' ), 1 );
53
-
54
  add_filter( 'woocommerce_order_formatted_billing_address', array($this,'formatted_billing_address') , 10 , 2);
55
  add_filter( 'woocommerce_order_formatted_shipping_address', array($this,'formatted_shipping_address') , 10 , 2);
56
 
@@ -66,11 +67,13 @@ Author URI: http://saphali.com/
66
  add_action( 'woocommerce_admin_order_data_after_shipping_address', array($this,'woocommerce_admin_order_data_after_shipping_address_s') );
67
  add_action( 'woocommerce_admin_order_data_after_order_details', array($this,'woocommerce_admin_order_data_after_order_details_s') );
68
 
69
- add_filter( 'woocommerce_currencies', array($this,'add_inr_currency') );
70
- add_filter( 'woocommerce_currency_symbol', array($this,'add_inr_currency_symbol') );
71
  }
72
  }
73
-
 
 
74
  function woocommerce_customer_meta_fields_action() {
75
  add_action( 'show_user_profile', array($this,'woocommerce_customer_meta_fields_s') );
76
  add_action( 'edit_user_profile', array($this,'woocommerce_customer_meta_fields_s') );
@@ -129,7 +132,7 @@ Author URI: http://saphali.com/
129
  return $currencies;
130
  }
131
  function add_inr_currency_symbol( $symbol ) {
132
- if(!$symbol)
133
  $currency = get_option( 'woocommerce_currency' );
134
  if(isset($currency)) {
135
  switch( $currency ) {
3
  Plugin Name: Saphali Woocommerce Russian
4
  Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
5
  Description: Saphali Woocommerce Russian - это бесплатный вордпресс плагин, который добавляет набор дополнений к интернет-магазину на Woocommerce.
6
+ Version: 1.3.6.2
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  */
30
  ------------------------------------------------------------ */
31
  // Подключение валюты и локализации
32
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
33
+ define('SAPHALI_LITE_VERSION', '1.3.6.2' );
34
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
35
  class saphali_lite {
36
  var $email_order_id;
51
  add_action( 'woocommerce_order_status_failed_to_completed_notification', array( &$this, 'store_order_id' ), 1 );
52
  add_action( 'woocommerce_order_status_completed_notification', array( &$this, 'store_order_id' ), 1 );
53
  add_action( 'woocommerce_new_customer_note_notification', array( &$this, 'store_order_id' ), 1 );
54
+ add_action( 'wp_head', array( $this, 'generator' ) );
55
  add_filter( 'woocommerce_order_formatted_billing_address', array($this,'formatted_billing_address') , 10 , 2);
56
  add_filter( 'woocommerce_order_formatted_shipping_address', array($this,'formatted_shipping_address') , 10 , 2);
57
 
67
  add_action( 'woocommerce_admin_order_data_after_shipping_address', array($this,'woocommerce_admin_order_data_after_shipping_address_s') );
68
  add_action( 'woocommerce_admin_order_data_after_order_details', array($this,'woocommerce_admin_order_data_after_order_details_s') );
69
 
70
+ add_filter( 'woocommerce_currencies', array($this,'add_inr_currency') , 11);
71
+ add_filter( 'woocommerce_currency_symbol', array($this,'add_inr_currency_symbol') , 11 );
72
  }
73
  }
74
+ public function generator() {
75
+ echo "\n\n" . '<!-- Saphali Lite Version -->' . "\n" . '<meta name="generator" content="Saphali Lite ' . esc_attr( SAPHALI_LITE_VERSION ) . '" />' . "\n\n";
76
+ }
77
  function woocommerce_customer_meta_fields_action() {
78
  add_action( 'show_user_profile', array($this,'woocommerce_customer_meta_fields_s') );
79
  add_action( 'edit_user_profile', array($this,'woocommerce_customer_meta_fields_s') );
132
  return $currencies;
133
  }
134
  function add_inr_currency_symbol( $symbol ) {
135
+
136
  $currency = get_option( 'woocommerce_currency' );
137
  if(isset($currency)) {
138
  switch( $currency ) {