tozi Posted February 3, 2015 Share Posted February 3, 2015 Hi all, how can i change this picture http://greycat.eu/otaznik.png ? I have own custom image, and i need change this default. 1 Link to comment Share on other sites More sharing options...
razaro Posted February 3, 2015 Share Posted February 3, 2015 In back office go to Localization > Languages and edit each language. There is field "No picture" image. Link to comment Share on other sites More sharing options...
tozi Posted February 4, 2015 Author Share Posted February 4, 2015 Yes it has already been done, but there is this picture does not change. Link to comment Share on other sites More sharing options...
razaro Posted February 4, 2015 Share Posted February 4, 2015 Can you post link to that website ? Link to comment Share on other sites More sharing options...
tozi Posted February 4, 2015 Author Share Posted February 4, 2015 Here http://www.dobrypneu.cz/new/39-pneumatiky Link to comment Share on other sites More sharing options...
razaro Posted February 4, 2015 Share Posted February 4, 2015 Hmm that is not using default global image. Did you maybe done CSV import ? It took default image then maybe. Have you tried to delete that image from back office and upload new one ? Or go to http://www.dobrypneu.cz/new/img/p/2/0/7/3/7/ folder and manually replace original 20737.jpg and other types/sizes too. Link to comment Share on other sites More sharing options...
tozi Posted February 4, 2015 Author Share Posted February 4, 2015 Yes thats is not a global image. It is possible change this image for own custom? I have 50 000 products in page,then is not possible change every image manually. Link to comment Share on other sites More sharing options...
razaro Posted February 4, 2015 Share Posted February 4, 2015 yeah 50000 is a problem. Did you check that folder, question mark image there ? If it is there then for presta that image is ok and that is why it does not show default language image. One thing I notice is that question mark image is 125x125 but regular, good images are 212x170. So maybe with some coding you could check width of image and then if equals 125 then use language default, otherwise if 212 use regular image. {assign var=current_image value=getimagesize($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default'))} {if $current_image[0] eq 125} <img ... {else} <img ...{/if} Something like that maybe. Link to comment Share on other sites More sharing options...
tozi Posted February 4, 2015 Author Share Posted February 4, 2015 (edited) Hi, i have this good? {assign var=current_image value=getimagesize($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html')} {if $current_image[0] eq 125}test{else}<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} {/if} height="170" />{/if} Edited February 4, 2015 by tozi (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted February 4, 2015 Share Posted February 4, 2015 yeah something like that. I changed instead test to have default image, got code from product.tpl but not sure if this could work . This is not tested so make backups {assign var=current_image value=getimagesize($link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html')} {if $current_image[0] eq 125} <img src="{$img_prod_dir}{$lang_iso}-default-home_default.jpg" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} {/if} height="170" /> {else} <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} {/if} height="170" /> {/if} but instead {$img_prod_dir}{$lang_iso}-default-home_default.jpg you could have full path to your server if those variables are not defined. Link to comment Share on other sites More sharing options...
tozi Posted February 4, 2015 Author Share Posted February 4, 2015 So i have a simply solution. Change img/404.gif Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now