Saphali Woocommerce Russian - Version 1.8.5

Version Description

  • Fix bookly-addon-pro
Download this release

Release Info

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

Code changes from version 1.8.4.1 to 1.8.5

Files changed (2) hide show
  1. readme.txt +4 -1
  2. saphali-woocommerce-lite.php +9 -5
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://money.yandex.ru/to/410011651211340
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: WP 3.3 or higher & WooCommerce 1.6.6 or higher
8
  Tested up to: 5.0
9
- Stable tag: 1.8.4.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -76,6 +76,9 @@ define('SAPHALI_LITE_SYMBOL', 0 );
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.8.4.1 =
80
  * Fix вывода Notice
81
 
6
  Tags: woocommerce, woo commerce russian, russian ruble, ukrainian hryvnia, mod, manadger filds checkout
7
  Requires at least: WP 3.3 or higher & WooCommerce 1.6.6 or higher
8
  Tested up to: 5.0
9
+ Stable tag: 1.8.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
76
 
77
  == Changelog ==
78
 
79
+ = 1.8.5 =
80
+ * Fix при работе с плагином bookly-addon-pro
81
+
82
  = 1.8.4.1 =
83
  * Fix вывода Notice
84
 
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.8.4.1
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  Text Domain: saphali-woocommerce-lite
@@ -35,7 +35,7 @@ WC tested up to: 3.5
35
 
36
  // Подключение валюты и локализации
37
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
38
- define('SAPHALI_LITE_VERSION', '1.8.4.1' );
39
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
40
  class saphali_lite {
41
  var $email_order_id;
@@ -155,7 +155,10 @@ WC tested up to: 3.5
155
  $this->fieldss = get_option('woocommerce_saphali_filds_filters');
156
  $fieldss = $this->fieldss;
157
  $keys = array();
158
- foreach(array('billing', 'shipping') as $type) {
 
 
 
159
  foreach($fieldss[$type] as $key => $value) {
160
  if(isset($value['payment_method'])) {
161
  $pm_k_remove = array();
@@ -670,12 +673,12 @@ WC tested up to: 3.5
670
  } elseif ( !version_compare( WOOCOMMERCE_VERSION, '2.3', '<' ) ) {
671
  include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-autoloader.php' );
672
  $load = new WC_Autoloader();
673
- if(!class_exists('WC_Customer')) $load->autoload( 'WC_Customer' ); $load->autoload( 'WC_Checkout' ); if ( !version_compare( WOOCOMMERCE_VERSION, '2.2', '<' ) ) { include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/abstracts/abstract-wc-session.php' ); include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-session-handler.php' ); $woocommerce->session = new WC_Session_Handler();} else {
674
  $woocommerce->autoload( 'WC_Session' );
675
  $woocommerce->autoload( 'WC_Session_Handler' );
676
  }
677
  } else {
678
- if(!class_exists('WC_Customer')) $woocommerce->autoload( 'WC_Customer' ); $woocommerce->autoload( 'WC_Checkout' ); if ( !version_compare( WOOCOMMERCE_VERSION, '2.2', '<' ) ) { include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.2/','compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/abstracts/abstract-wc-session.php' ); include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.2/','compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-session-handler.php' ); $woocommerce->session = new WC_Session_Handler();} else {
679
  $woocommerce->autoload( 'WC_Session' );
680
  if ( !version_compare( WOOCOMMERCE_VERSION, '2.1', '<' ))
681
  $woocommerce->autoload( 'WC_Session_Handler' );
@@ -683,6 +686,7 @@ WC tested up to: 3.5
683
  }
684
  if(class_exists('WC_Checkout')) {
685
  if(class_exists('WC_Customer')) $woocommerce->customer = new WC_Customer();
 
686
  $f = new WC_Checkout();
687
  }
688
  }
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.8.5
7
  Author: Saphali
8
  Author URI: http://saphali.com/
9
  Text Domain: saphali-woocommerce-lite
35
 
36
  // Подключение валюты и локализации
37
  define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
38
+ define('SAPHALI_LITE_VERSION', '1.8.5' );
39
  define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
40
  class saphali_lite {
41
  var $email_order_id;
155
  $this->fieldss = get_option('woocommerce_saphali_filds_filters');
156
  $fieldss = $this->fieldss;
157
  $keys = array();
158
+ if( !version_compare( WOOCOMMERCE_VERSION, '2.1.0', '<' ) && isset($_POST['ship_to_different_address']) || version_compare( WOOCOMMERCE_VERSION, '2.1.0', '<' ) && !isset($_POST['shiptobilling']) ) {
159
+ $fieldss____ = array('billing', 'shipping');
160
+ } else $fieldss____ = array('billing');
161
+ foreach($fieldss____ as $type) {
162
  foreach($fieldss[$type] as $key => $value) {
163
  if(isset($value['payment_method'])) {
164
  $pm_k_remove = array();
673
  } elseif ( !version_compare( WOOCOMMERCE_VERSION, '2.3', '<' ) ) {
674
  include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-autoloader.php' );
675
  $load = new WC_Autoloader();
676
+ if(!class_exists('WC_Cart')) $load->autoload( 'WC_Cart' );if(!class_exists('WC_Customer')) $load->autoload( 'WC_Customer' ); $load->autoload( 'WC_Checkout' ); if ( !version_compare( WOOCOMMERCE_VERSION, '2.2', '<' ) ) { include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/abstracts/abstract-wc-session.php' ); include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-session-handler.php' ); $woocommerce->session = new WC_Session_Handler();} else {
677
  $woocommerce->autoload( 'WC_Session' );
678
  $woocommerce->autoload( 'WC_Session_Handler' );
679
  }
680
  } else {
681
+ if(!class_exists('WC_Cart')) $woocommerce->autoload( 'WC_Cart' );if(!class_exists('WC_Customer')) $woocommerce->autoload( 'WC_Customer' ); $woocommerce->autoload( 'WC_Checkout' ); if ( !version_compare( WOOCOMMERCE_VERSION, '2.2', '<' ) ) { include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.2/','compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/abstracts/abstract-wc-session.php' ); include_once( WP_PLUGIN_DIR . '/' . str_replace( array('compatability/2.2/','compatability/2.3/', 'compatibility/2.4/'), '', WC()->template_path() ) . 'includes/class-wc-session-handler.php' ); $woocommerce->session = new WC_Session_Handler();} else {
682
  $woocommerce->autoload( 'WC_Session' );
683
  if ( !version_compare( WOOCOMMERCE_VERSION, '2.1', '<' ))
684
  $woocommerce->autoload( 'WC_Session_Handler' );
686
  }
687
  if(class_exists('WC_Checkout')) {
688
  if(class_exists('WC_Customer')) $woocommerce->customer = new WC_Customer();
689
+ if(class_exists('WC_Cart')) $woocommerce->cart = new WC_Cart();
690
  $f = new WC_Checkout();
691
  }
692
  }