Jump to content

Photo upload problem


Essencial Airsoft

Recommended Posts

 

Hello, I am new to e-commerce and looking to add keywords to my images in order to be referenced on Google "image" I realized that there was a display problem.

The thumbnails are upload but not the main image of the product (the one that is displayed directly when we click on the product), if I press the magnifying glass to zoom it is upoad but when I click on the product I have only a white rectangle.

I give you a screenshot that will explain my problem better than I do and a link to one of my articles (knowing that this problem persists on all my products).

https://essencial-airsoft.fr/index.php?id_product=47&rewrite=pompe-2-&controller=product&id_lang=1

Thank you in advance to those who will take the time to help me solve this problem.

Jeremiah

IMAGE EA EN.JPG

Link to comment
Share on other sites

.themes/your theme/templates/catalog/_partials/product-cover-thumbnails.tpl

find:

<img class="js-qv-product-cover" src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">

change to:

{if isset($product.images[1])}
                <img class="js-qv-product-cover" src="{$product.images[1].bySize.large_default.url}" 
                     alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">
            {else}
                <img class="js-qv-product-cover" src="{$product.cover.bySize.large_default.url}" 
                alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">
            {/if}

 

Link to comment
Share on other sites

  • 2 weeks later...

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...