Jump to content

[SOLVED] A couple of questions regarding products/categories


Recommended Posts

Hi, I hope someone can help me..

Firstly: http://www.wahardware.com.au/category.php?id_category=38

It 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=41

My 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 instance

Thanks in advance,

Duncan
spirals

Link to comment
Share on other sites

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.tpl
SEARCH

{$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

  • 7 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...