Jump to content

[solved] Message "There is no products in this category" - not wanted


Recommended Posts

Shop: www.ani-event.dk

Shop 1.5.4

Problem:

I have a main category. With no products .. instead I have..subcategories.

If you have categories and does not put products, but more new subcategories in to these,

as per default the shops will write in the top of the Category: "There is no products in this category.

Technically this is true, but... we do have products.. they are just in a new category.

However we do not want this message to be shown. Especially as Google show this phrase as a meta description when you Google the products.

Can I eliminate the text? (I´m not a programmer, but can of cause do a little editing)

http://ani-event.dk/...egory&id_lang=1

Best regards Kim

post-312504-0-63087300-1366929691_thumb.jpg

Link to comment
Share on other sites

Edit the file category-count.tpl located in themes/default/ and remove the line as below:

 

change this:

 

 

{if $category->id == 1 OR $nb_products == 0}

{l s='There are no products in this category'}

{else}

{if $nb_products == 1}

{l s='There is %d product.' sprintf=$nb_products}

{else}

{l s='There are %d products.' sprintf=$nb_products}

{/if}

{/if}

 

 

to this:

 

 

{if $category->id == 1 OR $nb_products == 0}

{l s=''}

{else}

{if $nb_products == 1}

{l s='There is %d product.' sprintf=$nb_products}

{else}

{l s='There are %d products.' sprintf=$nb_products}

{/if}

{/if}

Edited by tdr170 (see edit history)
  • Like 4
Link to comment
Share on other sites

  • 1 month later...
  • 2 years 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...