tylerakin Posted December 31, 2014 Share Posted December 31, 2014 The words "Price From" $$ are not showing up in my catalogue until I change to list mode and then return to grid mode. This is a problem because it makes products appear to have only one price, when they have multiple prices. I want to show this by saying "price from". I had this problem in my list mode, but I got help and fixed it. Thank you. Link to comment Share on other sites More sharing options...
tylerakin Posted January 1, 2015 Author Share Posted January 1, 2015 Here are two screen shots showing the problem. The first shows up upon entering the web page. The second is after I have switched from grid mode to list mode and back again. Link to comment Share on other sites More sharing options...
NemoPS Posted January 2, 2015 Share Posted January 2, 2015 It's because the product list is also handled with js in 1.6. You need to amend global.js (theme folder, js) and look for the list/grid switcher: function display(view) .... Link to comment Share on other sites More sharing options...
tylerakin Posted January 2, 2015 Author Share Posted January 2, 2015 (edited) Found it. How should I amend it? Edited January 2, 2015 by tylerakin (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 3, 2015 Share Posted January 3, 2015 This depends on how you added the "price from" thing. You just need to add your code there as well, just be aware it's javascript You might want to just copy/past the html content of your additional box like .append($('.mybox').html(); Link to comment Share on other sites More sharing options...
tylerakin Posted January 3, 2015 Author Share Posted January 3, 2015 {if $product.id_product_attribute}{l s='Price from'}{/if} I think this is the code that made the change to the list mode. I am not really sure how to insert, or even if this is javascript? Sorry. I'm learning as fast as I can Link to comment Share on other sites More sharing options...
NemoPS Posted January 5, 2015 Share Posted January 5, 2015 To which box did you add it, exactly? If you move it to another position, in one of the default boxes, it will be displayed. Otherwise, you need to 1- wrap it in a div with an ID or class (ie: mypricefrom) 2- Within that js method, when it adds to the content, add html += $(element).find('div.mypricefrom').html(); Link to comment Share on other sites More sharing options...
tylerakin Posted January 12, 2015 Author Share Posted January 12, 2015 I apologize for not replying sooner! I'm not sure I understand what you, but I'll try to answer. It looks like I pasted the code into my theme/product-list.tpl file SOLVED: I added the code lower in the theme/product-list.tpl file in a section that I am assuming controls the "grid" mode. Problem solved. Thanks for your 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