Jump to content

Don't want images for products


Recommended Posts

product.tpl and product-list.tpl
in general, you you want to find something in the code, just do a search on the entire prestashop directory for the string you wish to find...


I don't know what the string is I wish to find but I'll see what I can come up with.
Link to comment
Share on other sites

Can someone tell me how to really get rid of "no image available" problem. where is it exactly(path)? Also where in the line of the code where I can disable it. It's ugly the way it is shown. I honestly think we should have the option if there isn't any image, to just remove the field entirely. I just want the links to show when clicking in the categories section. I am having the same problem.

Thanks

Link to comment
Share on other sites

Can someone tell me how to really get rid of "no image available" problem. where is it exactly(path)? Also where in the line of the code where I can disable it. It's ugly the way it is shown. I honestly think we should have the option if there isn't any image, to just remove the field entirely. I just want the links to show when clicking in the categories section. I am having the same problem.

Thanks


aquamarine, what do you want exactly ? You asked me by PM "How do i remove this “no image available” image block in the category and subcategory section". This topic is about removing *products* images.
Link to comment
Share on other sites

  • 1 month later...

Hi, I know it's a two months old post, but since it is still awaiting for a solution, I will rephrase the question. In the PS site I'm building, I have items that need images among others, like mp3's and small software applications, that have to be shown as plain text with no pictures whatsoever. I looked into the tpl files as mentioned above, but product-list.tpl does not contain anything related to the thread and the only thing that can be done in product.tpl is blocking the TB from showing up by commenting the code at line 104:

name|escape:'htmlall':'UTF-8'}" />

There is no way to prevent PS from creating default images (e.g. 'no image available') and associate them to the product as they will show up in new-product_block, viewed-product_block and so on. The only way I can think of, would be disabling the php code that generates these images...which makes a lot of sense because if I don't put an image to describe an item, chances are that I don't want it to. ^__^ lol
Don't know much about php....maybe someone more expert than me will come up with a bright string of code to solve the problem

best regards
Alberto

Link to comment
Share on other sites

  • 3 months later...

In case you want tu remove the Subcategory image I just found out that it can be done in /themes/prestahop dir en the file Category.tpl

There find the line




removing the word: -medium.jpg did it for me for every page which in my case was what I wanted. I don't know what kind of further conquences this will have but until now everything seems to work fine.
But I think i would be better to remove the whole image tag there, that does the same thing. I tried it.
So remove




The section is:

    <!-- Subcategories -->

{l s='Subcategories'}

       {foreach from=$subcategories item=subcategory}

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">




getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}
Link to comment
Share on other sites

×
×
  • Create New...