metalice Posted October 26, 2011 Share Posted October 26, 2011 hi all, i attached a screen shot of a product page , i would like to do 2 things. 1. change the size of the square that holds the image, beacuse my size of images is smaller and there is a white space between the upper edge of the image and the square.. 2. i would like to del the print now and see full size functions from the products pages. how do i do that? site url: http://oritschatzmanstore.com thanks!!\ Link to comment Share on other sites More sharing options...
metalice Posted October 27, 2011 Author Share Posted October 27, 2011 hi all, i attached a screen shot of a product page , i would like to do 2 things. 1. change the size of the square that holds the image, beacuse my size of images is smaller and there is a white space between the upper edge of the image and the square.. 2. i would like to del the print now and see full size functions from the products pages. how do i do that? site url: http://oritschatzmanstore.com thanks!!\ Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 27, 2011 Share Posted October 27, 2011 Hi metalice, You can change default image sizes in your Back Office under Preferences > Images. As for the "print now" and "see full size" buttons, you can remove them in your theme's js/products.tpl file. Please let me know if this works for you. -Mike Link to comment Share on other sites More sharing options...
metalice Posted October 27, 2011 Author Share Posted October 27, 2011 in my theme /js folder there is not products.tpl. in the theme folder there is products.tpl , tried to change that and del the view and print function but its still showing up. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 27, 2011 Share Posted October 27, 2011 in my theme /js folder there is not products.tpl. in the theme folder there is products.tpl , tried to change that and del the view and print function but its still showing up. Can you please enable Force Compile under Preferences > Performance and let me know if that fixes it for you? -Mike Link to comment Share on other sites More sharing options...
metalice Posted October 27, 2011 Author Share Posted October 27, 2011 still dosent work... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 27, 2011 Share Posted October 27, 2011 In that products.tpl file, please be sure that you've actually deleted this entire string: usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} <li><a href="javascript:print();">{l s='Print'}</a><br class="clear" /></li> {if $have_image && !$jqZoomEnabled} <li><span id="view_full_size" class="span_link">{l s='View full size'}</span></li> {/if} </ul> I hope this helps. -Mike Link to comment Share on other sites More sharing options...
metalice Posted October 27, 2011 Author Share Posted October 27, 2011 yes i did. Link to comment Share on other sites More sharing options...
BWT Posted October 27, 2011 Share Posted October 27, 2011 If you use firefox web browser then you can use the add-on fire bug by clicking inspect element it will show you where in the css and modules the location of the code you would like to edit. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 27, 2011 Share Posted October 27, 2011 Can you please also manually clear your smarty's cache and compile folders of everything EXCEPT the index.php file through your FTP software? -Mike Link to comment Share on other sites More sharing options...
metalice Posted October 27, 2011 Author Share Posted October 27, 2011 which folders are they? which folders to del? Link to comment Share on other sites More sharing options...
jhnstcks Posted October 27, 2011 Share Posted October 27, 2011 Topics merged. Please only create one topic for your question. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 27, 2011 Share Posted October 27, 2011 which folders are they? which folders to del? tools/smarty and then delete all the files inside of the /cache and /compile folders except index.php (but don't delete the folders themselves!) -Mike Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 (edited) OMG Mike , i did what you have told me to do and it messed up all of my product page. look: http://oritschatzmanstore.com and im sure i didnt del anything else. only what you have told me. what to do now?????? Edited October 30, 2011 by jhnstcks removed swearing, anymore will result in a ban (see edit history) Link to comment Share on other sites More sharing options...
jhnstcks Posted October 30, 2011 Share Posted October 30, 2011 This is a forum for Prestashop help, we don't need bad language on here. I have edited your post and removed the swearing, anymore will get you banned. Make sure you didnt delete the [code}</div>[/code] that would be under the code that Mike showed above. That is why your right column and left column have merged into one.It should look something like the code below {if isset($images) && count($images) > 3}<a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Next'}</a>{/if} </div> {/if} {if isset($images) && count($images) > 1}<p class="align_center clear"><span id="wrapResetImages" style="display: none;"><img src="{$img_dir}icon/cancel_16x18.gif" alt="{l s='Cancel'}" width="16" height="18"/> <a id="resetImages" href="{$link->getProductLink($product)}" onclick="$('span#wrapResetImages').hide('slow');return (false);">{l s='Display all pictures'}</a></span></p>{/if} </div> <!-- left infos--> <div id="pb-left-column"> {if isset($colors) && $colors} Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 This is a forum for Prestashop help, we don't need bad language on here. I have edited your post and removed the swearing, anymore will get you banned. Make sure you didnt delete the [code}</div>[/code] that would be under the code that Mike showed above. That is why your right column and left column have merged into one.It should look something like the code below {if isset($images) && count($images) > 3}<a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Next'}</a>{/if} </div> {/if} {if isset($images) && count($images) > 1}<p class="align_center clear"><span id="wrapResetImages" style="display: none;"><img src="{$img_dir}icon/cancel_16x18.gif" alt="{l s='Cancel'}" width="16" height="18"/> <a id="resetImages" href="{$link->getProductLink($product)}" onclick="$('span#wrapResetImages').hide('slow');return (false);">{l s='Display all pictures'}</a></span></p>{/if} </div> <!-- left infos--> <div id="pb-left-column"> {if isset($colors) && $colors} indeed the </div> was missing, but i added it and its still not working, i attached my product.tpl file here. just change the .zip to .tpl. product.zip Link to comment Share on other sites More sharing options...
jhnstcks Posted October 30, 2011 Share Posted October 30, 2011 Did you empty the cache and compile folders like you did previously? Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 no. i didnt only once and got that result. but i didnt tried to force compile. and it didnt worked. Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 ok, del the cache and compile and it came back to normal. but now the like button that i add an send to friend is missing. Link to comment Share on other sites More sharing options...
jhnstcks Posted October 30, 2011 Share Posted October 30, 2011 ok, del the cache and compile and it came back to normal. but now the like button that i add an send to friend is missing. That's because the section that you delete included the hook for extra left. Insert this section back into your product.tpl file <!--usefull links--> <ul id="usefull_link_block"> {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} </ul> Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 ok. i put it and it came back. but in the wrong place. where exactly should i put it back? i looked and my theme default product.tpl and couldn't find it there. so before which line to put it? Link to comment Share on other sites More sharing options...
jhnstcks Posted October 30, 2011 Share Posted October 30, 2011 In the product.tpl that you posted earlier, insert the code at line 178, it should be before the /div code, otherwise it will end up in the next column like it is now Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 great working thank you!!! Link to comment Share on other sites More sharing options...
metalice Posted October 30, 2011 Author Share Posted October 30, 2011 now for the second problem, about the white space in the images. i attached a photo of my admin panel , image section. i try to edit it and still it remain the same with this white space. the original photo uploaded to the site is 800*600. so i think its need to keep the same proportion ? no? Link to comment Share on other sites More sharing options...
metalice Posted October 31, 2011 Author Share Posted October 31, 2011 HII SOME1? Thank you! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted October 31, 2011 Share Posted October 31, 2011 now for the second problem, about the white space in the images. i attached a photo of my admin panel , image section. i try to edit it and still it remain the same with this white space. the original photo uploaded to the site is 800*600. so i think its need to keep the same proportion ? no? Hi metalice, Per the rules of the PrestaShop forums, please post your second question as a separate thread. -Mike 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