Jump to content

hello guys how i can add this logo in checkout


cdkey

Recommended Posts

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

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 

insert.JPG

Link to comment
Share on other sites

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));

 

55.jpg

Link to comment
Share on other sites

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

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...

logo.thumb.JPG.93c223b4bf78f508d33512fa57720961.JPG

Best Regards

i cant get any file with src if you see payment via payeer i change it only 

example.JPG

example1.JPG

example2.JPG

Link to comment
Share on other sites

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

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 

example3.JPG

Link to comment
Share on other sites

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

  • Thanks 1
Link to comment
Share on other sites

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 

koko.JPG

koko1.JPG

Link to comment
Share on other sites

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

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 

payo.JPG

Edited by cdkey (see edit history)
Link to comment
Share on other sites

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 by PCQUATRO (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...