diff --git a/resources/pot/retailcrm-es_ES.pot b/resources/pot/retailcrm-es_ES.pot
index 3623bac..0df73ae 100644
--- a/resources/pot/retailcrm-es_ES.pot
+++ b/resources/pot/retailcrm-es_ES.pot
@@ -466,5 +466,5 @@ msgstr "Condiciones del tratamiento de datos personales"
msgid "Insert the terms and conditions for processing personal data"
msgstr "Inserte las condiciones para el tratamiento de datos personales"
-msgid "To activate the loyalty program it is necessary to activate the work with coupons!"
-msgstr "Para activar el programa de fidelidad es necesario activar el trabajo con cupones"
+msgid "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'"
+msgstr "Para activar el programa de fidelización es necesario activar la opción 'habilitar uso de cupones'."
diff --git a/resources/pot/retailcrm-ru_RU.pot b/resources/pot/retailcrm-ru_RU.pot
index c03bb3a..c148d14 100644
--- a/resources/pot/retailcrm-ru_RU.pot
+++ b/resources/pot/retailcrm-ru_RU.pot
@@ -475,5 +475,5 @@ msgstr "Условия обработки персональных данных"
msgid "Insert the terms and conditions for processing personal data"
msgstr "Вставьте условия обработки персональных данных"
-msgid "To activate the loyalty program it is necessary to activate the work with coupons!"
-msgstr "Для активации программы лояльности необходимо активировать работу с купонами!"
+msgid "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'"
+msgstr "Для активации программы лояльности необходимо активировать опцию 'включить использование купонов'"
diff --git a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php
index 1cf74fd..f96b518 100644
--- a/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php
+++ b/src/include/abstracts/class-wc-retailcrm-abstracts-settings.php
@@ -391,41 +391,6 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
];
}
- /**
- * Loyalty Program
- */
-
- $this->form_fields[] = [
- 'title' => __('Loyalty program', 'retailcrm'),
- 'type' => 'heading',
- 'description' => '',
- 'id' => 'loyalty_options'
- ];
-
- $this->form_fields['loyalty'] = [
- 'label' => __('Activate program loyalty', 'retailcrm'),
- 'title' => __('Loyalty program', 'retailcrm'),
- 'class' => 'checkbox',
- 'type' => 'checkbox',
- 'description' => __('Enable this setting for activate program loyalty on site', 'retailcrm')
- ];
-
- $this->form_fields['loyalty_terms'] = [
- 'title' => __('Terms of loyalty program', 'retailcrm'),
- 'css' => 'width:400px; height:215px; resize: horizontal;',
- 'type' => 'textarea',
- 'id' => 'loyalty_terms',
- 'placeholder' => __('Insert the terms and conditions of the loyalty program', 'retailcrm')
- ];
-
- $this->form_fields['loyalty_personal'] = [
- 'title' => __('Conditions of personal data processing', 'retailcrm'),
- 'css' => 'width:400px; height:215px; resize: horizontal;',
- 'type' => 'textarea',
- 'id' => 'loyalty_personal',
- 'placeholder' => __('Insert the terms and conditions for processing personal data', 'retailcrm')
- ];
-
/**
* Meta data options
*/
@@ -617,6 +582,41 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
'description' => __('WhatsApp chat will be opened with this contact', 'retailcrm')
];
+ /**
+ * Loyalty Program
+ */
+
+ $this->form_fields[] = [
+ 'title' => __('Loyalty program', 'retailcrm'),
+ 'type' => 'heading',
+ 'description' => '',
+ 'id' => 'loyalty_options'
+ ];
+
+ $this->form_fields['loyalty'] = [
+ 'label' => __('Activate program loyalty', 'retailcrm'),
+ 'title' => __('Loyalty program', 'retailcrm'),
+ 'class' => 'checkbox',
+ 'type' => 'checkbox',
+ 'description' => __('Enable this setting for activate program loyalty on site', 'retailcrm')
+ ];
+
+ $this->form_fields['loyalty_terms'] = [
+ 'title' => __('Terms of loyalty program', 'retailcrm'),
+ 'css' => 'width:400px; height:215px; resize: horizontal;',
+ 'type' => 'textarea',
+ 'id' => 'loyalty_terms',
+ 'placeholder' => __('Insert the terms and conditions of the loyalty program', 'retailcrm')
+ ];
+
+ $this->form_fields['loyalty_personal'] = [
+ 'title' => __('Conditions of personal data processing', 'retailcrm'),
+ 'css' => 'width:400px; height:215px; resize: horizontal;',
+ 'type' => 'textarea',
+ 'id' => 'loyalty_personal',
+ 'placeholder' => __('Insert the terms and conditions for processing personal data', 'retailcrm')
+ ];
+
/**
* Generate icml file
*/
diff --git a/src/include/class-wc-retailcrm-base.php b/src/include/class-wc-retailcrm-base.php
index 2d8843b..a81e095 100644
--- a/src/include/class-wc-retailcrm-base.php
+++ b/src/include/class-wc-retailcrm-base.php
@@ -609,7 +609,7 @@ if (!class_exists('WC_Retailcrm_Base')) {
'coupon_status' => get_option('woocommerce_enable_coupons'),
'translate' => [
'coupon_warning' => __(
- 'To activate the loyalty program it is necessary to activate the work with coupons!',
+ "To activate the loyalty program it is necessary to activate the 'enable use of coupons option'",
'retailcrm'
)
]
diff --git a/src/languages/retailcrm-es_ES.mo b/src/languages/retailcrm-es_ES.mo
index b3c3808..ff37eac 100644
Binary files a/src/languages/retailcrm-es_ES.mo and b/src/languages/retailcrm-es_ES.mo differ
diff --git a/src/languages/retailcrm-ru_RU.mo b/src/languages/retailcrm-ru_RU.mo
index 0341e33..6aaec63 100644
Binary files a/src/languages/retailcrm-ru_RU.mo and b/src/languages/retailcrm-ru_RU.mo differ