Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I changed the code to
- Generate the site logo image html through theme_image. After doing that; the site logo was attached to order confirmation mails instead of just being a link.
- Not use $base_url, but go through l() and url(). After doing that; my custom_url_rewrite_outbound() implementation was able to influence those links too.
Comment | File | Size | Author |
---|---|---|---|
uc_store-api_token_values.patch | 1.33 KB | PieterDC | |
Comments
Comment #2
longwaveDoes core handle this? Or do you need a contrib mail module for images to be converted to attachments?
Comment #3
PieterDCI don't know if it's handled by core. I know I have the mimemail module enabled...
You could try that module if you want the same result and if core doesn't do it already.
Comment #4
longwaveAha, http://drupal.org/project/mimemail mentions it in the description, I didn't think core had that functionality.
We cannot use theme('image') here without providing an absolute URL to the image, for users who do not have mimemail installed.
Comment #5
PieterDCOk. That can be fixed. Let's adjust it to
instead of
Comment #6
longwaveCommitted.
Comment #7
longwavePorted the removal of $base_url in [store:link] to 7.x as well.
Comment #9
AlexisWilke CreditAttribution: AlexisWilke commentedI recently upgraded my version of Ubercart and the emails do not get the logo of the website anymore.
I noticed as I was upgrading that this code changed:
And it is the culprit. The theme() function does not use the base URL by default (and assuming you have a logo on your website, the default means never.) Reverting the code back makes it work again.
From what I can see, #4 mentions the fact that theme() does not provide a way to get a full URL. Maybe that works better in D7, but in D6 it breaks the emailed invoices.
Thank you.
Alexis Wilke
(Converting this to a bug since at this point it doesn't work right in my realm)
From duplicate here: #1772856: The store logo does not show up in invoices anymore
Edit: added a link to my original post.
Comment #10
longwaveThanks for the report, fix committed: http://drupalcode.org/project/ubercart.git/commitdiff/f9f2a56