J. Fernandes PT Posted October 18, 2014 Share Posted October 18, 2014 Hi. I just can't find a solution for this. I'm working on a shoe shop project. In each product we have to choose a default combination (let's say Size 40, Colour brown). The problem is that in the category page, if you don´t have stock of that combination, the label "Product available with different options" will appear in the box. I don't have in brown, but i can have in other colors, so that phrase is misleading at best. What changes do I have to make in product-list.tpl to erase that phrase, so that I can have "in stock" even if i have only one pair of those shoes (in other combinations)? Thanks. JS Link to comment Share on other sites More sharing options...
thepan Posted October 19, 2014 Share Posted October 19, 2014 There are two ways you could go. 1. You could search for the translation of this text in the back office and just change the text there to whatever you would like to be there.(Better since no changes to files) 2. You find out where the code for this line is and change it. I can give you the exact line tomorrow since I dont have any prestashop installation to hand right now... Link to comment Share on other sites More sharing options...
J. Fernandes PT Posted October 19, 2014 Author Share Posted October 19, 2014 Hi thepan. Yes, I know where the code is, I just don´t have enough knowledge to make the changes that I want. Link to comment Share on other sites More sharing options...
thepan Posted October 19, 2014 Share Posted October 19, 2014 I dont understand. Maybe you can explain in more detail how you want it to look like. Link to comment Share on other sites More sharing options...
J. Fernandes PT Posted October 19, 2014 Author Share Posted October 19, 2014 I just don't want to see the "product available in different option" in the category page when that combination is out of stock. I want to see the In Stock phrase as long as there are at least one combination with stock. Link to comment Share on other sites More sharing options...
thepan Posted October 19, 2014 Share Posted October 19, 2014 (edited) So all you need to do is go to the translation section of prestashop and translate the phrase "product available in different option" to "In Stock" and you are done. This way there will be "in Stock" always unless there is not any combination available of that product. In that case it will say "Out of Stock". Edited October 19, 2014 by thepan (see edit history) Link to comment Share on other sites More sharing options...
J. Fernandes PT Posted October 20, 2014 Author Share Posted October 20, 2014 Well, I don't want to loose a lot of time with this, so changing the text may help for now. The text can be changed in themes/default_bootstrap/product_list.tpl (line 179) and the colors can be changed in themes/default_bootstrap/css/product_list.css (line 20). Link to comment Share on other sites More sharing options...
mazazam Posted October 21, 2014 Share Posted October 21, 2014 Hi, found solution to this - Simply go into combinations and make sure at least combination is selected as default.. Thanks. 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