diff --git a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
index 8af0cf2..69eea5d 100644
--- a/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
+++ b/includes/3rd-party/plugins/woocommerce/class-fullculqi-wc-method.php
@@ -27,12 +27,9 @@ public function __construct() {
$this->multipayment = $this->get_option( 'multipayment', 'no' );
$this->multi_duration = $this->get_option( 'multi_duration', 24 );
$this->multi_status = $this->get_option( 'multi_status', 'wc-pending' );
- $allowed_html = array(
- 'strong' => array(),
- );
- $this->description = wp_kses(__('Acepta pagos con tarjetas de débito y crédito; Yape, Cuotéalo BCP y PagoEfectivo (billeteras móviles, agentes y bodegas).', 'fullculqi'), $allowed_html);
- $this->instructions = $this->get_option( 'instructions', $this->description );
+ $this->description = $this->get_description();
+ $this->instructions = $this->get_option( 'instructions', $this->get_description() );
$this->msg_fail = $this->get_option( 'msg_fail' );
$this->time_modal = $this->get_option( 'time_modal', 0 );
@@ -557,6 +554,43 @@ public function get_title() {
}
}
+ public function get_description() {
+ $settings = fullculqi_get_settings();
+ $tarjeta = (isset($settings['methods']['tarjeta']) and $settings['methods']['tarjeta']!='0');
+ $yape = (isset($settings['methods']['yape']) and $settings['methods']['yape']!='0');
+ $billetera = (isset($settings['methods']['billetera']) and $settings['methods']['billetera']!='0');
+ $bancaMovil = (isset($settings['methods']['bancaMovil']) and $settings['methods']['bancaMovil']!='0');
+ $agente = (isset($settings['methods']['agente']) and $settings['methods']['agente']!='0');
+ $cuotealo = (isset($settings['methods']['cuetealo']) and $settings['methods']['cuetealo']!='0');
+ $txt_general = 'Acepta pagos con ';
+ $txt = '';
+ $txtPE = '';
+ if($tarjeta) {
+ $txt .= 'tarjetas de débito y crédito';
+ }
+ if($yape) {
+ if($tarjeta) {
+ $txt .= ', ';
+ }
+ $txt .= 'Yape';
+ }
+ if($billetera || $bancaMovil || $agente || $cuotealo) {
+ if($tarjeta || $yape) {
+ $txt .= ', ';
+ }
+ $txt .= 'Cuotéalo BCP y PagoEfectivo';
+ $txtPE = ' (billeteras móviles, agentes y bodegas)';
+ }
+ $txt = ''.$txt.'';
+ $txt = $txt_general. $txt. $txtPE;
+ $txt .= '.';
+ $allowed_html = array(
+ 'strong' => array(),
+ );
+
+ return wp_kses(__($txt, 'fullculqi'), $allowed_html);
+ }
+
public function get_icon() {
// Return the icon image
$settings = fullculqi_get_settings();
diff --git a/index.php b/index.php
index 836f6e2..4d80b73 100644
--- a/index.php
+++ b/index.php
@@ -2,7 +2,7 @@
/*
Plugin Name: Culqi
Plugin URI:https://wordpress.org/plugins/culqi-checkout
-Description: Culqi acepta pago con tarjetas, pagoefectivo, billeteras móviles y cuotéalo desde tu tienda virtual.
+Description: Culqi acepta pagos con tarjetas de débito y crédito, Yape, Cuotéalo BCP y PagoEfectivo (billeteras móviles, agentes y bodegas).
Version: 3.0.7
Author: Culqi
Author URI: https://culqi.com/