Re: Set number of products displayed per page (support thread)
Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
Re: Set number of products displayed per page (support thread)
Quote:
Originally Posted by
swguy
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?...&keyword=price
Not sure what you mean by clobber - may have to do with below reply
Quote:
Originally Posted by
swguy
Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
I made an additional copy/paste error, my demo has altered code for the purpose of showing both links and drop-down and on the second section for the bottom I did not change the DEMO to actual ADMIN CONFIG
find:
<?php if (PRODUCT_LISTING_DISPLAY_OPTION_DEMO == 'true') { ?>
change to:
<?php if (PRODUCT_LISTING_DISPLAY_OPTION == 'true') { ?>
Re: Set number of products displayed per page (support thread)
Quote:
Originally Posted by
swguy
Also, the last call to draw_max_ppp in tpl_modules_product_listing.php is not wrapped in a select call as previous ones are. Suspect this is a bug.
Also
1st call to draw_max_ppp is for top drop-down
2nd call to draw_max_ppp is for top links
3rd call to draw_max_ppp is for bottom drop-down
4th/last call to draw_max_ppp is for bottom links
2nd and 4th/last should not be wrapped in a select call for they are links.
Re: Set number of products displayed per page (support thread)
When I said "clobber" I meant "the next/prev links do not appear."
Re: Set number of products displayed per page (support thread)
Quote:
Originally Posted by
swguy
When I said "clobber" I meant "the next/prev links do not appear."
Gotcha, the previous post to fix admin if config should
take care of that.
Re: Set number of products displayed per page (support thread)
Were you ever able to solve this?
Quote:
Originally Posted by
rbarbour
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.
Re: Set number of products displayed per page (support thread)
I have successfully installed this add-on on another site but I have been trying to install it on a new site numerous times with the same result. When installed and I reload my page (cart), the entire page is blank. I have narrowed the issue down to the set_num_products_dd.php page. When I remove it, my page is back again but I don't get the set number of products drop down. Any ideas?
Re: Set number of products displayed per page (support thread)
When you get a blank page, a log is created in the logs directory (1.5.1) or the cache directory (prior releases). Please post the contents of that log.
Re: Set number of products displayed per page (support thread)
Quote:
Originally Posted by
swguy
When you get a blank page, a log is created in the logs directory (1.5.1) or the cache directory (prior releases). Please post the contents of that log.
Sure:
Invalid arguments passed in .../includes/templates/skate01/templates/tpl_index_product_list.php on line 61
Which seems odd since line 61 is just one of the stock lines and I haven't changed it:
61 // draw music_genre_id
if (isset($_GET['music_genre_id']) && $_GET['music_genre_id'] != '') echo zen_draw_hidden_field('music_genre_id', $_GET['music_genre_id']);
Re: Set number of products displayed per page (support thread)
My mistake, I was looking at my oldest log entry. The ones I was getting today was database related. [24-May-2014 14:14:57] PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED :: select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' in .../includes/classes/db/mysql/query_factory.php on line 120
Quote:
Originally Posted by
khuna
Sure:
Invalid arguments passed in .../includes/templates/skate01/templates/tpl_index_product_list.php on line 61
Which seems odd since line 61 is just one of the stock lines and I haven't changed it:
61 // draw music_genre_id
if (isset($_GET['music_genre_id']) && $_GET['music_genre_id'] != '') echo zen_draw_hidden_field('music_genre_id', $_GET['music_genre_id']);