Version Description
- , ,
Download this release
Release Info
Developer | Saphali |
Plugin | Saphali Woocommerce Russian |
Version | 1.3.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.8.1
- languages/woocommerce-ru_RU.mo +0 -0
- languages/woocommerce-ru_RU.po +7 -6
- readme.txt +9 -6
- saphali-woocommerce-lite.php +32 -20
languages/woocommerce-ru_RU.mo
CHANGED
Binary file
|
languages/woocommerce-ru_RU.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: WooCommerce theme v1.0.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -1677,7 +1677,7 @@ msgstr "Заказ: %s"
|
|
1677 |
msgid ""
|
1678 |
"Hi there. Your recent order on %s has been completed. Your order details are "
|
1679 |
"shown below for your reference:"
|
1680 |
-
msgstr "
|
1681 |
|
1682 |
# @ woocommerce
|
1683 |
#: templates/emails/customer-invoice.php:16
|
@@ -2786,8 +2786,8 @@ msgid ""
|
|
2786 |
"your website is powered by one of the most powerful and stable eCommerce "
|
2787 |
"plugins available."
|
2788 |
msgstr ""
|
2789 |
-
"Вы будете рады узнать, что WooCommerce была проверена и сертифицирована
|
2790 |
-
"
|
2791 |
"понять объем работы, который вошел в этот аудит, будьте уверены, что ваш "
|
2792 |
"сайт работает на одном из самых мощных и стабильных электронной коммерции "
|
2793 |
"плагине."
|
@@ -2803,8 +2803,9 @@ msgid ""
|
|
2803 |
"We have revised the product data panel making it cleaner, more streamlined, "
|
2804 |
"and more logical. Adding products is a breeze!"
|
2805 |
msgstr ""
|
2806 |
-
"Мы пересмотрели панели Информация о продукте
|
2807 |
-
"
|
|
|
2808 |
|
2809 |
# @ woocommerce
|
2810 |
#: admin/includes/welcome.php:199
|
3 |
"Project-Id-Version: WooCommerce theme v1.0.0\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2013-12-05 17:28+0200\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
1677 |
msgid ""
|
1678 |
"Hi there. Your recent order on %s has been completed. Your order details are "
|
1679 |
"shown below for your reference:"
|
1680 |
+
msgstr "Здравствуйте. Ваш заказ %s выполнен. Информация о нем ниже:"
|
1681 |
|
1682 |
# @ woocommerce
|
1683 |
#: templates/emails/customer-invoice.php:16
|
2786 |
"your website is powered by one of the most powerful and stable eCommerce "
|
2787 |
"plugins available."
|
2788 |
msgstr ""
|
2789 |
+
"Вы будете рады узнать, что WooCommerce была проверена и сертифицирована "
|
2790 |
+
"командой Sucuri Security. Хотя не так много было видно визуально, чтобы "
|
2791 |
"понять объем работы, который вошел в этот аудит, будьте уверены, что ваш "
|
2792 |
"сайт работает на одном из самых мощных и стабильных электронной коммерции "
|
2793 |
"плагине."
|
2803 |
"We have revised the product data panel making it cleaner, more streamlined, "
|
2804 |
"and more logical. Adding products is a breeze!"
|
2805 |
msgstr ""
|
2806 |
+
"Мы пересмотрели вкладки в панели 'Информация о продукте', и теперь "
|
2807 |
+
"составляющие вкладок чище, более рациональные и более логичные при "
|
2808 |
+
"редактировании товара. Быстрое добавление продуктов!"
|
2809 |
|
2810 |
# @ woocommerce
|
2811 |
#: admin/includes/welcome.php:199
|
readme.txt
CHANGED
@@ -5,9 +5,9 @@ Plugin URI: http://saphali.com/saphali-woocommerce-plugin-wordpress
|
|
5 |
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.
|
9 |
-
Stable tag: 1.3.8
|
10 |
-
Version: 1.3.8
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -21,15 +21,15 @@ WooCommerce Russian! WooCommerce по-русски!
|
|
21 |
|
22 |
= Интегрирует в магазин: =
|
23 |
* Русский интерфейс
|
24 |
-
* Валюты СНГ - Российский рубль (RUB), Украинскую гривну (UAH), Белорусский рубль (руб.), Armenian dram (Դրամ), Киргизский сом (сом) и Казахстанский тенге (тңг)
|
25 |
* Возможность настроить заказную форму для оформления заказа
|
26 |
* Управление количеством колонок в каталоге
|
27 |
|
28 |
= Особенности =
|
29 |
|
30 |
* Улучшенная русская локализация Woocommerce (более полная поддержка русского языка).
|
31 |
-
* В общий список валют добавлены — Украинская гривна (грн.), Русский рубль (руб.), Белорусский рубль (руб.), Armenian dram (Դրամ), Киргизский сом (сом) и Казахстанский тенге (тңг)
|
32 |
-
* Управление полями на странице оформления заказа и на странице профиля. Функция позволяет настроить заказную форму для оформления заказа. Можно сделать некоторые поля необязательными при
|
33 |
* Управление количеством колонок в каталоге товаров (Магазин) и категориях.
|
34 |
* Плагин создан с целью упростить разработку интернет-магазинов для российского рынка.
|
35 |
* Плагин не изменяет оригинальные файлы Woocommerce, вы можете обновлять плагин Woocommerce, каждый раз при появлении новых версий!
|
@@ -62,6 +62,9 @@ QIWI, Приват24, LiqPay, WebMoney, Яндекс.Деньги, Интерк
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
|
|
|
|
|
|
65 |
= 1.3.8 =
|
66 |
* Добавлен узбекский сум
|
67 |
|
5 |
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.7.1
|
9 |
+
Stable tag: 1.3.8.1
|
10 |
+
Version: 1.3.8.1
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
21 |
|
22 |
= Интегрирует в магазин: =
|
23 |
* Русский интерфейс
|
24 |
+
* Валюты СНГ - Российский рубль (RUB), Украинскую гривну (UAH), Белорусский рубль (руб.), Armenian dram (Դրամ), Киргизский сом (сом) и Казахстанский тенге (тңг), Узбекский сум
|
25 |
* Возможность настроить заказную форму для оформления заказа
|
26 |
* Управление количеством колонок в каталоге
|
27 |
|
28 |
= Особенности =
|
29 |
|
30 |
* Улучшенная русская локализация Woocommerce (более полная поддержка русского языка).
|
31 |
+
* В общий список валют добавлены — Украинская гривна (грн.), Русский рубль (руб.), Белорусский рубль (руб.), Armenian dram (Դրամ), Киргизский сом (сом) и Казахстанский тенге (тңг), Узбекский сум
|
32 |
+
* Управление полями на странице оформления заказа и на странице профиля. Функция позволяет настроить заказную форму для оформления заказа. Можно сделать некоторые поля необязательными при оформлении заказа или удалить их полностью, тем самым упростить оформления заказа. Также можно добавить свои специальные поля.
|
33 |
* Управление количеством колонок в каталоге товаров (Магазин) и категориях.
|
34 |
* Плагин создан с целью упростить разработку интернет-магазинов для российского рынка.
|
35 |
* Плагин не изменяет оригинальные файлы Woocommerce, вы можете обновлять плагин Woocommerce, каждый раз при появлении новых версий!
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 1.3.8.1 =
|
66 |
+
* Поля, которые имеют пустые заголовки не выводятся в письме, в заказах
|
67 |
+
|
68 |
= 1.3.8 =
|
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.8
|
7 |
Author: Saphali
|
8 |
Author URI: http://saphali.com/
|
9 |
*/
|
@@ -30,14 +30,14 @@ Author URI: http://saphali.com/
|
|
30 |
------------------------------------------------------------ */
|
31 |
// Подключение валюты и локализации
|
32 |
define('SAPHALI_PLUGIN_DIR_URL',plugin_dir_url(__FILE__));
|
33 |
-
define('SAPHALI_LITE_VERSION', '1.3.8' );
|
34 |
define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
|
35 |
class saphali_lite {
|
36 |
var $email_order_id;
|
37 |
function __construct() {
|
38 |
add_action('before_woocommerce_init', array($this,'load_plugin_textdomain'), 9);
|
39 |
add_action('admin_menu', array($this,'woocommerce_saphali_admin_menu_s_l'), 9);
|
40 |
-
|
41 |
add_action( 'woocommerce_thankyou', array( &$this, 'order_pickup_location' ), 20 );
|
42 |
add_action( 'woocommerce_view_order', array( &$this, 'order_pickup_location' ), 20 );
|
43 |
|
@@ -193,7 +193,7 @@ Author URI: http://saphali.com/
|
|
193 |
case 'AMD': $symbol = 'Դ'; break;
|
194 |
case 'KGS': $symbol = 'сом'; break;
|
195 |
case 'KZT': $symbol = 'тңг'; break;
|
196 |
-
case 'UZS': $symbol = '
|
197 |
}
|
198 |
}
|
199 |
return $symbol;
|
@@ -667,6 +667,7 @@ Author URI: http://saphali.com/
|
|
667 |
background:none repeat scroll 0 0 #EAEAEA !important;
|
668 |
color:#636060 !important;
|
669 |
}
|
|
|
670 |
</style>
|
671 |
<script type="text/javascript">
|
672 |
(function($){$.fn.tipTip=function(options){var defaults={activation:"hover",keepAlive:false,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:false,enter:function(){},exit:function(){}};var opts=$.extend(defaults,options);if($("#tiptip_holder").length<=0){var tiptip_holder=$('<div id="tiptip_holder" style="max-width:'+opts.maxWidth+';"></div>');var tiptip_content=$('<div id="tiptip_content"></div>');var tiptip_arrow=$('<div id="tiptip_arrow"></div>');$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')))}else{var tiptip_holder=$("#tiptip_holder");var tiptip_content=$("#tiptip_content");var tiptip_arrow=$("#tiptip_arrow")}return this.each(function(){var org_elem=$(this);if(opts.content){var org_title=opts.content}else{var org_title=org_elem.attr(opts.attribute)}if(org_title!=""){if(!opts.content){org_elem.removeAttr(opts.attribute)}var timeout=false;if(opts.activation=="hover"){org_elem.hover(function(){active_tiptip()},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}else if(opts.activation=="focus"){org_elem.focus(function(){active_tiptip()}).blur(function(){deactive_tiptip()})}else if(opts.activation=="click"){org_elem.click(function(){active_tiptip();return false}).hover(function(){},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}function active_tiptip(){opts.enter.call(this);tiptip_content.html(org_title);tiptip_holder.hide().removeAttr("class").css("margin","0");tiptip_arrow.removeAttr("style");var top=parseInt(org_elem.offset()['top']);var left=parseInt(org_elem.offset()['left']);var org_width=parseInt(org_elem.outerWidth());var org_height=parseInt(org_elem.outerHeight());var tip_w=tiptip_holder.outerWidth();var tip_h=tiptip_holder.outerHeight();var w_compare=Math.round((org_width-tip_w)/2);var h_compare=Math.round((org_height-tip_h)/2);var marg_left=Math.round(left+w_compare);var marg_top=Math.round(top+org_height+opts.edgeOffset);var t_class="";var arrow_top="";var arrow_left=Math.round(tip_w-12)/2;if(opts.defaultPosition=="bottom"){t_class="_bottom"}else if(opts.defaultPosition=="top"){t_class="_top"}else if(opts.defaultPosition=="left"){t_class="_left"}else if(opts.defaultPosition=="right"){t_class="_right"}var right_compare=(w_compare+left)<parseInt($(window).scrollLeft());var left_compare=(tip_w+left)>parseInt($(window).width());if((right_compare&&w_compare<0)||(t_class=="_right"&&!left_compare)||(t_class=="_left"&&left<(tip_w+opts.edgeOffset+5))){t_class="_right";arrow_top=Math.round(tip_h-13)/2;arrow_left=-12;marg_left=Math.round(left+org_width+opts.edgeOffset);marg_top=Math.round(top+h_compare)}else if((left_compare&&w_compare<0)||(t_class=="_left"&&!right_compare)){t_class="_left";arrow_top=Math.round(tip_h-13)/2;arrow_left=Math.round(tip_w);marg_left=Math.round(left-(tip_w+opts.edgeOffset+5));marg_top=Math.round(top+h_compare)}var top_compare=(top+org_height+opts.edgeOffset+tip_h+8)>parseInt($(window).height()+$(window).scrollTop());var bottom_compare=((top+org_height)-(opts.edgeOffset+tip_h+8))<0;if(top_compare||(t_class=="_bottom"&&top_compare)||(t_class=="_top"&&!bottom_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_top"}else{t_class=t_class+"_top"}arrow_top=tip_h;marg_top=Math.round(top-(tip_h+5+opts.edgeOffset))}else if(bottom_compare|(t_class=="_top"&&bottom_compare)||(t_class=="_bottom"&&!top_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_bottom"}else{t_class=t_class+"_bottom"}arrow_top=-12;marg_top=Math.round(top+org_height+opts.edgeOffset)}if(t_class=="_right_top"||t_class=="_left_top"){marg_top=marg_top+5}else if(t_class=="_right_bottom"||t_class=="_left_bottom"){marg_top=marg_top-5}if(t_class=="_left_top"||t_class=="_left_bottom"){marg_left=marg_left+5}tiptip_arrow.css({"margin-left":arrow_left+"px","margin-top":arrow_top+"px"});tiptip_holder.css({"margin-left":marg_left+"px","margin-top":marg_top+"px"}).attr("class","tip"+t_class);if(timeout){clearTimeout(timeout)}timeout=setTimeout(function(){tiptip_holder.stop(true,true).fadeIn(opts.fadeIn)},opts.delay)}function deactive_tiptip(){opts.exit.call(this);if(timeout){clearTimeout(timeout)}tiptip_holder.fadeOut(opts.fadeOut)}}})}})(jQuery);
|
@@ -676,6 +677,7 @@ Author URI: http://saphali.com/
|
|
676 |
'fadeOut' : 50,
|
677 |
'delay' : 200
|
678 |
});
|
|
|
679 |
jQuery('.button#billing').live('click',function() {
|
680 |
var obj = jQuery(this).parent().parent();
|
681 |
obj.html('<td><input value="billing_new_fild'+(parseInt(obj.parent().find('tr td input#order_count:last').val(),10)+1)+'" type="text" name="billing[new_fild][name][]" /></td><td><input value="" type="text" name="billing[new_fild][label][]" /></td><td><input value="" type="text" name="billing[new_fild][placeholder][]" /></td><td><input type="checkbox" name="billing[new_fild][clear][]" /></td><td><input value="" type="text" name="billing[new_fild][class][]" /></td><td><input checked type="checkbox" name="billing[new_fild][required][]" /></td><td><input checked type="checkbox" name="billing[new_fild][public][]" /></td><td><input id="order_count" rel="sort_order" type="hidden" name="billing[new_fild][order][]" value="'+(parseInt(obj.parent().find('tr td input#order_count:last').val(),10)+1)+'" /><input type="button" class="button" id="billing_delete" value="Удалить -"/></td>');
|
@@ -915,15 +917,16 @@ Author URI: http://saphali.com/
|
|
915 |
}
|
916 |
function woocommerce_admin_order_data_after_billing_address_s($order) {
|
917 |
$billing_data = $this->woocommerce_get_customer_meta_fields_saphali();
|
|
|
918 |
echo '<div class="address">';
|
919 |
if(is_array($billing_data["billing"])) {
|
920 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
921 |
|
922 |
$field_name = '_'.$key;
|
923 |
|
924 |
-
if ( @$order->order_custom_fields[$field_name][0] ) echo '<p><strong>'.$field['label'].':</strong> '.$order->order_custom_fields[$field_name][0].'</p>';
|
925 |
|
926 |
-
|
927 |
}
|
928 |
echo '</div>';
|
929 |
}
|
@@ -935,9 +938,9 @@ Author URI: http://saphali.com/
|
|
935 |
|
936 |
$field_name = '_'.$key;
|
937 |
|
938 |
-
if ( @$order->order_custom_fields[$field_name][0] ) echo '<p><strong>'.$field['label'].':</strong> '.$order->order_custom_fields[$field_name][0].'</p>';
|
939 |
|
940 |
-
|
941 |
}
|
942 |
echo '</div>';
|
943 |
}
|
@@ -949,11 +952,11 @@ Author URI: http://saphali.com/
|
|
949 |
|
950 |
$field_name = '_'.$key;
|
951 |
|
952 |
-
if ( @$order->order_custom_fields[$field_name][0] )
|
953 |
|
954 |
echo '<div class="form-field form-field-wide"><label>'. $field['label']. ':</label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
955 |
|
956 |
-
|
957 |
}
|
958 |
echo '</div>';
|
959 |
}
|
@@ -998,14 +1001,14 @@ Author URI: http://saphali.com/
|
|
998 |
if(is_array($billing_data["billing"]) && !$_billing_data) {
|
999 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1000 |
$field_name = '_'.$key;
|
1001 |
-
if ( $order->order_custom_fields[$field_name][0] )
|
1002 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1003 |
endforeach;
|
1004 |
}
|
1005 |
if(is_array($billing_data["shipping"]) && !$_shipping_data) {
|
1006 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1007 |
$field_name = '_'.$key;
|
1008 |
-
if ( $order->order_custom_fields[$field_name][0] )
|
1009 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1010 |
endforeach;
|
1011 |
}
|
@@ -1014,7 +1017,7 @@ Author URI: http://saphali.com/
|
|
1014 |
|
1015 |
$field_name = '_'.$key;
|
1016 |
|
1017 |
-
if ( @$order->order_custom_fields[$field_name][0] )
|
1018 |
|
1019 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1020 |
|
@@ -1029,9 +1032,12 @@ Author URI: http://saphali.com/
|
|
1029 |
$billing_data = $this->woocommerce_get_customer_meta_fields_saphali();
|
1030 |
if(is_array($billing_data["billing"])) {
|
1031 |
$_billing_data = true;
|
1032 |
-
|
|
|
|
|
1033 |
$field_name = '_'.$key;
|
1034 |
-
if
|
|
|
1035 |
echo '<label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'<br />';
|
1036 |
endforeach;
|
1037 |
}
|
@@ -1045,7 +1051,7 @@ Author URI: http://saphali.com/
|
|
1045 |
$_shipping_data = true;
|
1046 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1047 |
$field_name = '_'.$key;
|
1048 |
-
if ( @$order->order_custom_fields[$field_name][0] ) {
|
1049 |
echo '<label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'<br />';
|
1050 |
$address[$key] = $order->order_custom_fields[$field_name][0];
|
1051 |
}
|
@@ -1066,21 +1072,21 @@ Author URI: http://saphali.com/
|
|
1066 |
if(is_array($billing_data["billing"]) && !$_billing_data) {
|
1067 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1068 |
$field_name = '_'.$key;
|
1069 |
-
if ( $order->order_custom_fields[$field_name][0] )
|
1070 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1071 |
endforeach;
|
1072 |
}
|
1073 |
if(is_array($billing_data["shipping"]) && !$_shipping_data) {
|
1074 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1075 |
$field_name = '_'.$key;
|
1076 |
-
if ( $order->order_custom_fields[$field_name][0] )
|
1077 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1078 |
endforeach;
|
1079 |
}
|
1080 |
if(is_array($billing_data["order"]) ) {
|
1081 |
foreach ( $billing_data["order"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1082 |
$field_name = '_'.$key;
|
1083 |
-
if ( @$order->order_custom_fields[$field_name][0] )
|
1084 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1085 |
endforeach;
|
1086 |
}
|
@@ -1093,6 +1099,8 @@ add_action('plugins_loaded', 'woocommerce_lang_s_l', 0);
|
|
1093 |
if ( ! function_exists( 'woocommerce_lang_s_l' ) ) {
|
1094 |
function woocommerce_lang_s_l() {
|
1095 |
new saphali_lite();
|
|
|
|
|
1096 |
}
|
1097 |
}
|
1098 |
//END
|
@@ -1126,7 +1134,7 @@ function _print_script_columns() {
|
|
1126 |
</style>
|
1127 |
<?php
|
1128 |
}
|
1129 |
-
|
1130 |
|
1131 |
register_activation_hook( __FILE__, 'saphali_woo_lite_install' );
|
1132 |
|
@@ -1148,4 +1156,8 @@ function saphali_woo_lite_install() {
|
|
1148 |
}
|
1149 |
if(!update_option('woocommerce_saphali_filds_locate',$locate))add_option('woocommerce_saphali_filds_locate',$locate);
|
1150 |
}
|
|
|
|
|
|
|
|
|
1151 |
}
|
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.8.1
|
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.8.1' );
|
34 |
define('SAPHALI_PLUGIN_DIR_PATH',plugin_dir_path(__FILE__));
|
35 |
class saphali_lite {
|
36 |
var $email_order_id;
|
37 |
function __construct() {
|
38 |
add_action('before_woocommerce_init', array($this,'load_plugin_textdomain'), 9);
|
39 |
add_action('admin_menu', array($this,'woocommerce_saphali_admin_menu_s_l'), 9);
|
40 |
+
|
41 |
add_action( 'woocommerce_thankyou', array( &$this, 'order_pickup_location' ), 20 );
|
42 |
add_action( 'woocommerce_view_order', array( &$this, 'order_pickup_location' ), 20 );
|
43 |
|
193 |
case 'AMD': $symbol = 'Դ'; break;
|
194 |
case 'KGS': $symbol = 'сом'; break;
|
195 |
case 'KZT': $symbol = 'тңг'; break;
|
196 |
+
case 'UZS': $symbol = 'sóm'; break;
|
197 |
}
|
198 |
}
|
199 |
return $symbol;
|
667 |
background:none repeat scroll 0 0 #EAEAEA !important;
|
668 |
color:#636060 !important;
|
669 |
}
|
670 |
+
|
671 |
</style>
|
672 |
<script type="text/javascript">
|
673 |
(function($){$.fn.tipTip=function(options){var defaults={activation:"hover",keepAlive:false,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:false,enter:function(){},exit:function(){}};var opts=$.extend(defaults,options);if($("#tiptip_holder").length<=0){var tiptip_holder=$('<div id="tiptip_holder" style="max-width:'+opts.maxWidth+';"></div>');var tiptip_content=$('<div id="tiptip_content"></div>');var tiptip_arrow=$('<div id="tiptip_arrow"></div>');$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')))}else{var tiptip_holder=$("#tiptip_holder");var tiptip_content=$("#tiptip_content");var tiptip_arrow=$("#tiptip_arrow")}return this.each(function(){var org_elem=$(this);if(opts.content){var org_title=opts.content}else{var org_title=org_elem.attr(opts.attribute)}if(org_title!=""){if(!opts.content){org_elem.removeAttr(opts.attribute)}var timeout=false;if(opts.activation=="hover"){org_elem.hover(function(){active_tiptip()},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}else if(opts.activation=="focus"){org_elem.focus(function(){active_tiptip()}).blur(function(){deactive_tiptip()})}else if(opts.activation=="click"){org_elem.click(function(){active_tiptip();return false}).hover(function(){},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}function active_tiptip(){opts.enter.call(this);tiptip_content.html(org_title);tiptip_holder.hide().removeAttr("class").css("margin","0");tiptip_arrow.removeAttr("style");var top=parseInt(org_elem.offset()['top']);var left=parseInt(org_elem.offset()['left']);var org_width=parseInt(org_elem.outerWidth());var org_height=parseInt(org_elem.outerHeight());var tip_w=tiptip_holder.outerWidth();var tip_h=tiptip_holder.outerHeight();var w_compare=Math.round((org_width-tip_w)/2);var h_compare=Math.round((org_height-tip_h)/2);var marg_left=Math.round(left+w_compare);var marg_top=Math.round(top+org_height+opts.edgeOffset);var t_class="";var arrow_top="";var arrow_left=Math.round(tip_w-12)/2;if(opts.defaultPosition=="bottom"){t_class="_bottom"}else if(opts.defaultPosition=="top"){t_class="_top"}else if(opts.defaultPosition=="left"){t_class="_left"}else if(opts.defaultPosition=="right"){t_class="_right"}var right_compare=(w_compare+left)<parseInt($(window).scrollLeft());var left_compare=(tip_w+left)>parseInt($(window).width());if((right_compare&&w_compare<0)||(t_class=="_right"&&!left_compare)||(t_class=="_left"&&left<(tip_w+opts.edgeOffset+5))){t_class="_right";arrow_top=Math.round(tip_h-13)/2;arrow_left=-12;marg_left=Math.round(left+org_width+opts.edgeOffset);marg_top=Math.round(top+h_compare)}else if((left_compare&&w_compare<0)||(t_class=="_left"&&!right_compare)){t_class="_left";arrow_top=Math.round(tip_h-13)/2;arrow_left=Math.round(tip_w);marg_left=Math.round(left-(tip_w+opts.edgeOffset+5));marg_top=Math.round(top+h_compare)}var top_compare=(top+org_height+opts.edgeOffset+tip_h+8)>parseInt($(window).height()+$(window).scrollTop());var bottom_compare=((top+org_height)-(opts.edgeOffset+tip_h+8))<0;if(top_compare||(t_class=="_bottom"&&top_compare)||(t_class=="_top"&&!bottom_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_top"}else{t_class=t_class+"_top"}arrow_top=tip_h;marg_top=Math.round(top-(tip_h+5+opts.edgeOffset))}else if(bottom_compare|(t_class=="_top"&&bottom_compare)||(t_class=="_bottom"&&!top_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_bottom"}else{t_class=t_class+"_bottom"}arrow_top=-12;marg_top=Math.round(top+org_height+opts.edgeOffset)}if(t_class=="_right_top"||t_class=="_left_top"){marg_top=marg_top+5}else if(t_class=="_right_bottom"||t_class=="_left_bottom"){marg_top=marg_top-5}if(t_class=="_left_top"||t_class=="_left_bottom"){marg_left=marg_left+5}tiptip_arrow.css({"margin-left":arrow_left+"px","margin-top":arrow_top+"px"});tiptip_holder.css({"margin-left":marg_left+"px","margin-top":marg_top+"px"}).attr("class","tip"+t_class);if(timeout){clearTimeout(timeout)}timeout=setTimeout(function(){tiptip_holder.stop(true,true).fadeIn(opts.fadeIn)},opts.delay)}function deactive_tiptip(){opts.exit.call(this);if(timeout){clearTimeout(timeout)}tiptip_holder.fadeOut(opts.fadeOut)}}})}})(jQuery);
|
677 |
'fadeOut' : 50,
|
678 |
'delay' : 200
|
679 |
});
|
680 |
+
jQuery('input[value="billing_booking_delivery_t"]').parent().parent().hide();
|
681 |
jQuery('.button#billing').live('click',function() {
|
682 |
var obj = jQuery(this).parent().parent();
|
683 |
obj.html('<td><input value="billing_new_fild'+(parseInt(obj.parent().find('tr td input#order_count:last').val(),10)+1)+'" type="text" name="billing[new_fild][name][]" /></td><td><input value="" type="text" name="billing[new_fild][label][]" /></td><td><input value="" type="text" name="billing[new_fild][placeholder][]" /></td><td><input type="checkbox" name="billing[new_fild][clear][]" /></td><td><input value="" type="text" name="billing[new_fild][class][]" /></td><td><input checked type="checkbox" name="billing[new_fild][required][]" /></td><td><input checked type="checkbox" name="billing[new_fild][public][]" /></td><td><input id="order_count" rel="sort_order" type="hidden" name="billing[new_fild][order][]" value="'+(parseInt(obj.parent().find('tr td input#order_count:last').val(),10)+1)+'" /><input type="button" class="button" id="billing_delete" value="Удалить -"/></td>');
|
917 |
}
|
918 |
function woocommerce_admin_order_data_after_billing_address_s($order) {
|
919 |
$billing_data = $this->woocommerce_get_customer_meta_fields_saphali();
|
920 |
+
|
921 |
echo '<div class="address">';
|
922 |
if(is_array($billing_data["billing"])) {
|
923 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
924 |
|
925 |
$field_name = '_'.$key;
|
926 |
|
927 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']) ) echo '<p><strong>'.$field['label'].':</strong> '.$order->order_custom_fields[$field_name][0].'</p>';
|
928 |
|
929 |
+
endforeach;
|
930 |
}
|
931 |
echo '</div>';
|
932 |
}
|
938 |
|
939 |
$field_name = '_'.$key;
|
940 |
|
941 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']) ) echo '<p><strong>'.$field['label'].':</strong> '.$order->order_custom_fields[$field_name][0].'</p>';
|
942 |
|
943 |
+
endforeach;
|
944 |
}
|
945 |
echo '</div>';
|
946 |
}
|
952 |
|
953 |
$field_name = '_'.$key;
|
954 |
|
955 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']) )
|
956 |
|
957 |
echo '<div class="form-field form-field-wide"><label>'. $field['label']. ':</label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
958 |
|
959 |
+
endforeach;
|
960 |
}
|
961 |
echo '</div>';
|
962 |
}
|
1001 |
if(is_array($billing_data["billing"]) && !$_billing_data) {
|
1002 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1003 |
$field_name = '_'.$key;
|
1004 |
+
if ( $order->order_custom_fields[$field_name][0] && !empty($field['label']) )
|
1005 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1006 |
endforeach;
|
1007 |
}
|
1008 |
if(is_array($billing_data["shipping"]) && !$_shipping_data) {
|
1009 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1010 |
$field_name = '_'.$key;
|
1011 |
+
if ( $order->order_custom_fields[$field_name][0] && !empty($field['label']))
|
1012 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1013 |
endforeach;
|
1014 |
}
|
1017 |
|
1018 |
$field_name = '_'.$key;
|
1019 |
|
1020 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']) )
|
1021 |
|
1022 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1023 |
|
1032 |
$billing_data = $this->woocommerce_get_customer_meta_fields_saphali();
|
1033 |
if(is_array($billing_data["billing"])) {
|
1034 |
$_billing_data = true;
|
1035 |
+
$no_fild = array ('_billing_booking_delivery_t', '_billing_booking_delivery');
|
1036 |
+
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show'] ) continue;
|
1037 |
+
|
1038 |
$field_name = '_'.$key;
|
1039 |
+
if(in_array($field_name, $no_fild)) continue;
|
1040 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']))
|
1041 |
echo '<label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'<br />';
|
1042 |
endforeach;
|
1043 |
}
|
1051 |
$_shipping_data = true;
|
1052 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1053 |
$field_name = '_'.$key;
|
1054 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label'])) {
|
1055 |
echo '<label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'<br />';
|
1056 |
$address[$key] = $order->order_custom_fields[$field_name][0];
|
1057 |
}
|
1072 |
if(is_array($billing_data["billing"]) && !$_billing_data) {
|
1073 |
foreach ( $billing_data["billing"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1074 |
$field_name = '_'.$key;
|
1075 |
+
if ( $order->order_custom_fields[$field_name][0] && !empty($field['label']))
|
1076 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1077 |
endforeach;
|
1078 |
}
|
1079 |
if(is_array($billing_data["shipping"]) && !$_shipping_data) {
|
1080 |
foreach ( $billing_data["shipping"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1081 |
$field_name = '_'.$key;
|
1082 |
+
if ( $order->order_custom_fields[$field_name][0] && !empty($field['label']) )
|
1083 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1084 |
endforeach;
|
1085 |
}
|
1086 |
if(is_array($billing_data["order"]) ) {
|
1087 |
foreach ( $billing_data["order"] as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
1088 |
$field_name = '_'.$key;
|
1089 |
+
if ( @$order->order_custom_fields[$field_name][0] && !empty($field['label']) )
|
1090 |
echo '<div class="form-field form-field-wide"><label><strong>'. $field['label']. ':</strong></label> ' . $order->order_custom_fields[$field_name][0].'</div>';
|
1091 |
endforeach;
|
1092 |
}
|
1099 |
if ( ! function_exists( 'woocommerce_lang_s_l' ) ) {
|
1100 |
function woocommerce_lang_s_l() {
|
1101 |
new saphali_lite();
|
1102 |
+
if( is_admin() )
|
1103 |
+
add_action( 'admin_enqueue_scripts', array('saphali_lite','admin_enqueue_scripts_page_saphali') );
|
1104 |
}
|
1105 |
}
|
1106 |
//END
|
1134 |
</style>
|
1135 |
<?php
|
1136 |
}
|
1137 |
+
|
1138 |
|
1139 |
register_activation_hook( __FILE__, 'saphali_woo_lite_install' );
|
1140 |
|
1156 |
}
|
1157 |
if(!update_option('woocommerce_saphali_filds_locate',$locate))add_option('woocommerce_saphali_filds_locate',$locate);
|
1158 |
}
|
1159 |
+
//if(!update_option('woocommerce_informal_localisation_type' , 'yes'))add_option('woocommerce_informal_localisation_type' , 'yes');
|
1160 |
+
//global $woocommerce;
|
1161 |
+
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.mo', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.mo');
|
1162 |
+
//copy( SAPHALI_PLUGIN_DIR_PATH . '/languages/woocommerce-ru_RU.po', $woocommerce->plugin_path() .'/i18n/languages/informal/woocommerce-ru_RU.po');
|
1163 |
}
|