Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Total number of products status displayed is incorrect?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-08-2011, 05:05 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Total number of products status displayed is incorrect?

Hi All ...

I have an issue with 4.4.2 in which I've designed a product listing page and when i've assigned products to a certain category they display fine with the correct status message at the bottom.

e.g. Displaying 1-8 of 24 Products

However, If I assign featured products to that particular category, the status message displays the number of featured products rather than the number of category based products.

I've attached a screen-shot so you can see what I mean.

The page subcategories.tpl have the following code to display the featured products (if any) then the category products.

Code:
{if $f_products} {include file="customer/main/featured_products.tpl"} {/if} {if $cat_products} {include file="customer/main/navigation_fe_top.tpl"} {include file="customer/main/products.tpl" products=$cat_products} {include file="customer/main/navigation_fe_bottom.tpl"} {elseif not $cat_products and not $categories} <p>{$lng.txt_no_products_in_cat}</p> {/if}

The code for featured_products.tpl has the following:

Code:
<div class="grid-6 h2-block block-shad-bot"> <h2>{$lng.lbl_featured_products}</h2> </div> {include file="customer/main/products.tpl" products=$f_products featured="Y"}

Any ideas/clues to what maybe causing the issue?

Thanks a lot!

Shafiq :sK
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	253
Size:	70.6 KB
ID:	2522  
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #2  
Old 04-08-2011, 03:27 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Total number of products status displayed is incorrect?

"customer/main/navigation_fe_top.tpl" is not XC stock template. Make sure that template is not the reason for this. The stock one is "customer/main/navigation.tpl"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:34 PM.

   

 
X-Cart forums © 2001-2020