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

Move the "per page" box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-14-2011, 03:31 PM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Move the "per page" box

Hello,

Will someone please tell me how to move the "per page" drop down box and text that appears on category pages. I would like to move it to the row with the rest of the "Sort by" options as seen in the attached image.

Thanks,
Attached Thumbnails
Click image for larger version

Name:	products-per-page1.jpg
Views:	201
Size:	26.4 KB
ID:	2487  
__________________
version 4.4.2
Reply With Quote
  #2  
Old 03-16-2011, 05:15 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Move the "per page" box

You should add e.g. the following code:
Code:
{if $per_page eq "Y" and $total_items gte $per_page_values.0} {include file="customer/main/per_page.tpl"} {/if}
to the "skin/common_files/customer/search_sort_by.tpl" template.

And comment out the per_page.tpl reference in the "skin/common_files/customer/main/navigation.tpl" template:
Code:
{*include file="customer/main/per_page.tpl"*}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
am2003 (03-16-2011)
  #3  
Old 03-16-2011, 06:22 AM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Move the "per page" box

Thank you, that definitely moved the Per page box. But it didn't move the Sort by text over so it displays on top of the Per page box as seen in the screen shot.
Attached Thumbnails
Click image for larger version

Name:	products-per-page2.jpg
Views:	190
Size:	17.8 KB
ID:	2491  
__________________
version 4.4.2
Reply With Quote
  #4  
Old 03-16-2011, 07:29 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: Move the "per page" box

Use Firebug to change CSS proprieties. You have to add a padding-right for Sort by div.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
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 11:22 AM.

   

 
X-Cart forums © 2001-2020