Pack_12 Posted May 7, 2020 Share Posted May 7, 2020 Hola de nuevo, Abro este post porque hace poco me orientaron sobre como poder eliminar una imagen que me molesta a la hora de seleccionar el método de pago. Me dijeron que debía cambiar en el código php relativo a "hookpaymentoptions". Lo que ocurre es que no se que debo cambiar de todo este código para que solo desaparezca la imagen. Pego code: public function hookPaymentOptions($params) { if (Module::isEnabled('braintreeofficial') && (int)Configuration::get('BRAINTREEOFFICIAL_ACTIVATE_PAYPAL')) { return array(); } $isoCountryDefault = Country::getIsoById(Configuration::get('PS_COUNTRY_DEFAULT')); $payments_options = array(); $method = AbstractMethodPaypal::load(); switch ($this->paypal_method) { case 'EC': if ($method->isConfigured()) { $paymentOptionsEc = $this->renderEcPaymentOptions($params); $payments_options = array_merge($payments_options, $paymentOptionsEc); if (Configuration::get('PAYPAL_API_CARD') && (in_array($isoCountryDefault, $this->countriesApiCartUnavailable) == false)) { $payment_option = new PaymentOption(); $action_text = $this->l('Pay with debit or credit card'); $payment_option->setLogo(Media::getMediaPath(_PS_MODULE_DIR_ . $this->name . '/views/img/logo_card.png')); $payment_option->setCallToActionText($action_text); $payment_option->setModuleName($this->name); $payment_option->setAction($this->context->link->getModuleLink($this->name, 'ecInit', array('credit_card' => '1'), true)); $payment_option->setAdditionalInformation($this->context->smarty->fetch('module:paypal/views/templates/front/payment_infos_card.tpl')); $payments_options[] = $payment_option; } } break; case 'PPP': if ($method->isConfigured()) { $payment_option = new PaymentOption(); $action_text = $this->l('Pay with PayPal Plus'); if (Configuration::get('PAYPAL_API_ADVANTAGES')) { $action_text .= ' | ' . $this->l('It\'s simple, fast and secure'); } $payment_option->setCallToActionText($action_text); $payment_option->setModuleName('paypal_plus'); try { $this->context->smarty->assign('path', $this->_path); $payment_option->setAdditionalInformation($this->context->smarty->fetch('module:paypal/views/templates/front/payment_ppp.tpl')); } catch (Exception $e) { die($e); } $payments_options[] = $payment_option; if ((Configuration::get('PAYPAL_EXPRESS_CHECKOUT_SHORTCUT') || Configuration::get('PAYPAL_EXPRESS_CHECKOUT_SHORTCUT_CART')) && isset($this->context->cookie->paypal_pSc)) { $payment_option = new PaymentOption(); $action_text = $this->l('Pay with paypal plus shortcut'); $payment_option->setCallToActionText($action_text); $payment_option->setModuleName('paypal_plus_schortcut'); $payment_option->setAction($this->context->link->getModuleLink($this->name, 'pppValidation', array('short_cut' => '1'), true)); $payments_options[] = $payment_option; } } break; case 'MB': if ($method->isConfigured() && in_array($this->context->currency->iso_code, $this->currencyMB)) { if ((int)Configuration::get('PAYPAL_MB_EC_ENABLED')) { $paymentOptionsEc = $this->renderEcPaymentOptions($params); $payments_options = array_merge($payments_options, $paymentOptionsEc); } if ((int)Configuration::get('PAYPAL_API_CARD')) { $payment_option = new PaymentOption(); $action_text = $this->l('Pay with credit or debit card'); $payment_option->setCallToActionText($action_text); $payment_option->setModuleName('paypal_plus_mb'); try { $this->context->smarty->assign('path', $this->_path); $payment_option->setAdditionalInformation($this->context->smarty->fetch('module:paypal/views/templates/front/payment_mb.tpl')); } catch (Exception $e) { return; } $payments_options[] = $payment_option; } } break; } return $payments_options; } GRACIAS de antemano!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now