Jump to content

Default "No Image Available" image does not work ?


gray

Recommended Posts

You can change the "no image" picture in Back-end under the International/Localization/Languages tab -> Languages, Then edit the language selected. Then update "No-picture" image.

 

However in selecting a default 'no image', it does not seem to remember the selection. Then regen all thumbnail images, and clear PS cache and clear Browser cache. Still nothing works.

 

The images have been generated in Prestashop directory images/p/en-default-cart_default.jpg etc and also in Prestashop directory images/c/

 

Anybody have the same problem, and a work around.

  • Thanks 1
Link to comment
Share on other sites

Hi ive just regenerated the thumbnails and the same thing happened, but only images missing is the default main pic and only since about march. Older images are still all there. So ive just manually re did a ton of product images....

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 6 months later...

I fix this issue with this tips:

  1. download an older prestashop version (ps 1.6)
  2. copy the default images from /img/p
  3. upload the default images in your-prestashop-folder/img/p
  4. do the same also for the categories' images from img/c
  5. regenerate all the images

 

best regards,

Matteo

Link to comment
Share on other sites

  • 6 months later...

A temporal solution for PS 1.7.4.3 until prestashop fix it in an official way:

1º Go to /img/p/ and download files: 

es-default-cart_default.jpg

es-default-home_default.jpg

es-default-large_default.jpg

es-default-medium_default.jpg

es-default-small_default.jpg

change with the image you want and upload again.

 

Go to /theme/YOURTHEME/templates/catalog/_partials/miniatures/product-listrgrid.tpl

And add this in product-listrgrid.tpl

{if count($product.images) < 1 }
        <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "https://www.YOURWEBSITE.com/img/p/es-default-medium_default.jpg"
              alt = "{$product.cover.legend}"
              data-full-size-image-url = "{$product.cover.large.url}"
            >
{/if}

          <a href="{$product.url}" class="thumbnail product-thumbnail">
            <img
              src = "{$product.cover.bySize.home_default.url}"
              alt = "{$product.cover.legend}"
              data-full-size-image-url = "{$product.cover.large.url}"
            >
             {if count($product.images) > 1 }
         {hook h="displayTmHoverImage" id_product=$product.id_product home='home_default' large='large_default'}
       {/if} 

Go to /themes/YOURTHEME/templates/catalog/_partials/product-cover-thumbnails.tpl

And add this in product-cover-thumbnails.tpl

change green

<img class="js-qv-product-cover" src="https://www.YOURWEBSITE.com/img/p/es-default-large_default.jpg" alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">

 

Clear cache

 

 

Link to comment
Share on other sites

  • 1 month later...
Guest dragos_mircea

Hi guys,

I hope that you figured out this issue. The single thing I did was to got to my theme assets/img/ where from I downloaded 2 files (JPEG's) and then I modified those files as I wanted to look.

Link to comment
Share on other sites

  • 2 years later...
On 12/4/2018 at 10:48 AM, Guest dragos_mircea said:

Hi guys,

I hope that you figured out this issue. The single thing I did was to got to my theme assets/img/ where from I downloaded 2 files (JPEG's) and then I modified those files as I wanted to look.

This is the solution in ps 1.7.6. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...