Forums / All Other Contributions/Addons / Products Pagination - Support Thread

Products Pagination - Support Thread

Views: 30,017

Results 121 to 140 of 159
14 Jun 2020, 3:20 PM
#121
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Products Pagination - Support Thread

I've just submitted v2.1.0 of Products' Pagination to the Zen Cart moderators for review and will post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=1199).

 This release contains changes for the following GitHub issues:

#15: (Future proofing) Use zc157 files as the core/template change-basis; add check so that the plugin can be removed without additional changes.
#16: Use correct variable name in the plugin's split-page class.
#17: Correct various PHP notices and processing errors in the plugin's observer-class.
#20: Move pagination HTML out of class-file to template.
#24: zc157 interoperability, force the 'split_page_results.php' class to load that second time.

Thanks to @torvista for all his help in getting this updated!

18 Jun 2020, 12:54 PM
#122
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

lat9:

I've just submitted v2.1.0 of Products' Pagination to the Zen Cart moderators for review and will post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=1199).

 This release contains changes for the following GitHub issues:

#15: (Future proofing) Use zc157 files as the core/template change-basis; add check so that the plugin can be removed without additional changes.
#16: Use correct variable name in the plugin's split-page class.
#17: Correct various PHP notices and processing errors in the plugin's observer-class.
#20: Move pagination HTML out of class-file to template.
#24: zc157 interoperability, force the 'split_page_results.php' class to load that second time.

Thanks to @torvista for all his help in getting this updated!
Now available for download.

18 Jun 2020, 3:20 PM
#123
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Products Pagination - Support Thread

lat9:

v2.1.0 of Products' Pagination

Thanks..

I hit a white page after installing.
ZC 1.5.6c PHP7.3.11
my template

I don't use device detection and deleted Mobile Detect to keep it from sneaking in. After editing it out, all works as expected.

I have some ideas running around I want to play with before uploading to my live site.

This the change I did. Not tested with anything other then my template.
includes/classes/observers/class.products_pagination_observer.php

       if ((!class_exists('Mobile_Detect')) && (file_exists(DIR_WS_CLASSES . 'Mobile_Detect.php'))) {         
            require_once DIR_WS_CLASSES . 'Mobile_Detect.php';
            }
        
      if (class_exists('Mobile_Detect')) {  
        $detect = new Mobile_Detect();
        $this->isTablet = $detect->isTablet() || (isset($_SESSION['layoutType']) && $_SESSION['layoutType'] === 'tablet');
        $this->isMobile = (!$detect->isTablet() && $detect->isMobile()) || (isset($_SESSION['layoutType']) && $_SESSION['layoutType'] === 'mobile');
        $this->isDesktop = !($this->isTablet || $this->isMobile);
       } 

Dave
Always forward thinking... Lost my mind!

18 Jun 2020, 3:35 PM
#124
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

Thanks, @davewest, others might find those edits useful! Please note that the plugin's readme states:

Starting with v2.0.0, you also control whether the plugin's pagination links are active when your site is viewed by a mobile device. To enable that handling, the plugin makes use of the presumed pre-existing file /includes/classes/Mobile_Detect.php and is also aware of the layoutType handling provided by Zen Cart 1.5.5's responsive_classic template.

17 Sep 2020, 9:20 PM
#125
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Products Pagination - Support Thread

I'm having an issue with products pagination.
Site is running 1.5.6a and was on products pagination version 2.0.0 but is now on 2.1.0 and running PHP 7.4

Before installing the module 'All Products' page showed 62 pages. After installation it shows 273 pages. 63 to 273 are all pages with no products.
I also have dynamic filter installed which makes edits to some of the same files as products pagination, but the page count is correct when pagination module isn't installed, so not convinced it's related.

Any suggestions on where to start looking for the cause of this?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

17 Sep 2020, 10:33 PM
#126
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Products Pagination - Support Thread

I resolved the issue. It was related to Dynamic Fillter mod

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

18 Sep 2020, 11:18 AM
#127
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

Thanks for the come-back, @streilitzia. I was unable to come up with a reason for Products' Pagination to produce that result.

1 Dec 2020, 4:49 PM
#128
planetjune avatar

planetjune

New Zenner

Join Date:
Jul 2008
Posts:
36
Plugin Contributions:
0

Re: Products Pagination - Support Thread

I think I may have spotted a typo in the latest version (2.1.0): line 82 of /includes/classes/split_page_results.php reads

    $pos_order_by = strrpos($query_lower, ' order by', $pos_from);

Should that be

    $pos_order_by = strpos($query_lower, ' order by', $pos_from);

?

1 Dec 2020, 5:10 PM
#129
planetjune avatar

planetjune

New Zenner

Join Date:
Jul 2008
Posts:
36
Plugin Contributions:
0

Re: Products Pagination - Support Thread

