Jump to content

[SOLVED] how do i change Cash On Delivery logo and info?


Recommended Posts

images are located in the module directory /modules/cashondelivery/

you can upload own images there

 

to change the text - open the views/templates/hook/payment.tpl, you've got there:

<p class="payment_module">
<a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}">
 <img src="{$this_path}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />
 <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}
 <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'}
 <br style="clear:both;" />
</a>
</p>

 

just edit it

 

you can also edit text in the localization > translations tab in your back office

select "modules" from drop down list - then click on flag you want to translate

  • Like 1
Link to comment
Share on other sites

  • 5 months later...

Regarding the logo, in my shop with 1.5.6 version installed the cast on delivery shows a ? instead of any image.

The path of the image seems to be en/cashondelivery.gif.

 

Any idea how can I change this image not to displayed as "?"

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...

/modules/cashondelivery/views/templates/hook/payment.tpl

 

there is a code like:
 

<img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />

change it to:

<img src="http://www.laptopdelovi.rs/modules/cashondelivery/cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />
  • Like 2
Link to comment
Share on other sites

 

/modules/cashondelivery/views/templates/hook/payment.tpl

 

there is a code like:

 

<img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />

change it to:

<img src="http://www.laptopdelovi.rs/modules/cashondelivery/cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />

 

WORKED!!!!!  

 

Thanks again!!

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

I recently upgraded to PS 1.5.6.2 and my previous version of PS I had amended the Cash on Delivery module to look like a Payment on Account module.  I only changed the images and text reference to Cash on Delivery (COD) to Payment on Account.  The module/script worked perfectly with COD replaced with POA on everything to invoice, confirmation page and emails etc 

 

However, since upgrading I cannot for the life in me get it to work the same way.  I have amended all files as before in COD module folder and whilst the images are easy, changing the text is impossible.  payment.tpl, confirmation.tpl and php files everything that refer to COD has been updated to POA but no success.

 

See image below how it displays in my store.

COD-payment-options.jpg

 

Please help point me in the right direction I don't understand why it doesn't change after amending the files.

 

regards

 

Phil

Link to comment
Share on other sites

  • 7 months later...

 

/modules/cashondelivery/views/templates/hook/payment.tpl

 

there is a code like:

 

<img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />

change it to:

<img src="http://www.laptopdelovi.rs/modules/cashondelivery/cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />

 

Worked for me as well...Thanks!

Link to comment
Share on other sites

  • 1 year later...
  • 4 months later...

In PS. 1.6.1.6 missing logo Cash on delivery (COD)  when you must choose payment method.
( mozilla element inspector image path looks wrong).

 

simply because , P.S. 1.6.1.6 , does not find prestashop image cashondelivery.png  :  PNG image files.

to find the right dir, P.S. see if there is PNG files, not jpg or gif.

then simply upload file PNG in directory where there are already gif and jpg files.

Try, then believe !!

Edited by Beppe_C (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 3 months later...

In PS. 1.6.1.6 missing logo Cash on delivery (COD)  when you must choose payment method.

( mozilla element inspector image path looks wrong).

 

simply because , P.S. 1.6.1.6 , does not find prestashop image cashondelivery.png  :  PNG image files.

 

to find the right dir, P.S. see if there is PNG files, not jpg or gif.

 

then simply upload file PNG in directory where there are already gif and jpg files.

 

Try, then believe !!

Dude speaks truth got to use .png for 1.6.1.7. too. if you cant get the logo swap to work check out a file named cash.png in this directory:

 

public_html/presta/themes/default-bootstrap/img

 

worked for me!

 

Could not get the "COD" text to change tho, changed it in all the files and it still says COD next to my new logo! ;( any assist would be greatly appreciated. 

Link to comment
Share on other sites

 


just edit it

 

you can also edit text in the localization > translations tab in your back office

select "modules" from drop down list - then click on flag you want to translate

 

 

 

Any idea where that is found in 1.6.1.7  ???

 

not seeing drop down list for modules or flags anymore.

 

 

 

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

  • 1 month later...

Ho guys,

First of all, @lesrima88 sorry for hijacking your thread.

Can anyone help me make the third one (custom payment gateway payment module) look like first two (stock cod&bank wire payment modules), ie how to style 3rd one like first two, on checkout page (domain.com/order-opc)?

 

kvs4RnM.png

 

Thanks in advance.

Regards, 

Vedran
 

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

  • 2 months later...

Where do I find in File Manager:

div class="banners-one-by-one"

div class=”banner-item banner-item_feature col-sm-4 col-xs-12 icon-truck” div
div class=”banner-item banner-item_feature col-sm-4 col-xs-12 icon-money” div
div class=”banner-item banner-item_feature col-sm-4 col-xs-12 icon-credit card” div

there are displayed in product page

I want to REMOVE them.

How can I do this?

Link to comment
Share on other sites

×
×
  • Create New...