Forums / All Other Contributions/Addons / Set number of products displayed per page (support thread)

Set number of products displayed per page (support thread)

Views: 37,000

Results 101 to 120 of 148
28 Jun 2013, 12:08 PM
#101
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Set number of products displayed per page (support thread)

barendfaber:

Hi,

I hope someone can help me. Using v 1.5.1, www.fossilandrock.co.uk, with CEON URI mapping. Module installs perfectly, but when I try to choose how many products to display, I get to my custom 404 Page Not Found. Could this have something to do with the URI mapping? Is there a fix for this**?** Please see this product page: http://www.fossilandrock.co.uk/candles-holders, and try to use the Set Products Per Page.

B

Yes it is CEON URI mapping. I revamped a product listing page here: www[DOT]aydincoins[DOT]com/buy-silver/american-silver-eagles/2011-prior-year-silver-eagles-uncirculated**?**sort=20a&max_display=6

and had to correct the code within CEON URI mapping.

I can not remember what I did off the top of my head. I do remember CEON URI mapping wasn't replacing / with ?sort=20a

I will look through my notes unless someone else can provide the answer before I do.

11 Jul 2013, 1:02 PM
#102
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

micmed:

Alrighty then... I got this figured out and working. Now besides making it a drop down (still wanted) how can I make this text display in bold, a different color and spaced away from the "Displaying X to XX (of XX products"? I assume it is in the CSS somewhere.

www.simpsoncycles.com
did you solve this? I'm also trying to find where to change the numbers to bold.

12 Jul 2013, 12:46 AM
#103
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

karinvd

post #99

12 Jul 2013, 12:04 PM
#104
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

Thank you! But i did not read well, what i meant is i want the font to be different when im there, what i mean is if i have choosen "All" i want to see that i have choosen "All". Like its not longer underlined or so. Just like the page numbers If i'm on page 1, the number one is displayed different then the other numbers. Sorry for my bad english...
right now its like this:

https://www.domak.nl/sokken-dames

15 Sep 2013, 5:33 PM
#105
gameoverbeyond avatar

gameoverbeyond

New Zenner

Join Date:
May 2007
Posts:
41
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

So I have finally shifted from my test server to a live server and somewhere along the way, this mod stopped working. It displays the links, and requests the page, but the number of items displayed does not update. I uninstalled/reinstalled this and the required column grid mod. but still have the issue. I then saw the post about URI mapping, I have Ultimate SEO installed, so I disabled that, and still no change. Here my site: gameovergames.com , any help would be appreciated.
Also on a side note, I did get my SSL cert installed and enabled in zencart, but I wouldn't think this would cause an issue, and the error logs are clean.

19 Oct 2013, 6:08 PM
#106
gameoverbeyond avatar

gameoverbeyond

New Zenner

Join Date:
May 2007
Posts:
41
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

gameoverbeyond:

So I have finally shifted from my test server to a live server and somewhere along the way, this mod stopped working. It displays the links, and requests the page, but the number of items displayed does not update. I uninstalled/reinstalled this and the required column grid mod. but still have the issue. I then saw the post about URI mapping, I have Ultimate SEO installed, so I disabled that, and still no change. Here my site: gameovergames.com , any help would be appreciated.
Also on a side note, I did get my SSL cert installed and enabled in zencart, but I wouldn't think this would cause an issue, and the error logs are clean.
Still having this issue? Any ideas? Anyone?

21 Nov 2013, 3:18 PM
#107
maria82g avatar

maria82g

New Zenner

Join Date:
Feb 2009
Posts:
81
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

Ok can anyone help me? I dunno how to run a module? I downloaded it, uploaded to my zencart folder, did "extract all" now how do I intall it? how do i run it? where do i find settings to change products displayed per page?
Thanks

5 Dec 2013, 6:44 AM
#108
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Set number of products displayed per page (support thread)

gameoverbeyond:

Still having this issue? Any ideas? Anyone?

Perhaps. I've just fixed a site that had identical symptoms. It turned out that the person that had installed the module made a very simple mistake.
---- From the readme.html -------------------------------
5. Edit /includes/modules/YOUR_TEMPLATE/product_listing.php
If you don't already have a modified product_listing.php in /includes/modules/YOUR_TEMPLATE/, then create one there first.
If you already have one, merge these changes into it.

Find:
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

Add below:
// BOF Number of Items Per Page
if(isset($_POST['max_display']) || isset($_GET['max_display'])) {
$_SESSION['product_listing_max_display'] = (int)$_REQUEST['max_display'];
} elseif (!isset($_SESSION['product_listing_max_display'])) {
$_SESSION['product_listing_max_display'] = (int)MAX_DISPLAY_PRODUCTS_LISTING;
}
// EOF Number of Items Per Page

----------------------------------------------------------

The problem was that this addition was added in between the "die('Illegal Access')" and the "}" rather than after the "}".

I simple mistake to make I guess, but it did have me scouring the forums for the a solution, and for a while there I thought it was related to the SEO module that she had installed.

Anyway, since I discovered your post in my search for an answer I figured it'd be worth suggesting that your problem may be due to the same/similar cause.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

10 Feb 2014, 1:58 PM
#109
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

