View Single Post
  #1  
Old 11-25-2010, 05:23 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default $subcat.product_count no longer works

Hi, I've recently had my site moved to a new server, and I've just noticed that my subcategory product boxes no longer display the number of items in them.

My site is at

http://www.3drom.com/store/


and you can view an example at


http://www.3drom.com/store/home.php?cat=3


The template is customer/main/category_box.tpl, and the relevant code is as follows:


Code:
<td class="P_Count">{if $config.Appearance.count_products eq "Y"} {if $subcat.product_count} { $subcat.product_count } {$lng.lbl_product}{if $subcat.product_count > 1}s{/if} {elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower}{/if}{/if}</td>

I've tried commenting out
{if $subcat.product_count}
and it then displays
"0 product"

It just no longer seems to find the variable { $subcat.product_count }. I've made sure that "
Show quantity in stock: " is ticked in General Settings, Appearance.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote