logo on invoice

Posts: 10
Joined: 08/14/2007

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!

Posts: 42
Joined: 08/08/2007

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

Posts: 144
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

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

Posts: 144
Joined: 08/14/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer

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

Posts: 10
Joined: 09/18/2007
Internationalizationizer

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

Posts: 10
Joined: 08/14/2007

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

Posts: 10
Joined: 08/14/2007

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

Posts: 108
Joined: 10/31/2007
Getting busy with the Ubercode.

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?

Posts: 108
Joined: 10/31/2007
Getting busy with the Ubercode.

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

Posts: 21
Joined: 12/14/2007

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.

Posts: 21
Joined: 12/14/2007