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

Per Page dropdown disappears for categories with Featured Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-20-2011, 12:03 PM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Per Page dropdown disappears for categories with Featured Products

Hi,

I've just noticed that on one of my category pages I have no 'per page' selector. If I remove the featured products, it reappears. It also appears as it should on other pages, where no featured products are defined.

Although I've hacked about a bit in my template files, I can't see how any of my changes might have affected this. Has anyone else come across it? More importantly, has anyone else come across it and fixed it?

It seems to be something to do with the following statement in main/navigation.tpl (at the bottom):

{if $per_page eq "Y" and $total_items gte $per_page_values.0}

If a featured product is defined, then $total_items seems to be the number of featured products, not the total number of items on the page. That's my impression anyway, as I've not done a great deal of testing...

Any thoughts? I'm not really sure where to look.

Cheers

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote
  #2  
Old 06-20-2011, 12:30 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Per Page dropdown disappears for categories with Featured Products

I think you're on the right track.

Featured Products calls include/search.php separately so it's possible it is resetting the per_page values based on the featured products, overriding the other products on that page. May have to customize include/search.php to skip the per_page pieces when getting featured products.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 06-20-2011, 12:51 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default Re: Per Page dropdown disappears for categories with Featured Products

If this is the case then this is a bug. Report it in the bugtracker
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 06-20-2011, 03:35 PM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Re: Per Page dropdown disappears for categories with Featured Products

Logged: Ticket details (#0039899)

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
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 12:20 PM.

   

 
X-Cart forums © 2001-2020