lemonflavor Posted June 19, 2009 Share Posted June 19, 2009 Hi,Is there a way to not have any images for products? If I don't upload an image it gives me the "No image available" image which I don't want. Thanks.Jeff Link to comment Share on other sites More sharing options...
tomerg3 Posted June 20, 2009 Share Posted June 20, 2009 You'll need to edit the .tpl files to remove that code.try searching the forum, I doubt you're the first one who asked this question... Link to comment Share on other sites More sharing options...
lemonflavor Posted June 20, 2009 Author Share Posted June 20, 2009 I tried searching the forum and didn't find anything in English. If you could tell me which .tpl file that would be helpful. Thanks. Link to comment Share on other sites More sharing options...
tomerg3 Posted June 20, 2009 Share Posted June 20, 2009 product.tpl and product-list.tplin 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... Link to comment Share on other sites More sharing options...
lemonflavor Posted June 20, 2009 Author Share Posted June 20, 2009 product.tpl and product-list.tplin 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 More sharing options...
aquamarine Posted June 28, 2009 Share Posted June 28, 2009 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 More sharing options...
aquamarine Posted June 28, 2009 Share Posted June 28, 2009 oh well... the best workaround was to put a white jpeg into the image field for each category. seems to work that way. probably better, because it doesn't mess with the code. Link to comment Share on other sites More sharing options...
aquamarine Posted June 28, 2009 Share Posted June 28, 2009 now it looks stupid, because everything is pushed down. I guess you do have to remove a line in the code. the question is where? Link to comment Share on other sites More sharing options...
tomerg3 Posted June 28, 2009 Share Posted June 28, 2009 The two files that you want to change are in /themes/prestashop product.tpl and product-list.tpl Link to comment Share on other sites More sharing options...
aquamarine Posted June 29, 2009 Share Posted June 29, 2009 You have mentioned that answer above, but avoiding to tell us what place in the code to adjust or comment out. Can you or another person that can answer that question more clearly? Thanks Link to comment Share on other sites More sharing options...
Patric Posted June 30, 2009 Share Posted June 30, 2009 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 More sharing options...
4lb3rto Posted August 8, 2009 Share Posted August 8, 2009 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. ^__^ lolDon't know much about php....maybe someone more expert than me will come up with a bright string of code to solve the problembest regardsAlberto Link to comment Share on other sites More sharing options...
Mr.E. Posted November 19, 2009 Share Posted November 19, 2009 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.tplThere 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 More sharing options...
BertB Posted November 19, 2009 Share Posted November 19, 2009 How about using a picture of 1px (practically invisible) for the items in question? Link to comment Share on other sites More sharing options...
Recommended Posts