cdkey Posted November 18, 2019 Share Posted November 18, 2019 hi guys i have 2 payment gateway don't has a logo like this i upload a photo example with every payment has a logo like skrill paypal bitcoin i have 2 payment don't has a logo why and how i can add this Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 19, 2019 Share Posted November 19, 2019 10 hours ago, cdkey said: hi guys i have 2 payment gateway don't has a logo like this i upload a photo example with every payment has a logo like skrill paypal bitcoin i have 2 payment don't has a logo why and how i can add this If the module that inserted those payments there does not have an option to add a logo, than the only option is to insert an image by code adding it to the modules files... Best regards Link to comment Share on other sites More sharing options...
tdsoft Posted November 19, 2019 Share Posted November 19, 2019 @cdkey You can go to Modules/payeer/payeer.php find the function: hookPaymentOptions add new method for insert logo $logo_path = _PS_MODULE_DIR_.$this->name.'/views/img/logo.png'; $newOption->setLogo(Media::getMediaPath($logo_path)); Link to comment Share on other sites More sharing options...
cdkey Posted November 19, 2019 Author Share Posted November 19, 2019 2 hours ago, tdsoft said: @cdkey You can go to Modules/payeer/payeer.php find the function: hookPaymentOptions add new method for insert logo $logo_path = _PS_MODULE_DIR_.$this->name.'/views/img/logo.png'; $newOption->setLogo(Media::getMediaPath($logo_path)); hi tdsoft thank you man but how i can insert this code i get function: hookPaymentOptions but i don't know where i can paste this code i upload a photo to show you Link to comment Share on other sites More sharing options...
tdsoft Posted November 20, 2019 Share Posted November 20, 2019 please open file: modules/payeer/payeer.php from your hosting or from FTP software Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 44 minutes ago, tdsoft said: please open file: modules/payeer/payeer.php from your hosting or from FTP software yes man i opened this but where i can insert the code example i change hookPaymentOptions and insert $logo_path = _PS_MODULE_DIR_.$this->name.'/views/img/logo.png'; $newOption->setLogo(Media::getMediaPath($logo_path)); Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 43 minutes ago, cdkey said: yes man i opened this but where i can insert the code example i change hookPaymentOptions and insert $logo_path = _PS_MODULE_DIR_.$this->name.'/views/img/logo.png'; $newOption->setLogo(Media::getMediaPath($logo_path)); I think it´s more a tpl edit, what is your stor URL? Best Regards Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 (edited) 5 minutes ago, PCQUATRO said: I think it´s more a tpl edit, what is your stor URL? Best Regards hello mr PCQUATRO thank you man for help but my problem with logo i din't know how i can insert my code Edited November 20, 2019 by cdkey (see edit history) Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 7 minutes ago, cdkey said: hello mr PCQUATRO thank you man for help and my Url https://cdkeyeasy.com You just have to find the TPL file on the module responsible for your payment method and add the logo you want like in the image... Best Regards Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 26 minutes ago, PCQUATRO said: You just have to find the TPL file on the module responsible for your payment method and add the logo you want like in the image... Best Regards i cant get any file with src if you see payment via payeer i change it only Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 You could edit /themes/classic/templates/checkout/_partials/steps/payment.tpl <label for="{$option.id}"> <span>{$option.call_to_action_text}</span> {if $option.logo} <img src="{$option.logo}"> {/if} </label> And put there an if statement for option-3 with the logo you want... But maybe if you manage to implemente what tdsoft told you, it could be better... Best Regards Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 6 minutes ago, PCQUATRO said: You could edit /themes/classic/templates/checkout/_partials/steps/payment.tpl <label for="{$option.id}"> <span>{$option.call_to_action_text}</span> {if $option.logo} <img src="{$option.logo}"> {/if} </label> And put there an if statement for option-3 with the logo you want... But maybe if you manage to implemente what tdsoft told you, it could be better... Best Regards thank you mr PCQUATRO for help me i get the file how i can insert this i will delete logo and insert Image path or i will insert code Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 Thats a dynamic loop, you should not change whats there, you could try it like this... <label for="{$option.id}"> <span>{$option.call_to_action_text}</span> {if $option.logo} <img src="{$option.logo}"> {/if} {if $option.call_to_action_text == "Payeer"} <img src="/pathto the logo/logo.png"> {/if} </label> Rmember always BACKUP FIRST Best Regards 1 Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 44 minutes ago, PCQUATRO said: Thats a dynamic loop, you should not change whats there, you could try it like this... <label for="{$option.id}"> <span>{$option.call_to_action_text}</span> {if $option.logo} <img src="{$option.logo}"> {/if} {if $option.call_to_action_text == "Payeer"} <img src="/pathto the logo/logo.png"> {/if} </label> Rmember always BACKUP FIRST Best Regards woow MR PCQUATRO I don't know how to really thank you so much mr and i want last help how i can change title name example with the pay you will see Payeer i want add with payeer some typing and i cant change logo this logo only Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 11 minutes ago, cdkey said: woow MR PCQUATRO I don't know how to really thank you so much mr and i want last help how i can change title name example with the pay you will see Payeer i want add with payeer some typing and i cant change logo this logo only I´m not understanding what you need? Best Regards Link to comment Share on other sites More sharing options...
cdkey Posted November 20, 2019 Author Share Posted November 20, 2019 (edited) 48 minutes ago, PCQUATRO said: I´m not understanding what you need? Best Regards Example if you buy some product and will see the gateways example you will pay on paypal already you will see Example pay with paypal no i want edit this example pay with paypal & credit card Edited November 20, 2019 by cdkey (see edit history) Link to comment Share on other sites More sharing options...
PCQUATRO Posted November 20, 2019 Share Posted November 20, 2019 (edited) 14 minutes ago, cdkey said: Example if you buy some product and will see the gateways example you will pay on paypal already you will see Example pay with paypal no i want edit this example pay with paypal & credit card You have to look for it on the module files... Or you can add more if statments on the code i gave you before... Best Regards Edited November 20, 2019 by PCQUATRO (see edit history) 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