Post by vaidyamanishjoshi » Sat Sep 05, 2015 8:23 pm

I recently added payment method....

I got zip file for this method by payment gateway service providers. But it doesn't contain Logo image of their payment gateway company.

I want to add their logo image on all pages where payment method / payment gateway is displayed.

How can I add logo image ? I tried to find column for it in mysql database, but I couldn't find it...

Active Member

Posts

Joined
Tue Jun 09, 2015 2:47 am

Post by straightlight » Sat Sep 05, 2015 10:47 pm

Hi,

if you're referring to a downloaded payment gateway contribution module, you would need to contact the developer of the distribution.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Solan » Mon Sep 07, 2015 9:11 pm

I borrow this thread

At checkout i have both text and image on one payment method (where customers choose how to pay) but with the other two there are just plain text.

is there a way to add images there also?

And in what file do i change the text that say eg. Paypal etc (right beside the radio button)

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by straightlight » Mon Sep 07, 2015 11:23 pm

In catalog/language/<your_language>/payment and catalog/view/theme/<your_theme>/template/payment folder.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Solan » Mon Sep 07, 2015 11:54 pm

Thanks Straylight

But the code for eg. payment method Payson (catalog/language/my_language>/payment/ is:

Code: Select all

<?php

$_['text_title']  = '<img src="https://www.payson.se/sites/all/files/images/external/payson150x55.png" style="width:150px;height:55px;clear:right" alt="Payson - Visa, MasterCard, Direct bank" title="Payson" />';
$_['text_title_SMS']  = '<img src="https://www.payson.se/sites/all/files/images/external/Payson_logo_checkout.png" style="width:122px;height:90px;clear:right" alt="Payson All in One - Visa, MasterCard, Direkt bank and Faktura" title="Payson" />';
$_['text_AION_INVOICE']  = '<img src="https://www.payson.se/sites/all/files/images/external/payson_All_224x55.png" style="width:224px;height:55px;clear:right" alt="Payson All in One - Visa, MasterCard, Direkt bank and Faktura" title="Payson" />';
$_['text_AION_SMS']  = '<img src="https://www.payson.se/sites/all/files/images/external/Payson_logo_checkout_faktura.png" style="width:102px;height:101px;clear:right" alt="Payson All in One - Visa, MasterCard, Direkt bank and Faktura" title="Payson" />';

$_['text_invoicefee']  = 'En fakturaavgift på %s Kr tillkommer';
$_['text_invoice']  = 'Om ni väljer att betala med faktura tillkommer en avgift på %s Kr';
$_['text_denied']  = 'Betalningen blev nekad.';
$_['text_payson_payment_method']  = ' Testa med en annan betalningsmetod.';

$_['text_payson_payment_error'] = 'Ett fel har uppstått. Vänligen försök igen eller pröva med en annan betalmetod';

$_['text_invoice_terms']  = '<div style="padding: 3px; margin-bottom: 5px;"><h2>Fakturavillkor <img src="https://www.payson.se/sites/all/files/images/external/payson.png" style="width: 140px; height: 42px; display: block; float: right;" /></h2>'.utf8_encode("Om du v&auml;ljer att betala med Paysonfaktura s&aring; tillkommer en fakturaavgift. Betalningsvillkor &auml;r 14 dagar och fakturan kommer att s&auml;ndas separat med e-post till den e-postadress Du anger. F&ouml;r att betala mot Paysonfaktura m&aring;ste Du ha fyllt 18 &aring;r och vara folkbokf&ouml;rd i Sverige samt godk&auml;nnas i den kreditpr&ouml;vning som genomf&ouml;rs vid k&ouml;pet.").'</div>';

$_['text_gift_card'] = 'Presentkort';

$_['text_wait'] = 'Vänligen vänta....';
?>
And (catalog/view/theme/my_theme/template/payment):

Code: Select all

<div class="buttons">
   <?php if(isset($text_invoice_terms)){
   echo  $text_invoice_terms;} ?>
  <div class="pull-right">
    <input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" />
   
  </div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
	$.ajax({ 
            type: 'POST',
            url: 'index.php?route=payment/paysondirect/confirm' + '<?php echo isset($isInvoice) ? "&method=invoice" : ""?>',
            dataType: 'json',            
            beforeSend: function() {
                
                $('#button-confirm').attr('disabled', true);
                $('#paymentButton').before('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');
            },
            complete: function() {
                //alert('nadad');
                $('#button-confirm').attr('disabled', false);
                //$('.attention').remove();
            },
            success: function(json) {
                    
                if (json['error']) {
                                   
                       alert(json['error']);
                       $('#confirm .checkout-content').slideUp('slow');
                       $('#payment-method .checkout-content').slideDown('slow');
                       
                    
                }

                if (json['paymentURL']) {
                    location.href = json['paymentURL'];
                }
            }
        });
    });
//--></script> 
The result is like this on my page:

Image

Id like to add images to the other two options and also have a little more space between them (if possible) ;)

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm

Post by artcore » Tue Sep 08, 2015 1:24 am

Hi,
I've a free mod for what you're after:
http://www.opencart.com/index.php?route ... me=artcore
Although for Payson you'd have to add a bit of code to make it work; check the image in the extension page. If you need help, let me know. It's easier than changing the lang files and uses vQmod ;D

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by Solan » Tue Sep 08, 2015 2:19 am

Well thank you.. i´ll check it out ;)

Active Member

Posts

Joined
Sat Feb 19, 2011 7:34 pm
Who is online

Users browsing this forum: No registered users and 13 guests