On this page
Aero Commerce Issues and Solutions
Aero Commerce Issues and Solutions### On live servers the media library image urls / thumbnails are broken
They 404’ing (eg in backend). This is because they use signed urls and nginx isn’t passing over the ?sig= query string, solve in default Aero template
location ~* /media/* { try_files $uri $uri/ /index.php?$query_string; }Expose additional Media Library Properties to the js / twig files
Eg, want to use the original uploaded file name as what the file is downloaded as opposed the random file name it creates;
In AppServiceProvider
// Expose extra media library model properties to js / twig\Aerocargo\MediaLibrary\Models\Media::addCastToJs('download_url');\Aerocargo\MediaLibrary\Models\Media::addCastToJs('path');You can now use ‘download_url’ in the twig file, the URL will still be signed but it is presented as the originally downloaded filename, eg test.pdf
How to make the Listings page automatically display products from the lowest to the highest price
In the admin (/admin/settings/manage/search) if you add this