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

Improved Search Results Pagination

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-20-2008, 04:08 PM
 
fotodog13 fotodog13 is offline
 

Senior Member
  
Join Date: Sep 2007
Posts: 126
 

Default Re: Improved Search Results Pagination

Thanks Phil,

got it to work- looks great.
Once I saved as a txt it worked great. When I looked at twhat I had loaded -the errored code- it looked nothing like what it was suppose to.
Strange,

Also just a FYI - This looks sooo much better than the x cart results- WHen I did get it too work I had to go into the general settings and changet the max number of pages to displkay to 5 there - I think mine was set at 10 which might be he default which caused the line to be jumbled - I am just mentioning it for others so that if they have their pages set to display 10 pages that might be why- this way someone else doesn't aske you to fix something that aint broke!
thanks again for the help

best

Scott v
__________________
scott v
x cart version 4.1.8 (Unix)
Reply With Quote
  #12  
Old 03-20-2008, 04:23 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Improved Search Results Pagination

Glad it all worked out
__________________
xcartmods.co.uk
Reply With Quote
  #13  
Old 10-24-2008, 08:25 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Improved Search Results Pagination

Excellent and much needed mod.....thank you!
__________________
4.4
Code:
Hello World
Reply With Quote
  #14  
Old 10-26-2008, 07:48 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Improved Search Results Pagination

Made a slight adjustment to this mod for version 4.1.11, that some of you might find nice. The following code will add a "show all" as the first button, which will allow customer to view all products, instead of individual pages.

Modified navigation tpl, as stated in the original post. Right after the opening <ul> place the following:
Code:
<li>{if $smarty.server.PHP_SELF ne '/manufacturers.php' && $smarty.server.PHP_SELF ne '/admin/orders.php' && $smarty.server.PHP_SELF ne '/orders.php' } <a href="{$navigation_script}&amp;show=all">View All</a></li> {/if}

Then open init.php and find:
Code:
# # Read config variables from Database # This variables are used inside php scripts, not in smarty templates # $c_result = db_query("SELECT name, value, category FROM $sql_tbl[config] WHERE type != 'separator'"); $config = array(); if ($c_result) { while ($row = db_fetch_row($c_result)) { if (!empty($row[2])) $config[$row[2]][$row[0]] = $row[1]; else $config[$row[0]] = $row[1]; } }

Right after this line, add the following:

Code:
# # Show All Mod By Westin Shafer for Beach Bums Inc. # if ($_GET['show'] == 'all'){ $config['Appearance']['products_per_page'] = 500; }

This code is from another mod here on the forums, but adjusted to fit into phils.
__________________
4.4
Code:
Hello World
Reply With Quote

The following user thanks davidsaldana for this useful post:
JWait (10-14-2009)
  #15  
Old 11-14-2008, 11:36 AM
 
jbvideo jbvideo is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 73
 

Default Re: Improved Search Results Pagination

Hello,

need a little assistance.

I followed the instructions for this mod .. but my navigation numbers are not being displayed on a horizontal line. they are being displayed vertically.

this happened before and after I added the "view all" mod

so it basically looks like a bullet list

* View All
* 1
* 2
* 3
* >>


Except they're bullets instead of asterisks.

What am I missing?
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
Reply With Quote
  #16  
Old 11-14-2008, 12:17 PM
 
piikpuuk piikpuuk is offline
 

Member
  
Join Date: Jul 2007
Posts: 16
 

Default Re: Improved Search Results Pagination

Quote:
Originally Posted by jbvideo
Hello,

need a little assistance.

I followed the instructions for this mod .. but my navigation numbers are not being displayed on a horizontal line. they are being displayed vertically.

this happened before and after I added the "view all" mod

so it basically looks like a bullet list

* View All
* 1
* 2
* 3
* >>


Except they're bullets instead of asterisks.

What am I missing?


Delete this line from CSS >
/* Better looking navigation END - www.xcartmods.co.uk */

Then it should work!
__________________
X-Cart v4.1.8
Reply With Quote
  #17  
Old 11-14-2008, 12:36 PM
 
jbvideo jbvideo is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 73
 

Default Re: Improved Search Results Pagination

I got it working, thank you. it was user error on my part.

I have a modified cart and didnt update all of the css files.

Thanks for your help.
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
Reply With Quote
  #18  
Old 11-20-2008, 04:59 PM
  flyclothing's Avatar 
flyclothing flyclothing is offline
 

eXpert
  
Join Date: Aug 2004
Location: Gilbert, AZ
Posts: 357
 

Default Re: Improved Search Results Pagination

Great mod. Definitely looks better!
__________________
Jonathan
Flyclothing, LLC
PO Box 1490
Gilbert, AZ 85299-1571
P 480.422.7350
F 888.359.2568
www.flysportsgear.com?MMCF_xcartforum (X-Cart 4.5.2) FOR SALE
Reply With Quote
  #19  
Old 11-27-2008, 04:46 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Improved Search Results Pagination

Looks great... except is centered on the page. How do I get it align to the left? I tried "float" but it drops to the next line, just before the <hr>
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #20  
Old 11-27-2008, 05:13 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Improved Search Results Pagination

Code:
.navigation ul { margin: 0; padding: 0; text-align: left; font-size: 1.0em; }
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:40 AM.

   

 
X-Cart forums © 2001-2020