X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Improved Search Results Pagination (https://forum.x-cart.com/showthread.php?t=27364)

fotodog13 03-20-2008 04:08 PM

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

PhilJ 03-20-2008 04:23 PM

Re: Improved Search Results Pagination
 
Glad it all worked out :)

davidsaldana 10-24-2008 08:25 PM

Re: Improved Search Results Pagination
 
Excellent and much needed mod.....thank you!

davidsaldana 10-26-2008 07:48 AM

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.

jbvideo 11-14-2008 11:36 AM

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?

piikpuuk 11-14-2008 12:17 PM

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! :)

jbvideo 11-14-2008 12:36 PM

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.

flyclothing 11-20-2008 04:59 PM

Re: Improved Search Results Pagination
 
Great mod. Definitely looks better!

JWait 11-27-2008 04:46 AM

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>

PhilJ 11-27-2008 05:13 AM

Re: Improved Search Results Pagination
 
Code:

.navigation ul {
 margin: 0;
 padding: 0;
text-align: left;
 font-size: 1.0em;
}



All times are GMT -8. The time now is 11:40 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.