Rafaviolin Posted February 27, 2015 Share Posted February 27, 2015 HelloI am using "Image mapping" to upload the main category image but it removes the name title of the category. Anybody can help me to know how to make it reappear? I am using this image mapping because I want to put 2 different images between the main and thumbnail ones of each category.Thanks for the help. Link to comment Share on other sites More sharing options...
NemoPS Posted February 28, 2015 Share Posted February 28, 2015 Can you share your site's url? Custom template or the default one? Link to comment Share on other sites More sharing options...
Rafaviolin Posted February 28, 2015 Author Share Posted February 28, 2015 I am working in localhost with a custom template (minimal theme) I have structured the first category as: category: illustration subcategory 1: designer 1 subcategory 2: designer 2 The image for the subcategory is 820x217 but i want to upload a different image for the thumbnail (260x165) which is shown in the subcategories list of the main category (see pictures below). My problem is that the thumbnail take the subcategory main picture (820x217) and resizes it for the 260x165 and it looks awful... Link to comment Share on other sites More sharing options...
NemoPS Posted March 2, 2015 Share Posted March 2, 2015 Ah, try my tut here http://blog.arvixe.com/adding-a-second-image-for-prestashop-categories/ Link to comment Share on other sites More sharing options...
Rafaviolin Posted March 7, 2015 Author Share Posted March 7, 2015 (edited) Ok I'm trying to follow it (it's quite easy to understand, even for me who have no idea about PHP). Just one question: when you say "To make sure the override works, reach the cache/ and erase class_index.php to enable the new file" do you mean erase the whole php file? Edited March 7, 2015 by Rafaviolin (see edit history) Link to comment Share on other sites More sharing options...
Rafaviolin Posted March 7, 2015 Author Share Posted March 7, 2015 ok I have delt with it and i have all the steps until "display the new imagen in the template". After this, i can't still see the second image displayed (see picture enclosed) I guess I have still do the last change in the .htaccess file. I can't find it, please let me know how to do it. Link to comment Share on other sites More sharing options...
NemoPS Posted March 9, 2015 Share Posted March 9, 2015 Hm, is the image url pointing to the correct file? Make sure it's writing out correctly, you can try accessing the file by url first, and compare it with the template's output Link to comment Share on other sites More sharing options...
Rafaviolin Posted March 9, 2015 Author Share Posted March 9, 2015 Sorry Could you be more specific? what file, url and template are you mentioning? Link to comment Share on other sites More sharing options...
NemoPS Posted March 11, 2015 Share Posted March 11, 2015 Right click on the image, and open the url in a new tab. How does it look like?Then, in the back office, access the category page, and see the second image directly, compare the 2 urls and see where the front office one fails Link to comment Share on other sites More sharing options...
Rafaviolin Posted March 11, 2015 Author Share Posted March 11, 2015 after checking it, I have: front office: http://localhost/prestashop_1.6.0.9/prestashop/c/14_second-medium_default/paula-bonet.jpg back office: http://localhost/prestashop_1.6.0.9/prestashop/img/tmp/category_14_second.jpg?time=1426102643 What would be the next step? Link to comment Share on other sites More sharing options...
NemoPS Posted March 13, 2015 Share Posted March 13, 2015 hm, can you check if it works without friendly urls enabled? Link to comment Share on other sites More sharing options...
Rafaviolin Posted March 17, 2015 Author Share Posted March 17, 2015 It works!! But is there any chance that I can have in the same time enabled url and 2 images for the category? Thanks again for your help, your advices have been very useful. Link to comment Share on other sites More sharing options...
NemoPS Posted March 18, 2015 Share Posted March 18, 2015 Hm now that I think about it, I think you need a small custom rule added to the .htaccess file. I can't remember how it was now though 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