TierOne Posted June 25, 2011 Share Posted June 25, 2011 Hi. I'm trying to reconfigure the New Products block to so it'll be displayed on the home page like the homefeatured block. I've been able to reconfigure the hook so it hooks in the middle. It works, but what I need to fix now are two things. 1) I noticed that the images has a border and I want to get rid of it. 2) There's only 2 images displayed and I want to add more.This is my first time dealing with php and I would need some help.Thank you in advance. Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 1) I noticed that the images has a border and I want to get rid of it. for this, you will need to look into the theme (TPL) file /themes/prestashop/blocknewproducts/blocknewproducts.tpllook for the product image tag, if it is use stlye class, you need to look into the style filesotherwise, just set a attribute border="0" to the img tag2) There’s only 2 images displayed and I want to add more. for this one, you will change the number at module configure screen. Link to comment Share on other sites More sharing options...
TierOne Posted June 25, 2011 Author Share Posted June 25, 2011 I have changed the number of the module configure screen to 5, but it only shows 2 images still. thanks for the first fix though Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 it seems that the module defined only display first 2 images.after that, it will not display the images. {if $smarty.foreach.newProducts.index < 2} find out this line in the tpl file and try to change the number Link to comment Share on other sites More sharing options...
TierOne Posted June 25, 2011 Author Share Posted June 25, 2011 tried before and changed to 5 but no changes Link to comment Share on other sites More sharing options...
shokinro Posted June 25, 2011 Share Posted June 25, 2011 you may need to check the style, maybe it only has space for two images. Link to comment Share on other sites More sharing options...
TierOne Posted June 25, 2011 Author Share Posted June 25, 2011 I tried both editing the .tpl and the global.css with no luck. Right now the only hint I got is it's related to ></pre> <ul> I went to global.css to edit and edit out the width in the following area:line 929 - 939 in global.css #center_column div.products_block a.product_image { display: block; background-color: transparent; margin-bottom: 2px; margin-left: 2px; /* width: 129px;*/ height: 129px } #center_column div.products_block .product_accessories_description a.product_image { /*width: 118px;*/ height: 85px my best guess is to do with the .tpl file right now. Going to compare it with the homefeatured module. Hopefully I'll get a hint out of it. Thanks for the help by the way Really appreciate it! Link to comment Share on other sites More sharing options...
TierOne Posted June 26, 2011 Author Share Posted June 26, 2011 It was as had been suggested. However, the main thing is to turn off the cache and force compile before transferring the tpl files. Link to comment Share on other sites More sharing options...
shokinro Posted June 26, 2011 Share Posted June 26, 2011 good to know that your problem is solved.remember to disable all caches and force smarty compile while you are making changes. Link to comment Share on other sites More sharing options...
TierOne Posted June 28, 2011 Author Share Posted June 28, 2011 thanks for the help 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