xtolord Posted January 23, 2013 Share Posted January 23, 2013 Hi all, I am using prestashop 1.5 I created several scenes associated with several categories and subcategories. Took me some time to create and configure the whole setup. Now I want to change the image for one specific scene, so I go to the scene main page, locate my specific scene, and edit it. I select a new image and save it. But when I check it back it does not saved the new image. So how do you go about to change only the image for a scene you've already created? Side note: Yes I can delete the scene and create a new scene, but its not practical for me or any potential client. The whole tagging and assigning to cat/subcat process have to be duplicated + reordering... so its a pain to delete and recreate. Any help appreciated. Thanks Link to comment Share on other sites More sharing options...
xtolord Posted February 7, 2013 Author Share Posted February 7, 2013 No replies so far Is it possible? Link to comment Share on other sites More sharing options...
Pman 77 Posted February 8, 2013 Share Posted February 8, 2013 No replies so far Is it possible? make sure after you have done any changes in the image mapping page you regenerate thumbs for the scenes if you don't have them showing on the site. So that should change the image you have edited Hope it helps Link to comment Share on other sites More sharing options...
perusi Posted February 22, 2013 Share Posted February 22, 2013 hey, can you help me please... in the latest version of PS 1.5.3.1 the image mapping /scenes is not working... from what i`ve managed to find out untill now, the width and height of the mapped image is ZERO.... it's then because of the way image mapping is called via php... do you have a solution for it? thanks Link to comment Share on other sites More sharing options...
Pman 77 Posted February 26, 2013 Share Posted February 26, 2013 hey, can you help me please... in the latest version of PS 1.5.3.1 the image mapping /scenes is not working... from what i`ve managed to find out untill now, the width and height of the mapped image is ZERO.... it's then because of the way image mapping is called via php... do you have a solution for it? thanks I had a guy help me and this is my scenes.tpl file, i see he hard code the sizr in here! Hope it helps. <div id="scenes"> <div> {foreach $scenes as $scene_key=>$scene} <div class="screen_scene" id="screen_scene_{$scene->id}" style="background:transparent url({$base_dir}img/scenes/{$scene->id}-scene.jpg); height:500px; width:920px; {if !$scene@first} display:none;{/if}"> {foreach $scene->products as $product_key=>$product} {assign var=imageIds value="`$product.id_product`-`$product.id_image`"} <a href="{$product.link|escape:'htmlall':'UTF-8'}" accesskey="#scene_products_cluetip_{$scene_key}_{$product_key}_{$product.id_product}" class="cluetip" style="width:{$product.zone_width}px; height:{$product.zone_height}px; margin-left:{$product.x_axis}px ;margin-top:{$product.y_axis}px;"> <span style="margin-top:{math equation='a/2 -10' a=$product.zone_height}px; margin-left:{math equation='a/2 -10' a=$product.zone_width}px;"> </span> </a> <div id="scene_products_cluetip_{$scene_key}_{$product_key}_{$product.id_product}" class="clearfix" style="display:none;"> <h4>{$product.details->name}</h4> <div class="cluetip-img"> <img src="{$link->getImageLink($product.id_product, $imageIds, 'small')}" alt="" /> </div> <div class="cluetip-copy"> {if !$PS_CATALOG_MODE AND $product.details->show_price} <div class="prices"> {if isset($product.details->new) AND $product.details->new}<span class="new">{l s='New'}</span>{/if} <p class="price">{if $priceDisplay}{convertPrice price=$product.details->getPrice(false, $product.details->getDefaultAttribute($product.id_product))}{else}{convertPrice price=$product.details->getPrice(true, $product.details->getDefaultAttribute($product.id_product))}{/if}</p> {if $product.details->on_sale} <span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction} <span class="discount">{l s='Reduced price!'}</span> {/if} </div> {/if} <p class="description">{$product.details->description_short|strip_tags|truncate:100:'...'}</p> </div> </div> {/foreach} </div> {/foreach} </div> {if isset($scenes.1)} <div class="thumbs_banner" style="height:{$thumbSceneImageType.height}px;"> <span class="space-keeper"> <a class="prev" href="#" style="height:{math equation='a+2' a=$thumbSceneImageType.height}px;" onclick="{ldelim}next_scene_is_at_right = false; $(this).parent().next().trigger('stop').trigger('prev'); return false;{rdelim}"> </a> </span> <div id="scenes_list"> <ul style="width:{math equation='(a*b + (a-1)*10)' a=$scenes|@count b=$thumbSceneImageType.width}px; height:{$thumbSceneImageType.height}px;"> {foreach $scenes as $scene} <li id="scene_thumb_{$scene->id}" style="{if !$scene@last} padding-right:10px;{/if}"> <a style="width:{$thumbSceneImageType.width}px; height:{$thumbSceneImageType.height}px" title="{$scene->name|escape:'htmlall':'UTF-8'}" href="#" rel="{$scene->id}" onclick="{ldelim}loadScene({$scene->id});return false;{rdelim}"> <img alt="{$scene->name|escape:'htmlall':'UTF-8'}" src="{$content_dir}img/scenes/thumbs/{$scene->id}-m_scene.jpg" width="{$thumbSceneSize.width}" height="{$thumbSceneSize.height}" /> </a> </li> {/foreach} </ul> </div> <span class="space-keeper"> <a class="next" href="#" style="height:{math equation='a+2' a=$thumbSceneImageType.height}px;" onclick="{ldelim}next_scene_is_at_right = true; $(this).parent().prev().trigger('stop').trigger('next'); return false;{rdelim}"> </a> </span> </div> {/if} </div> Link to comment Share on other sites More sharing options...
Festival Trade Posted July 20, 2013 Share Posted July 20, 2013 Quick html fix for that... 1- go to BO * Catalog -Categories - your category 2- Edit the category you want to change the image 3 - Look the location of the image you have there before delete (usual is img/tmp/category_5.jpg) 4 - write down the direction of the image (img/tmp/) and the name of the image (category_5.jpg) 5 - Now delete the image 6 - open ftp and send your image to that same folder with the exact same name of the image you deleted before 7 - go back to your BO *Catalogue - Categories - your category 8 - add this to the text board <img src=" http://www.yourwebsite/img/tmp/category_5.jpg" width="510" height="150"> <font color="#ffffff">TEXT IN CASE YOU WANT</font> 9 - Now go to your front office and refresh the page. Measures must be different for your template but you can change it as you like. Text is optional but because you always get some extra space around the frame, the text is a good option to fill the gap Must be a way to remove the frame space but I just remember to try this wile I was reading your post. Hope it works for you ! Link to comment Share on other sites More sharing options...
Recommended Posts