spirals Posted August 17, 2010 Share Posted August 17, 2010 Hi, I hope someone can help me..Firstly: http://www.wahardware.com.au/category.php?id_category=38It says 'There are no products.' yet there are products within the subcategories - can this heading saying No Products either notice the products in the subcategories and display the quantity or can it be removed all together?Secondly: http://www.wahardware.com.au/category.php?id_category=41My client wants the full name of the product in the heading of the product displayed. I managed, with help, to change the length for the new products on the home page but can't work out where to change the number for this section. Hope that makes sense - DTEC Multi-purpose Diamond Blade... for instanceThanks in advance,Duncanspirals Link to comment Share on other sites More sharing options...
Gaëlle - Studio KIWIK Posted August 17, 2010 Share Posted August 17, 2010 Hi,Sorry if my english isn't perfect because I'm french.I have 2 proposals for your problems :1- You must edit the file theme/current_theme/category.tpl :SEARCH {$nb_products|intval} {if $nb_products>1}{l s='products'}{else}{l s='product'}{/if} REPLACE BY {if $nb_products>0}{$nb_products|intval} {if $nb_products>1}{l s='products'}{else}{l s='product'}{/if}{/if} => The number of products will appear only if you have products in the CURRENT category (ignores subcategories)2- You must edit the file theme/current_theme/product-list.tplSEARCH {$product.name|truncate:35|escape:'htmlall':'UTF-8'} => The "truncate:35" indicates the number of characters we want to show. Try to increase this number...I hope that my post helped you Link to comment Share on other sites More sharing options...
spirals Posted August 17, 2010 Author Share Posted August 17, 2010 PERFECTO!!!! Thank you so much.. Link to comment Share on other sites More sharing options...
Gaëlle - Studio KIWIK Posted August 17, 2010 Share Posted August 17, 2010 You're welcome!PS : Don't forget to add [RESOLVED] in your post's title Link to comment Share on other sites More sharing options...
swissmark Posted April 16, 2011 Share Posted April 16, 2011 Hi, always used this solution with my 1.3... now I struggle with 1.4.Do I also have to change category.tpl so it wont' say "0 products" when having all products in sub-categories? 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