Hi,
I just downloaded this plug-in.
When I am trying to extract the files using windows extraction wizaed ; a password is being asked for all the files.
How to proceed further ?
Thanks

12 Mar 2014, 12:52 PM
#110
devyani avatar

devyani

Zen Follower

Join Date:
Aug 2011
Posts:
199
Plugin Contributions:
0

Re: Set number of products displayed per page (support thread)

any inputs ?

12 Mar 2014, 11:24 PM
#111
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

devyani:

any inputs ?

This is happening to me as well, pretty sure it has to do with my local comp security tho.

On another note:

I have the newest version of this plugin 1.3 complete and will post a download link by days end as well as submit it.

1.) It now utilizes the init_system for:

  • less merging into the product_listing.php file
  • to ease ZC upgrades
  • to carry $_SESSION['product_listing_max_display'] from 1 category to the next remembering # of products to display

2.) I added an "active" class for selected links (post 98 & 104)
3.) Re-coded for HTML Validation
4.) Includes the product_listing.php file for:

  • Flexible Product Listing
  • Column Layout Grid for Product Listing
  • SNAF

Only the $max_results code needs merging now! :cool: (post 108)

5.) Includes the stock tpl_modules_product_listing.php file to ease merging process.

6.) Added admin configuration to display link/drop-down at below product listings

A DEMO can be seen here!

Demo defaults to show links but I coded category 22 (Big Linked) to display drop-down.

15 Mar 2014, 2:50 AM
#112
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

Version 1.3 has been submitted!

You can download directly from here.

19 Mar 2014, 4:41 PM
#113
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

Version: 1.3 is now available!

24 Apr 2014, 11:37 AM
#114
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Set number of products displayed per page (support thread)

There is a bug in includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~

$ php -l tpl_modules_product_listing.php~
PHP Parse error: syntax error, unexpected $end in tpl_modules_product_listing.php~ on line 104

I fixed this issue but probably incorrectly.

But even so the screen looks wonky. I set the products per page to 6 - first row has 2, second row 1, third row 3. I am using Column Layout Grid.

@PMrbarbour, would you please double check your work?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Apr 2014, 12:56 PM
#115
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

swguy:

There is a bug in includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~

$ php -l tpl_modules_product_listing.php~
PHP Parse error: syntax error, unexpected $end in tpl_modules_product_listing.php~ on line 104

I suspect the intention was to add a closing brace on line 50 and on line 85.

But even so the screen looks wonky. I set the products per page to 6 - first row has 2, second row 1, third row 3. I am using Column Layout Grid.

@PMrbarbour, would you please double check your work?

  • /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~Column Layout Grid for Product Listing
  • /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~Flexible Product Listing
  • /includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php~SNAF

Are example files extracted directly from the original downloaded from the plugins section and unaltered other than to replace the $max_results (1) line of code.

Even if one was to upload these files they wouldn't have any effect.

I will double check my uploaded against the original downloaded from the plugins section just to make sure though.

24 Apr 2014, 4:33 PM
#116
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Set number of products displayed per page (support thread)

I will revert includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php (based on the ~ Column Layout Grid for Product Listing copy) to see if the problem goes away.

But you missed what I said about includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~. This is broken.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Apr 2014, 4:55 PM
#117
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

swguy:

I will revert includes/modules/YOUR_TEMPLATE_FOLDER/product_listing.php (based on the ~ Column Layout Grid for Product Listing copy) to see if the problem goes away.

But you missed what I said about includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~. This is broken.

You are correct sir,

includes/templates/YOUR_TEMPLATE_FOLDER/templates/tpl_modules_product_listing.php~ is broken.

Copy/Paste Error from demo site :lookaroun

find both instances of:

<!-- (BOF - 1.3) Set number of products displayed per page (24) -->
<?php } ?>
<!-- (EOF - 1.3) Set number of products displayed per page (24) --><br class="clearBoth" />

and change to:

<!-- (EOF - 1.3) Set number of products displayed per page (24) -->
<?php }
  }
 ?>
<!-- (EOF - 1.3) Set number of products displayed per page (24) --><br class="clearBoth" />

I will update the example file.

Thanks for pointing this out Scott :smile:

24 Apr 2014, 11:53 PM
#118
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Set number of products displayed per page (support thread)

And sure enough, that fixed my display issue. So that was the root cause of the problem.

Thanks for the quick diagnosis! I will edit out my suggested fix which was wrong.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Apr 2014, 12:29 AM
#119
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Set number of products displayed per page (support thread)

swguy:

And sure enough, that fixed my display issue. So that was the root cause of the problem.

Thanks for the quick diagnosis! I will edit out my suggested fix which was wrong.

swguy:

I suspect the intention was to add a closing brace on line 50 and on line 85.

Only wrong depending on the text editor and line count, I think you had it figured out way before I did. :cool:

26 Apr 2014, 10:25 PM
#120
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Set number of products displayed per page (support thread)

Another thing I noticed was that when the "Items per page" selection was made into a dropdown, it seemed to clobber the next/previous links. I think this might be reproduceable on your test site if you set PRODUCT_LISTING_DISPLAY_OPTION to true and look at this page:

http://zcadditions.com/24/index.php?main_page=advanced_search_result&search_in_description=1&keyword=price

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.