I just did some googling and strrpos isn't a typo (oops - my mistake), but using it instead of strpos is a change from both version 2.0 of this plugin and the standard Zen Cart code, so I guess it's not completely stupid for me to check that it's not a mistake..?

1 Dec 2020, 5:29 PM
#130
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

planetjune:

I just did some googling and strrpos isn't a typo (oops - my mistake), but using it instead of strpos is a change from both version 2.0 of this plugin and the standard Zen Cart code, so I guess it's not completely stupid for me to check that it's not a mistake..?
While that class needs a teeny bit of update to align with the now-current zc157b implementation, the use of strrpos is consistent between the base Zen Cart 1.5.7+ distribution and the modification provided by Products Pagination.

1 Dec 2020, 6:00 PM
#131
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Products Pagination - Support Thread

And the strrpos should be fine when used on older ZC versions as well. It fixes an issue with complex nested subqueries with multiple order-by clauses.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Dec 2020, 6:32 PM
#132
planetjune avatar

planetjune

New Zenner

Join Date:
Jul 2008
Posts:
36
Plugin Contributions:
0

Re: Products Pagination - Support Thread

Thank you, DrByte and lat9 :cheers:

26 Mar 2021, 11:43 PM
#133
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Products Pagination - Support Thread

ZC1.5.7c with the latest version of Products Pagination, I'm getting the following error log when trying to view Oder History page.

PHP Fatal error: 1064:You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near '' at line 1 :: SELECT count(*) AS total FROM
orders o, orders_total ot, orders_status s WHERE
o.customers_id = 2493 AND
o.orders_id = ot.orders_id AND ot.class =
'ot_total' AND s.orders_status_id =
(SELECT orders_status_id FROM orders_status_history
osh WHERE osh.orders_id = o.orders_id AND
osh.customer_notified >= 0 ==> (as called by)
/includes/classes/pp_split_page_results.php on line 122 <== in
/includes/classes/db/mysql/query_factory.php on line 170.

Looking at that query, it appears to be missing a closing parentheses from the second 'SELECT' query.

Can you replicate this?

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

27 Mar 2021, 12:15 PM
#134
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

strelitzia:

ZC1.5.7c with the latest version of Products Pagination, I'm getting the following error log when trying to view Oder History page.

PHP Fatal error: 1064:You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near '' at line 1 :: SELECT count(*) AS total FROM
orders o, orders_total ot, orders_status s WHERE
o.customers_id = 2493 AND
o.orders_id = ot.orders_id AND ot.class =
'ot_total' AND s.orders_status_id =
(SELECT orders_status_id FROM orders_status_history
osh WHERE osh.orders_id = o.orders_id AND
osh.customer_notified >= 0 ==> (as called by)
/includes/classes/pp_split_page_results.php on line 122 <== in
/includes/classes/db/mysql/query_factory.php on line 170.

Looking at that query, it appears to be missing a closing parentheses from the second 'SELECT' query.

Can you replicate this?
I can, unfortunately. The zc157 series has changed the query on the account_history page and Products' Pagination isn't playing well.

See this GitHub issue for tracking: https://github.com/lat9/product_pagination/issues/26

27 Mar 2021, 1:16 PM
#135
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

lat9:

I can, unfortunately. The zc157 series has changed the query on the account_history page and Products' Pagination isn't playing well.

See this GitHub issue for tracking: https://github.com/lat9/product_pagination/issues/26
I've got this change available on the plugin's GitHub repository if you'd like to check that correction out prior to the v2.1.1 release.

27 Mar 2021, 1:24 PM
#136
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Products Pagination - Support Thread

lat9:

I've got this change available on the plugin's GitHub repository if you'd like to check that correction out prior to the v2.1.1 release.

I can confirm that the changes have resolved the issue. Fantastic support, thank you!

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

27 Mar 2021, 1:38 PM
#137
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

strelitzia:

I can confirm that the changes have resolved the issue. Fantastic support, thank you!
Thanks for the confirmation; I'll get v2.1.1 released later this weekend.

28 Mar 2021, 12:55 PM
#138
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

I've just submitted v2.1.1 of Product Pagination for the Zen Cart moderators' review and will post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#14: Ensure unique form-name on multi-page listings with no top/bottom submit button.
#26: Correct MySQL error on account_history page for zc157 and later.

29 Mar 2021, 5:11 PM
#139
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Products Pagination - Support Thread

lat9:

I've just submitted v2.1.1 of Product Pagination for the Zen Cart moderators' review and will post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#14: Ensure unique form-name on multi-page listings with no top/bottom submit button.
#26: Correct MySQL error on account_history page for zc157 and later.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1199

2 Apr 2021, 4:25 AM
#140
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Products Pagination - Support Thread

lat9:

Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1199
Forgive my dullness.... but I checked out the website you referred that this mod is supposed to be like .... Can you tell me a little more about what this does or what I am supposed to be looking for in the website?