change src for invoice logo image#1326
Conversation
|
Autotagging @bigcommerce/storefront-team @davidchin |
| <h1> | ||
| {{#if settings.store_logo.image}} | ||
| <img class="header-logo-image lazyload" data-sizes="auto" src="{{cdn 'img/loading.svg'}}" data-src="{{getImage settings.store_logo.image 'logo_size'}}" alt="{{settings.store_logo.title}}" title="{{settings.store_logo.title}}"> | ||
| <img class="header-logo-image lazyload" data-sizes="auto" src="{{getImage settings.store_logo.image}}" data-src="{{getImage settings.store_logo.image 'logo_size'}}" alt="{{settings.store_logo.title}}" title="{{settings.store_logo.title}}"> |
There was a problem hiding this comment.
So this is a lazy load image which will load the loading image first & then replace it will original image. Do we see anything in the console as to why the image is not loading ? Or else we completely remove lazy loading. See https://github.com/bigcommerce/cornerstone/blob/81d24b58633365ea1974e9d3e633111d66cc6d57/templates/components/common/store-logo.html
There was a problem hiding this comment.
I looked into that and find out that this issue happens because of the printing (the image is not ready by the time the printing windows opened.
I delete the lazy load and used the same method as referenced, however, the code in the reference use lazy load as well so I should modify it according to the requirements.
|
💚 |
Moved #1326 changelog entry to Draft.
What?
Logo img in the invoice is missing. This change will add logo img to the invoice
Screenshots
Before
After
Original logo size
Optimized
Specified Dimensions