10 replies [Last post]
liquid's picture
Offline
Joined: 08/14/2007
Juice: 32
Was this information Helpful?

just a simple question and for the life of me and can't find where to change this option.

The invoice that sends out to the customer displays a broken image in the top left of the template. Where can I update this image or fix the link?

I've uploaded a logo through the theme configuration but that doesn't seem to help. The customer.itpl.php is calling the image from [site-logo].

thanks!

surbir's picture
Offline
Joined: 08/08/2007
Juice: 113
Re: logo on invoice

I had the same problem what I do now is copy the printable invoice and paste it to microsoft word and then print it. this is what I do.

www.taggedcheap.co.uk The cheapest price shop

kulvik's picture
Offline
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer
Joined: 08/14/2007
Juice: 336
Even if you have just 1

Smiling Even if you have just 1 order per month that sounds like a rather annoying solution Sticking out tongue

I have the same problem on my site (just forgot to fix it). I'll check it out and get back to you. The actual url is defined in uc_store.module:

$values['site-logo'] = '<img src="'. url($settings['logo'], NULL, NULL, TRUE) .'" />';

______________
Best regards,
Thomas Kulvik
Ny Media AS
www.nymedia.no

mackay's picture
Offline
Internationalizationizer
Joined: 09/18/2007
Juice: 33
Re: Even if you have just 1

You can change your template file from order module (modules\ubercart\uc_order\templates\customer.itpl) and modify a little bit line 23 putting there img link to your logo.

If you don't need to change that logo too often there stays only the problem with Uber updates. But you can always give some other kind of logo than you use on webpage (that looks better on paper etc) Smiling

liquid's picture
Offline
Joined: 08/14/2007
Juice: 32
Re: Re: Even if you have just 1

a good Idea Mackay. I'll keep that in mind for future ubercart installations.

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Re: Re: Re: Even if you have just 1

It's not working for me either. What I don't understand is where it is supposed that this token (or the underlinying system variable is defined). Any idea?

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Re: Re: Re: Re: Even if you have just 1

Wops! I've found it. Sometimes it's easy to forget the simple things when trying to configure the most complex ones :-/

kulvik's picture
Offline
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer
Joined: 08/14/2007
Juice: 336
Re: logo on invoice

This works just fine on my stores after just defining a logo in the theme settings pages.

This is the complete code that construct the site-logo url:

if ($settings['toggle_logo']) {
        if ($settings['default_logo']) {
          $settings['logo'] = dirname($theme_object->filename) .'/logo.png';
        }
        elseif ($settings['logo_path']) {
          $settings['logo'] = $settings['logo_path'];
        }
      }
      $values['site-logo'] = '<img src="'. url($settings['logo'], NULL, NULL, TRUE) .'" />';

As you can see it tries to use both the default logo and the theme logo set manually.

Where do you upload your logo?

______________
Best regards,
Thomas Kulvik
Ny Media AS
www.nymedia.no

liquid's picture
Offline
Joined: 08/14/2007
Juice: 32
Re: Re: logo on invoice

thanks kulvik... I realized that i didn't upload a logo in the theme "global" configurations I just uploaded it in the current theme configuration.

I have less of a headache now Smiling

hedac's picture
Offline
Joined: 12/14/2007
Juice: 144
Re: logo on invoice

my logo doesn't appear either... I have a custom logo url in the them configuration... the url is detected fine, but the problem is that is adding a prefix of the language because my site is multilingual. So it has to parse the url without the language prefixes.

hedac's picture
Offline
Joined: 12/14/2007
Juice: 144
Re: Re: logo on invoice