Version Description
*
Download this release
Release Info
Developer | Saphali |
Plugin | Saphali Woocommerce Russian |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.0 to 1.8.1
- readme.txt +4 -1
- saphali-woocommerce-lite.php +7 -7
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: 4.9
|
9 |
-
Stable tag: 1.8.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -73,6 +73,9 @@ define('SAPHALI_LITE_SYMBOL', 0 );
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
76 |
= 1.8.0 =
|
77 |
* Добавлен функционал, который позволяет соотнести поле к методам доставки. Напр., будет полезно, если некоторые поля не требуется выводить при оплате каким-то методом доставки, но нужны в каком-то другом методе доставки.
|
78 |
|
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: 4.9
|
9 |
+
Stable tag: 1.8.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.8.1 =
|
77 |
+
* Небольшие правки
|
78 |
+
|
79 |
= 1.8.0 =
|
80 |
* Добавлен функционал, который позволяет соотнести поле к методам доставки. Напр., будет полезно, если некоторые поля не требуется выводить при оплате каким-то методом доставки, но нужны в каком-то другом методе доставки.
|
81 |
|
saphali-woocommerce-lite.php
CHANGED
@@ -3,13 +3,13 @@
|
|
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.
|
7 |
Author: Saphali
|
8 |
Author URI: http://saphali.com/
|
9 |
Text Domain: saphali-woocommerce-lite
|
10 |
Domain Path: /languages
|
11 |
WC requires at least: 1.6.6
|
12 |
-
WC tested up to: 3.2.
|
13 |
*/
|
14 |
|
15 |
|
@@ -35,7 +35,7 @@ WC tested up to: 3.2.5
|
|
35 |
|
36 |
// Подключение валюты и локализации
|
37 |
define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
|
38 |
-
define('SAPHALI_LITE_VERSION', '1.8.
|
39 |
define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
|
40 |
class saphali_lite {
|
41 |
var $email_order_id;
|
@@ -320,7 +320,7 @@ WC tested up to: 3.2.5
|
|
320 |
});
|
321 |
}
|
322 |
function corect_shipping_method_filds () {
|
323 |
-
var selected_s_method = jQuery("input.shipping_method:checked, input.shipping_method[type=\"hidden\"], select.shipping_method").val().split(":")[0];
|
324 |
jQuery.each($skeys, function(i,e){
|
325 |
if( jQuery.inArray( selected_s_method, e ) >= 0 ) {
|
326 |
jQuery("#" + i + "_field").show('slow');
|
@@ -511,10 +511,10 @@ WC tested up to: 3.2.5
|
|
511 |
foreach($fieldss as $_k => $_v) {
|
512 |
$_fieldss[$_k] = $_v;
|
513 |
if(isset($_v['label'])) {
|
514 |
-
$_fieldss[$_k] = __( $_v['label'], 'woocommerce');
|
515 |
}
|
516 |
if(isset($_v['placeholder'])) {
|
517 |
-
$_fieldss[$_k] = __( $_v['placeholder'], 'woocommerce');
|
518 |
}
|
519 |
}
|
520 |
$locale = $_fieldss;
|
@@ -1909,7 +1909,7 @@ function saphali_woo_lite_install() {
|
|
1909 |
}
|
1910 |
update_option('woocommerce_saphali_filds_locate',$locate);
|
1911 |
}
|
1912 |
-
//
|
1913 |
//global $woocommerce;
|
1914 |
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.mo', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.mo');
|
1915 |
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.po', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.po');
|
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.1
|
7 |
Author: Saphali
|
8 |
Author URI: http://saphali.com/
|
9 |
Text Domain: saphali-woocommerce-lite
|
10 |
Domain Path: /languages
|
11 |
WC requires at least: 1.6.6
|
12 |
+
WC tested up to: 3.2.6
|
13 |
*/
|
14 |
|
15 |
|
35 |
|
36 |
// Подключение валюты и локализации
|
37 |
define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
|
38 |
+
define('SAPHALI_LITE_VERSION', '1.8.1' );
|
39 |
define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
|
40 |
class saphali_lite {
|
41 |
var $email_order_id;
|
320 |
});
|
321 |
}
|
322 |
function corect_shipping_method_filds () {
|
323 |
+
var selected_s_method = typeof jQuery("input.shipping_method:checked, input.shipping_method[type=\"hidden\"], select.shipping_method").val() != 'undefined' ? jQuery("input.shipping_method:checked, input.shipping_method[type=\"hidden\"], select.shipping_method").val().split(":")[0] : '';
|
324 |
jQuery.each($skeys, function(i,e){
|
325 |
if( jQuery.inArray( selected_s_method, e ) >= 0 ) {
|
326 |
jQuery("#" + i + "_field").show('slow');
|
511 |
foreach($fieldss as $_k => $_v) {
|
512 |
$_fieldss[$_k] = $_v;
|
513 |
if(isset($_v['label'])) {
|
514 |
+
$_fieldss[$_k]['label'] = __( $_v['label'], 'woocommerce');
|
515 |
}
|
516 |
if(isset($_v['placeholder'])) {
|
517 |
+
$_fieldss[$_k]['placeholder'] = __( $_v['placeholder'], 'woocommerce');
|
518 |
}
|
519 |
}
|
520 |
$locale = $_fieldss;
|
1909 |
}
|
1910 |
update_option('woocommerce_saphali_filds_locate',$locate);
|
1911 |
}
|
1912 |
+
//update_option('woocommerce_informal_localisation_type' , 'yes');
|
1913 |
//global $woocommerce;
|
1914 |
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.mo', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.mo');
|
1915 |
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.po', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.po');
|