somchay Posted September 21, 2017 Share Posted September 21, 2017 (edited) I want to put logo instead of text in order page, Where is the file should I edit ps 1.7.2 Edited September 21, 2017 by somchay (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted September 21, 2017 Share Posted September 21, 2017 appears to be the ps_checkpayment payment module. Inside of ps_checkpayment.php is a function hookPaymentOptions that has the following code $newOption->setModuleName($this->name) ->setCallToActionText($this->trans('Pay by Check', array(), 'Modules.Checkpayment.Admin')) ->setAction($this->context->link->getModuleLink($this->name, 'validation', array(), true)) ->setAdditionalInformation($this->fetch('module:ps_checkpayment/views/templates/front/payment_infos.tpl')); I assume you have to change the value passed into the setCallToActionText so it does not provide a text value "Pay by Check" Looking at the paypal module, it uses this code. So you could try adding this and provide your own logo $payment_options->setLogo(Media::getMediaPath(_PS_MODULE_DIR_.$this->name.'/views/img/logo_card.png')); Link to comment Share on other sites More sharing options...
somchay Posted September 25, 2017 Author Share Posted September 25, 2017 appears to be the ps_checkpayment payment module. Inside of ps_checkpayment.php is a function hookPaymentOptions that has the following code $newOption->setModuleName($this->name) ->setCallToActionText($this->trans('Pay by Check', array(), 'Modules.Checkpayment.Admin')) ->setAction($this->context->link->getModuleLink($this->name, 'validation', array(), true)) ->setAdditionalInformation($this->fetch('module:ps_checkpayment/views/templates/front/payment_infos.tpl')); I assume you have to change the value passed into the setCallToActionText so it does not provide a text value "Pay by Check" Looking at the paypal module, it uses this code. So you could try adding this and provide your own logo $payment_options->setLogo(Media::getMediaPath(_PS_MODULE_DIR_.$this->name.'/views/img/logo_card.png')); Like this? Link to comment Share on other sites More sharing options...
somchay Posted October 22, 2017 Author Share Posted October 22, 2017 It doesn’t work 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